Help with exporting pcolorm with shading interp

4 views (last 30 days)
I created pcolorm maps with interpolated shading. When I try to export this figure and save it as eps (or any other format) it fails to create it (I end up with a full on black figure). When I change the shading to flat or faceted I can export the figure. Any idea how I can still export the interpolated figures, they look so much nicer...
Any help is appreciated Thanks Sandra

Accepted Answer

bym
bym on 3 Mar 2012
  • Use the most popular file on the file exchange export_fig
  • Use the zbuffer renderer
  2 Comments
Sandra
Sandra on 4 Mar 2012
Hi Proescm,
Thanks for your answer. I already tried using that file, but I couldn't get the pfdtops to work so I tried the exportfig m.file. Which keeps giving me this error:
??? Error using ==> exportfig at 743
Error using ==> get
Invalid handle
This is just the final error message when there was a problem in the function, but I don't know where the problem occurred.
Any other ideas?
thanks so much any help is appreciated
bym
bym on 6 Mar 2012
you might try contacting the author or try this:
in the figure window go to file>export setup
go to 'rendering' and choose custom renderer (zbuffer) in drop down box. Select apply to figure. Then select export and choose your export format.
It seemed to work for me using tiff files (I don't have a good way of checking PS or EPS files

Sign in to comment.

More Answers (1)

Oliver Woodford
Oliver Woodford on 8 Mar 2012
If possible, use uimagesc instead of pcolorm. It will allow you to export the figure using the painters renderer.

Products

Community Treasure Hunt

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

Start Hunting!