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

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -