Timeline for What does the AspectRatio option actually do?
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 19, 2015 at 10:43 | comment | added | Alexey Popkov | I have created dedicated question on Meta.Mathematica.SE about terminology. | |
May 19, 2015 at 9:20 | comment | added | Alexey Popkov |
Functions like Plot and ListPlot usually process their Graphics -related options in some way instead of passing them down to the final Graphics unchanged. They do so even when it is not needed what sometimes results in unexpected behavior or bugs (example).
|
|
May 19, 2015 at 9:06 | comment | added | LLlAMnYP |
Yes, in that sense padding increases the range, and then its height-to-width is determined by AspectRatio . An example of different behaviors: g1=Plot[...,PlotRangePadding->Scaled[.1]]; g2=Graphics[{},PlotRangePadding->Scaled[.1]];Options[#,PlotRangePading]&/@{g1,g2} returns {{Scaled[.1],Scaled[.1]},{Scaled[.1],Scaled[.1]}} in the first case and simply Scaled[.1] in the second.
|
|
May 19, 2015 at 8:38 | comment | added | Alexey Popkov |
In response to the EDIT section: I feel natural to say that PlotRangePadding increases the plot range but not the value of the PlotRange option which remains the same as can be verified by applying Options[#, PlotRange]& . I also have to stress that Plot returns an object with Head Graphics . This object has no "stamp" that it was created by Plot and by essence is the same Graphics that can be constructed by user in many other ways without the built-in plotting functions.
|
|
May 19, 2015 at 8:20 | history | edited | LLlAMnYP | CC BY-SA 3.0 |
added 1374 characters in body
|
May 19, 2015 at 8:09 | comment | added | LLlAMnYP | Yes, I was reflecting on that just now in a comment on the answer to your previous question. | |
May 19, 2015 at 8:02 | comment | added | Alexey Popkov |
Thank you for another great answer but I cannot agree that the statement that Rectangle[Scaled[{0, 0}], Scaled[{1, 1}]] covers the PlotRange is exhaustive: if you add non-zero PlotRangePadding it becomes obvious that Scaled covers also PlotRangePadding . And the exhaustive statement would be that it covers PlotRange with PlotRangePadding added. Similarly I cannot agree that the statement "AspectRatio controls the height-to-width of the PlotRange " is exhaustive because it says nothing about PlotRangePadding .
|
|
May 19, 2015 at 7:37 | history | answered | LLlAMnYP | CC BY-SA 3.0 |