altmany / altmany/export_fig

Forcing painters renderer breaks images

Đang mở
#262 6 bình luận 0 reaction 0 người được giao Xem trên GitHub
internal Matlab bug
Ngôn ngữ chính
MATLAB
Star
1.4k
Fork
366
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.