Skip to content

ColorbarBase() is dpi dependent #8378

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
IvanAvdeevGth opened this issue Mar 25, 2017 · 1 comment
Closed

ColorbarBase() is dpi dependent #8378

IvanAvdeevGth opened this issue Mar 25, 2017 · 1 comment

Comments

@IvanAvdeevGth
Copy link

Hi everyone,

I find it out that there is a strange issue with matplotlib.colorbar.ColorbarBase(): when i save a figure with a colorbar in a vector format (such as pdf or eps) the colorbar is kinda jumps out its bounding axes object. First of all i tried to look at colorbar.solid objects, which seems to me as the main colour plot, but all the coordinates of this object was just fine.

To solve the problem of 'jumped out' colorbars i noticed that it depends on the dpi parameter in the figure.savefig() method. Anyway it is curious for me that dpi is actually a very important parameter for vector pictures (ofc if you use colorbars in such plots).

Examples of different plots are here in included files
cbar_dpi2.pdf
cbar_dpi5.pdf
cbar_dpi10.pdf
cbar_dpi20.pdf
cbar_dpi30.pdf
cbar_dpi50.pdf
cbar_dpi100.pdf
cbar_dpi200.pdf

@IvanAvdeevGth IvanAvdeevGth changed the title ColorbarBase problem, matplotlib 2.0 ColorbarBase() is dpi dependent Mar 25, 2017
@QuLogic
Copy link
Member

QuLogic commented Mar 25, 2017

Dupe of #6827.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants