Oliver, thanks very much but something is funny. If I have the property editor open for the original figure the color is white. I run the set commands and the color is none. I then use export_fig and the color goes back to white (as seen in the Property Manager), and the figure has a white background (export_fig foo.png -pdf; OS X 10.6.2, 2009b). Same white background on the pdf and the png.
Can someone tell me how to set the color property to 'none'. If you set edit figure and then use the property editor you only get an option for color (e.g. a palette), you can't type in 'none'. I'm missing something obvious here, can someone please help me with this.
Nicky: That's difficult to fix in export_fig. However, a workaround is to draw the grid lines or the axis bounding box manually to be able to get the desired ordering.
Comment only
14 Jun 2013
export_fig
Exports figures nicely to a number of vector & bitmap formats.
I want to export a figure to a .png and I want my linetypes and gridlines to be scaled correctly, so I've got to use the 'painters' renderer. The axis border ('box') is exported under the plot which means it gets covered by the plotted points. This does not happen with the default renderer.
If I change the axes layer to 'top' then the border comes to the top but so do the gridlines. Is there a way of having only the axes border at the top but not the gridlines?
Thanks for the script Oliver... been using it for a long time now and it fills a big gap in MATLAB.
Comment only
13 Jun 2013
export_fig
Exports figures nicely to a number of vector & bitmap formats.
m_user: You can export a particular axes in a figure just by passing in a handle, but there is no support for rendering just part of an axes - I do not intend to implement this either. I suggest you use the newsgroup or Answers to find out the many other ways in which you might achieve what you want.
Comment only