Hello,
I am trying to understand the unexpected result of this simple code (using version 11.0.0.0 student edition):
a = ListPlot[Table[{x, x}, {x, 1, 5, 0.01}]]
AbsoluteOptions[a, PlotRange]
AbsoluteOptions[a, PlotRangePadding]
b = ListPlot[Table[{x, x}, {x, 1, 5, 0.01}], %[[1]]]
AbsoluteOptions[b, PlotRange]
AbsoluteOptions[b, PlotRangePadding]
Basically, plot b is the same as plot a, except I explicitly enter the default option used in plot a for plot range padding.
The result is that the plot range changes. For plot a the plot range was (1,5) for x and (0,5) for y, and for plot b the plot range is (1,5) for both axes. See attached file.
The value for plot range padding does not change (scaled 0.02, 0.02, 0.02, and 0.05).
The actual graphs printed are also different. In a the y axis starts at zero, so there is a band with no data (y from zero to one). For b the y axis starts at 1, and the x axis gets cut off in the printed result (this almost qualifies as a bug for me).
Ultimately what I am trying to do is to get the ListPlot to include all the points in the plot range (PlotRange -> All or Full), but to not add extra space differently for the x and y axes. I don't mind some padding, just don't like the difference in x and y. Basically, when I plot the same list on x and y, I want to see it go in a corner-to-corner direction, similar to the result of Plot[x,{x,1,5}].
Thanks in advance,
Otto Linsuaín
Attachments: