[Scilab-users] xload mess ...

2019-09-11 Thread Antoine Monmayrant
Hi all,

I'm fighting with xload to reload saved figures, modify them (aesthetics only) 
and export.
There are several issues with xload that does not seem to match the 
documentation:

- If no graphic windows are opened, xload('figfile.scg') is creating a new one 
and restoring the figure size ( gcf().figure_size ), contrary to what is stated 
in the documentation "xload does not restore the window number, the window size 
nor the window dimensions."
- If there are graphic windows opened, xload('figfile.scg') adds the saved 
figure to the current window, usually resulting in a terrible mess, figure size 
being lost during the battle. The fact the the current window is modified by 
calling xload() is not mentioned in the documentation.
-- if h=scf() and using xload('figfile.scg',h) the figure is restored in h and 
the original figure size is lost (h.figure_size is used).

So here is my question: is there a way to restore a figure from a file, 
including its figure size, without resorting to closing all the other figures 
beforehand?

Cheers,

Antoine

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] {EXT} help for specific plot

2019-09-11 Thread Vesela Pasheva

Thank you, Christophe,

param3d works exactly as I have expected. This was my idea.
Now I will try the second option you have proposed.

Thank you again.
Vesela




На 10-09-2019 17:44, Dang Ngoc Chan, Christophe написа:

Hello,


De : Vesela Pasheva

I am dealing with a closed planar contour, presented in a struct 
PS.x,[],PS.y,[]
with m points. The contour is closed, so m+1 point coincides with the 
first.
Parallel to this I have a quantity TS (temperature) as an array which 
elements

correspond to the points of the contour.

The question is: how to present graphically the data - the points, and 
the
temperatures. It seems to be a cilindrical surface, which base is the 
contour,

and heghts are the values of TS.


I'm not sure to understand well but here are a few ideas:

1. The TS parameter can be the z axis.
If PS.x, PS.y and TS are vectors of the same size, try the param3d() 
function

https://help.scilab.org/docs/6.0.2/en_US/param3d.html

something like

param3d(PS.x, PS.y, TS)

2. The TS parameter can be represented by a color.
Have a look at the scatter() function:
https://help.scilab.org/docs/6.0.2/en_US/scatter.html

but you will have to discretize the TS values to associate a value to a 
colour

which is not straightforward.

You can also define a matrix of values,
you then discretize the x and y values.
The pixels corresponding to a (PS.x(i), PS.y(i)) have their TS value,
the other pixels have a %nan, then you can use grayplot()

https://help.scilab.org/docs/6.0.2/en_US/grayplot.html

Hope this helps

--
Christophe Dang Ngoc Chan
Mechanical calculation engineer

General
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error), please notify the sender immediately and destroy this e-mail.
Any unauthorized copying, disclosure or distribution of the material
in this e-mail is strictly forbidden.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users