Ask Your Question
0

setting plot options

asked 2013-04-29 12:51:43 +0100

Pedro gravatar image

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 ?

   p = plot(some plot)
   p.change_options(ticks=[None, 1.5/4])

later on

 
p.show()
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-04-29 13:47:24 +0100

fidbc gravatar image

For 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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-04-29 12:51:43 +0100

Seen: 396 times

Last updated: Apr 29 '13