python - Matplotlib similar axis scales -


How can I earn matplotlib for plotting my x- and y-axis at the same scale, i.e. in both The length of an unit ax is analogous to a single physical distance or a piece of paper on my screen?

You can use the set_aspect () method axes < / Code>:

  Import pls as pl pl.gca (). Set_aspect ("equal")  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -