[Scilab-users] figure_size

Claus Futtrup cfuttrup at gmail.com
Sun Sep 10 14:47:50 CEST 2017


Hi Rafael

FYI, just adding auto_resize = "off" means that the actual plot doesn't 
resize to the new (bigger) plot area. I get a small plot in a larger 
plot area and lots of white space.

You're probably right, I need a combo of settings.

Best regards,
Claus

On 10-09-2017 14:19, Rafael Guerra wrote:
>
> 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:
>
> ifsaveplots 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
>
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users


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


More information about the users mailing list