[Scilab-users] figure_size
Claus Futtrup
cfuttrup at gmail.com
Sun Sep 10 16:03:22 CEST 2017
Hi Rafael
You're right. I didn't find any other way (no automatic version). Thank
you for your help.
What does p.background = "8" do? ... officially it sets the background
color = white (the default). Is there a reason / a trick to it?
The biggest axis_size that works (for the 931 x 750 figure size) is
[915,623]. This I found by trial and error. I didn't find an easy
logical way to figure this out.
I think keeping auto_resize = "on" is OK. Then you can change the size
(e.g. with your mouse) and the figure resizes accordingly (just wait a
bit, it takes some seconds).
Thank you for your help. This is better because I don't have to resize
during the script run (such resizing takes additional time to execute).
I probably save half a minute every time I execute the script. :-)
Best regards,
Claus
On 10-09-2017 15:41, Rafael Guerra wrote:
>
> For your example, adding the p.axes_sizecommand below should be enough:
>
> p=_gdf_();
>
> p.background=8;
>
> p.figure_position=[80,20];
>
> p.auto_resize="off";
>
> p.figure_size=[931,750];
>
> p.axes_size=[910,620];
>
> plot2d()///create a figure/
>
> Regards,
>
> Rafael
>
> *From:*users [mailto:users-bounces at lists.scilab.org] *On Behalf Of
> *Claus Futtrup
> *Sent:* Sunday, September 10, 2017 2:48 PM
> *To:* users at lists.scilab.org
> *Subject:* Re: [Scilab-users] figure_size
>
> 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
>
>
>
> _______________________________________________
> 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/03a6faad/attachment.htm>
More information about the users
mailing list