views:

563

answers:

2

Hi all,

I have a plot of two boxplots in the same figure. Due to style reasons, the axis should have the same length, so that the graphic box is squared. I tried to use the set_aspect method, but the axis are too different by means of range and the result is terrific.

Is it possible to have 1:1 axis even if they have not the same number of points ?

Thanks

F.

A: 

Try axis('equal'). It's been a while since I worked with matplotlib, but I seem to remember typing that command a lot.

notJim
+1  A: 
tom10
That is a good starting point. Thanks!
Vic Podestà
You're welcome.
tom10