altmany / altmany/export_fig

-r option and positioning of colorbar text

Open
#145 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
MATLAB
Stars
1.4k
Forks
366
PR merge metrics
No merged PRs in 30d

Description

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

Minimal example:

```Matlab
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](https://cloud.githubusercontent.com/assets/748221/14683908/d13c9a30-06f2-11e6-857d-f75053e76061.png)

On-screen, everything looks ok:
![screen shot 2016-04-20 at 12 24 38 pm](https://cloud.githubusercontent.com/assets/748221/14683918/df759c78-06f2-11e6-86fc-d87ec64fe963.png)

My current version is commit a0f8ec376d06

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.