Skip to content

Forcing painters renderer breaks images #262

@durack1

Description

@durack1

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
And the PAINTERS output looks broken, with the fill seeming to be mixed across layers, like
181128_fig1-painters

A similar issue also occurs with another figure, so

OPENGL
181128_fig5-opengl
PAINTERS with text missing along with lines that should be bolded not in the Pacific and Indian oceans
181128_fig5-painters

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)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions