Ask Your Question
0

Documentation for show involving ymin and ymax

asked 2013-11-13 23:48:47 +0100

mixedmath gravatar image

I was reading the documentation on 2d plotting again and I noticed something that I find strange. In the plot documentation, there is the following phrase:

If you want to limit the plot along the horizontal axis in the final rendered figure, then pass the xmin and xmax keywords to the show() method. To limit the plot along the vertical axis, ymin and ymax keywords can be provided to either this plot command or to the show command.

Ok, so this feels pretty obvious and all is well and good. But then you get other questions that show that ymin and ymax don't behave naively, nor are they associated directly with plot. Instead, that answer says that ymin and ymax are really just always passed to show, and so should be thought of as show arguments.

Hmm, so it's not so obvious. So we might go to the show documentation to better understand what is going on. Unfortunately, show does not mention anything about ymin or ymax, or what happens when they're added together.

As far as I can tell, there is nothing in any show documentation that mentions ymin or ymax. Is that correct? If so, is that by design?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-11-14 09:27:49 +0100

kcrisman gravatar image

updated 2013-11-14 09:32:55 +0100

If you look at the graphics object page as a whole, there are some references to ymin and ymax in the axis setting part. And, as you point out, the documentation for plot explicitly has it, and mentions it is passed to show... But I agree this is not ideal, and more by neglect than design.

Edit: This is now Trac 15419.

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

Stats

Asked: 2013-11-13 23:48:47 +0100

Seen: 509 times

Last updated: Nov 14 '13