altmany / altmany/export_fig

Forcing painters renderer breaks images

Abierto
#262 6 comentarios 0 reacciones 0 asignados Ver en GitHub
internal Matlab bug
Lenguaje dominante
MATLAB
Estrellas
1.4k
Forks
366
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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)
```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.