Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
Closed
Labels
Milestone
Description
Bug report
Bug summary
inset_axes inconsistently positioned between show(), savefig(...,format='png') and savefig(...format='pdf') when the dpi option is set.
Code for reproduction
importmatplotlib.pyplotaspltfrommpl_toolkits.axes_grid1.inset_locatorimportinset_axesfig=plt.figure(dpi=150);ax1=plt.gca()ax1ins1=inset_axes(ax1,width=.7,height=.7,bbox_to_anchor=(100,100))plt.savefig("test.pdf",format='pdf',dpi=300,bbox_inches="tight")plt.savefig("test.png",format='png',dpi=300,bbox_inches="tight")plt.show()
Actual outcome
Expected outcome
I would expect all the results to come out the same.
Matplotlib version
- Matplotlib 2.0.0 (conda)
- Python 2.7.13 (conda)
- Platform: Linux


