Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

export_fig not showing pcolor graphic

$
0
0
I'm running r2012b on a SUSE linux86 system.

Export_fig is printing my graphic beautifully except the last graphic that I plot up isn't showing up. If I have a 4 panel graphic then the 4th panel is blank. If I change nothing but just comment out my 4th panel then the 3rd panel is blank. This problem appears specific to printing to pdf.

I am keen to use export_fig because it fixed other issues regarding changing font size and axis sizes when printing to figure file. I am also keen to use pdf because the graphic looks better and the axis resizing issue isn't apparent.

I'm using code like:

fig = figure;
hndl = axes('position',[0 0 1 1], 'parent', fig);
ha(1) = axes('outerposition',[x1 x2 y1 y2], 'parent',fig);
pcolor(ha(1), x, y, data);
...
export_fig('-pdf', '-nocrop','test.pdf');

Has anyone seen this before and have a solution?

Viewing all articles
Browse latest Browse all 19628

Trending Articles