Skip to content
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

-r option and positioning of colorbar text #145

Open
mbudisic opened this issue Apr 20, 2016 · 2 comments
Open

-r option and positioning of colorbar text #145

mbudisic opened this issue Apr 20, 2016 · 2 comments

Comments

@mbudisic
Copy link

mbudisic commented Apr 20, 2016

When I issue -r300 option of a pcolor-ed graph, the colorbar text is positioned incorrectly.

Minimal example:

pcolor( rand(10,10) );
h = colorbar;
h.Title.String = 'x';
export_fig('test.png','-r300')

and the output looks like (notice x hovering around 0.25 in the colorbar):
test

On-screen, everything looks ok:
screen shot 2016-04-20 at 12 24 38 pm

My current version is commit a0f8ec3

P.S. Thank you for the excellent work on this code, it's a lifesaver!

@sallywarner
Copy link

sallywarner commented Jan 23, 2018

I also have this problem. I end up using

text(x,y,'string')

to make colorbar titles, which is not optimal because I have to manually find x and y for each colorbar.

Thank you for export_fig!

@altmany
Copy link
Owner

altmany commented Jan 23, 2018

This looks ok on my Win7 R2017a using the latest version of export_fig. Please download the latest version of export_fig and retest. If it still behaves badly, then report the output of the ver command here to provide extra information about your specific system.

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

No branches or pull requests

3 participants