[Scilab-users] figure_size

Rafael Guerra jrafaelbguerra at hotmail.com
Sun Sep 10 14:19:46 CEST 2017


Hi Claus,

You probably also need to set:

p.auto_resize="off";

before  ‘p.figure_size’; otherwise it  may not stick.

Regards,
Rafael


From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Claus Futtrup
Sent: Sunday, September 10, 2017 2:03 PM
To: International users mailing list for Scilab. <users at lists.scilab.org>
Subject: Re: [Scilab-users] figure_size

Hi all

I figured it out. At the beginning of the script I can call gdf and set parameters. I did:

if saveplots then // if plots are to be saved to disk, then

    plotsize = [931,750]; // make larger plot, default is 626 x 587

    p = gdf(); // Get Default Figure (p = PLOT) settings

    p.figure_position = [80,20]; // default is 200 x 200

//    p.figure_size = [931,750];

end
... The (default) figure_size didn't work, so it's commented out, and so I continue to reset the plot size for each plot individually.

Is this a Scilab bug, or is it my scripting being weird (again) ??

Best regards,
Claus

On 10-09-2017 13:35, Claus Futtrup wrote:

Hi there

When I create a new figure, I do newfig = scf();

Then to make the figure larger I do newfig.figure_size = [931,750]; // default is 626 x 587

// When height = 750 is specified, then it correctly becomes 817.

// I have no idea why. Scilab is a bit weird.

The top left corner stays the same, so the figure scales down. (Kinda smart, so you can always get hold of the top bar of the window), but unfortunately my PC monitor is not so large, the figure expand beyond the bottom of the screen.

Is there a way in which I can call scf() with the desired figure size already preset? ... something like scf(figure._size = [931,750]); maybe ?

Best regards,

Claus




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20170910/77bd4d57/attachment.htm>


More information about the users mailing list