altmany / altmany/export_fig

-r option and positioning of colorbar text

Offen
#145 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
MATLAB
Sterne
1.4k
Forks
366
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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!

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.