EPS file: Squares get saved as 2 triangles

1 view (last 30 days)
Doppel Ganger
Doppel Ganger on 20 Apr 2011
I've noticed that when saving a heatmap plot (created using the pcolor function) as an eps files matlab does strange things with some of the colored squares (well rectangles) that make up the tiling of the heatmap. Some squares will be saved as two triangles instead of just a single colored square. Re-sizing the plot before saving will change which squares get saved as two triangles, but I can never get matlab to save each square as just a square.
There is also a line across the diagonal of the square, dividing the two triangles, but I can't tell if this is a path or just a space between the two triangles. When I look at the layers I can't find an object, so it seems to just be a space. It seems matlab also does strange things when grouping objects into layers (some squares, usually in one or two columns) will be grouped together in a layer, whereas others won't).
I'm opening the eps in illustrator.
I can deal with things being organized into weird layer groupings, but I wish matlab would represent each square as a square, and not two triangles. Is there any way to control this?
Just a shot in the dark.

Answers (1)

Jarrod Rivituso
Jarrod Rivituso on 20 Apr 2011
Total shot in the dark - does the renderer used make a difference?
You can select File -> Export Setup from the figure menu and under the "Rendering" options there is a "Custom renderer". If you change the option and then export, do things stay the same?
Just a thought for something to try. Good luck.

Categories

Find more on Data Distribution Plots in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!