Skip to content

Strange behavior of savePlot

5 messages · Christophe Genolini, Uwe Ligges

#
Hi all,

I am using savePlot in a loop for saving several graph but I get some 
graph in 553x552, some other in 1920x1119. How comes ?
My data are almost all the same (same label, same xlim / ylim, almost 
same data. Only the color changes).  I save them in bmp.
Thanks for your help.

Christophe
#
Christophe Genolini wrote:
Rather than using a Windows Device and copying the contents, just use 
the bmp() device directly if you really want bitmaps.

Uwe Ligges
#
Uwe Ligges a ?crit :
I do not want a bitmaps. I use savePlot in a library, so I let the user 
decide whith export he wants.
Christophe
#
Christophe Genolini wrote:
Then, why not let the user choose a proper device?
Anyway, the resulting bitmap is copied from the screen device, that 
means the size is also copied.
That means if you have some 1600x1200 screen and your windows device is 
resized to fullscreen, than you will almost get 1600x1200 pixels in your 
bitmap...

Uwe Ligges
#
Uwe Ligges a ?crit :
Because I program a graphical interface that let the user to chose the 
graph he want to export (that can be one but also 50). Then he sets 
dynamicaly the parameters for all the graphics he wants to export. Then 
all the graphs are exported at once.
Ok, the "strange behevior" was occuring because I change the size of the 
windows during the export...
Thanks a lot

Christophe