altmany / altmany/export_fig

-r option and positioning of colorbar text

Aperta
#145 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
MATLAB
Stelle
1.4k
Fork
366
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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!

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.