Hopefully a simple fix.. I have a colorbar plotted to the right of my image. Doing so shrinks my scatter plot to the left; however, I would like to keep the scatter as close to 1:1 as possible as the x- and y-axis are at the same scale.
Asked
Active
Viewed 96 times
1
-
1use `ax.set_aspect('equal')` which will force the ratio between x and y to be 1:1 independent of the axis shape. The re-sizing in un-avoidable, the color bar needs to be fit in there. – tacaswell May 20 '13 at 16:18
1 Answers
1
Use:
ax.set_aspect('equal')
which will force the ratio between the x-units (data-units/screen-units) and y-units to be 1:1 independent of the axis shape. The re-sizing in un-avoidable, the color bar needs to be fit in there.

tacaswell
- 84,579
- 22
- 210
- 199