ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 29 Apr 2013 13:47:24 +0200setting plot optionshttps://ask.sagemath.org/question/10078/setting-plot-options/After a plot has been made, how can one change options but not using show() or save()?
Does command "change_options" in this code exists ?
<pre>
p = plot(some plot)
p.change_options(ticks=[None, 1.5/4])
</pre>
later on
<pre>
p.show()
</pre>
Mon, 29 Apr 2013 12:51:43 +0200https://ask.sagemath.org/question/10078/setting-plot-options/Answer by fidbc for <p>After a plot has been made, how can one change options but not using show() or save()?</p>
<p>Does command "change_options" in this code exists ?</p>
<pre> p = plot(some plot)
p.change_options(ticks=[None, 1.5/4])
</pre>
<p>later on</p>
<pre>
p.show()
</pre>
https://ask.sagemath.org/question/10078/setting-plot-options/?answer=14864#post-id-14864For a plot `p`, there is a `SHOW_OPTIONS` dictionary which seems to work for that purpose.
For example
sage: p=plot(x^2)
sage: p.SHOW_OPTIONS['dpi']=50
sage: p.show()
It it also seems that some of the plot options are copied from the global plot options `plot.options`. You can adjust these, and it will only affect plots created after the modification.Mon, 29 Apr 2013 13:47:24 +0200https://ask.sagemath.org/question/10078/setting-plot-options/?answer=14864#post-id-14864