r/IPython • • Dec 20 '17

Set aspect ratio of jupyter plot?

I'm running python 3 inside jupyter (called with jupyter qtconsole) on Arch Linux, and I'm trying to plot a set of points. The only difficulty I'm having is getting the aspect ratio to be 1.

There seem to be a number of possible solutions, but so far none of the ones I've tried have worked.

Is there a standard way of doing this? Thanks!

1 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/amca01 Dec 22 '17

I just need to put the two commands on the one line:

plt.plot(x,y,','),plt.axis('equal')

Thanks again!