Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ENH: Disable autoscaling in figimage.
The purpose of figimage is to fill the figure, so plotting elements in the axes shouldn't be able to rescale the axes automatically.
  • Loading branch information
tonysyu committed Aug 8, 2012
1 parent 3688803 commit 80b3295
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mpltools/layout.py
Expand Up @@ -111,6 +111,7 @@ def figimage(img, scale=1, dpi=None):


ax.set_axis_off() ax.set_axis_off()
ax.imshow(img) ax.imshow(img)
ax.autoscale(enable=False)
return fig, ax return fig, ax




Expand Down

0 comments on commit 80b3295

Please sign in to comment.