Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Thread Subject:
export_fig not showing pcolor graphic

Subject: export_fig not showing pcolor graphic

From: rachael

Date: 21 May, 2013 21:58:11

Message: 1 of 1

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?

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us