From: Barbara on
Hi all,

I use "pcolor" to plot the horizontal distribution of the water temperature, and then hold on, and use "contour" to plot the bathemetry with black color, however, when i want to save the figure, only the pcolor could be saved, the contour lines are not saved, no matter what figure forms (jpg, tif, emf, png) or command (saveas, print) I use. If I only plot the contour lines, it could be saved, so I am wondering if the "pcolor" and "contour" are conflict with each other.

This problem occurs on the pc with windows xp sp3, but the same code works fine on the linux server.

Have you ever met the same problem? and how do you solve this ? Thank you so much for your advice!

From: ImageAnalyst on
The built-in commands can be so tricky and unpredictable, as can be
seen by the postings on this virtually every day (or more frequent).
That's why I just don't even bother with them. Personally I use
Oliver Woodford's export_fig and it works well. Give it a try:
http://www.mathworks.com/matlabcentral/fileexchange/?term=author%3Awoodford
From: Barbara on
Thank you so much for your help!