This should be so simple, but I have been struggling for a long time trying
to create a square plot of exact dimensions (so a series of them can be
overlaid later), with x and y axis limits identical and set by me
(preferably without the plot limits updating automatically as I add or
delete data, but that is a separate issue), while working interactively on a
single plot using pyplot in ipython on OS X using the current enthought
with pyplot imported as plt,
typical of what I have tried are many variations on
plt.plot(*args) with args a list of x,y
fig = plt.gcf()
fig.set_size_inches(6,6,forward='True') to force a redraw
ax = plt.gca()
Sometimes the x axis is set correctly, but the y axis is not, and is
typically showing more range (approximately 0.8-10.1 for example), possibly
because the plot is not square, though it is close, or because the scales
are not equal.
I have tried adding 'equal' to the plt.axis command,
and entering the values as
and entering just the first three and then
and I have tried working with
But, I am truly lost as I try to sort out which elements are in control.
Any help or leads would be greatly appreciated.
Scanning old archives and googling has not yet got me there.
View this message in context: http://www.nabble.com/square-plots-with-linear-equal-axes-----help-tp24638812p24638812.html
Sent from the matplotlib - users mailing list archive at Nabble.com.