Tuesday, July 22, 2008

about renderers and exporting figures

Today i was having trouble exporting a figure using the opengl renderer (default for surfaces). To see which renderer a figure is using, use this command:


The solution was to change the renderer to z-buffer. To do so, just use this command:

This was necessary to export my carpetplots using the command:

myStyle = hgexport('factorystyle');
myStyle.Format = 'png';
myStyle.Width = 6;
myStyle.Height = 4;
myStyle.Resolution = 300;
myStyle.Units = 'inch';
myStyle.FixedFontSize = 12;

See my other posts to know more about the carpetplot function.

1 comment:

sarah lee said...

A people without the knowledge of their past history, origin and culture is like a tree without roots. See the link below for more info.