altmany / altmany/export_fig

-r option and positioning of colorbar text

Ouverte
#145 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
MATLAB
Étoiles
1.4k
Forks
366
Métriques de merge des PR
Aucune PR mergée en 30 j

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!

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.