[Scilab-users] strange behaviour of handle property figure_size

Eric Dubois grocer.toolbox at gmail.com
Sat May 3 19:36:27 CEST 2014


Hello.

I have encountered a strange behaviour of Scilab 5.5.0, which did not
happen with Scilab 5.4.1.

This happened with the following sequence:

--> wind=scf()

--> wind.figure_position=[0,0]

--> screen_size=get(0,'screensize_px')

--> wind.figure_size=screen_size(3:4)

--> plot2d(1:10,1:10)

With Scilab 5.4.1, it works fine, but with Scilab 5.5.0, the size of the
graph itself is not widened and the plot is not drawn. But, if you either
print the screen or export the graph for instance as a pdf file, then the
graph is windened and the plot is drawn (it works also if you use the
square icon in the upper right angle of Scialb graphic window, but since
all the stuff is percisely to be able to make it inside a programm, it is
not very helpful...) . If you save the graph as a.scg Scilab graph and
reload it (see file resize_5.5.0.scg), then the graph has now the desired
size, but does not provide the results of the plot2d command! (I join the
Scilab 5.4.1 result for a comparison: file reisze_5.4.1.scg).

I suspect it is a bug: right?

Is there another way to do widen automatically (that is with Scilab
commands) a graphic window that could work with Scilab 5.5.0?

Thanks!

Éric.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140503/75563145/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reisze.zip
Type: application/zip
Size: 20284 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20140503/75563145/attachment.zip>


More information about the users mailing list