altmany / altmany/export_fig

Forcing painters renderer breaks images

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

Descrizione

I pulled the latest version (26eb699) of export_fig yesterday, so this should be directly reproducible.

This issue replicates #107 (superscripts in figure axes), but also goes further than this as the output from the `-opengl` vs `-painters` renderer option yields very different (and incorrect) output. This can be most easily described with examples.

So I generate a figure which looks fine on the screen, and using `-opengl` or `-painters` I get the following, for completeness the command is (with either renderer specified):
```
export_fig([out_dir,datestr(now,'yymmdd'),'_Fig',fignum],'-eps','-opengl')
```
So the **OPENGL** output looks like
![181128_fig1-opengl](https://user-images.githubusercontent.com/3229632/49251582-96010400-f3d6-11e8-9d21-347b5eb3f6c5.png)
And the **PAINTERS** output looks broken, with the fill seeming to be mixed across layers, like
![181128_fig1-painters](https://user-images.githubusercontent.com/3229632/49251648-c052c180-f3d6-11e8-9f64-e5b650f47837.png)

A similar issue also occurs with another figure, so

**OPENGL**
![181128_fig5-opengl](https://user-images.githubusercontent.com/3229632/49251709-e7a98e80-f3d6-11e8-9060-d95fe3ec484e.png)
**PAINTERS** with text missing along with lines that should be bolded not in the Pacific and Indian oceans
![181128_fig5-painters](https://user-images.githubusercontent.com/3229632/49251714-eb3d1580-f3d6-11e8-888e-e89f979f3adc.png)

Is this an export_fig issue, or matlab?

For completeness:
```
MATLAB Version: 9.5.0.944444 (R2018b)
Operating System: Linux 2.6.32-754.3.5.el6.x86_64 #1 SMP Thu Aug 9 11:56:22 EDT 2018 x86_64
Java Version: Java 1.8.0_152-b16 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Export_fig Version: current master (26eb699)
```

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.