Re: [Scilab-users] Strange figure behaviour

2015-05-13 Thread Samuel Gougeon

Le 13/05/2015 13:54, Stefan Du Rietz a écrit :


Thanks, but it changes the same axes wherever I click! 
I do not get this behavior with Scilab 5.5.2 on win7_x64. Only the 
clicked axes is rotated, whatever it is.


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


Re: [Scilab-users] Non linear regression

2015-05-13 Thread Eric Dubois
Hello.

You can use fslove if your equation is exact and leastsq if it is an
approximate relationship. But,in the first case you need to have the smae
number of parameters than observations and in the second one more
observations than parameters, whereas you seem to have less observations
(3) than parameters (4): you should have an infinite number of slutions!

Éric

2015-05-13 19:43 GMT+02:00 Kleper Oliveira Rocha :

> Dear colleagues,
>
> I want to fit data to an equation like
> [image: Imagem inline 1]
>  where a, beta1, b and beta2 must be determined.
>
> The data are:
>
> y PcoPH2
>
> 0.00495   1.0  0.1
> 0.00742   1.0  0.5
> 0.00525   1.0  4.0
>
> In the book of Fogler (Elements of Chemical Reaction Engineering) I have
> the answer
>
> a = 0.02527
> beta1 = 0.6166
> b = 2.4872
> beta2 = 1.0262
>
> How can I fit the data above to the equation in Scilab?
>
> Thanks in advance.
> *- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - *
> *Kleper de Oliveira Rocha*
>
>
> ___
> 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


[Scilab-users] Non linear regression

2015-05-13 Thread Kleper Oliveira Rocha
Dear colleagues,

I want to fit data to an equation like
[image: Imagem inline 1]
 where a, beta1, b and beta2 must be determined.

The data are:

y PcoPH2

0.00495   1.0  0.1
0.00742   1.0  0.5
0.00525   1.0  4.0

In the book of Fogler (Elements of Chemical Reaction Engineering) I have
the answer

a = 0.02527
beta1 = 0.6166
b = 2.4872
beta2 = 1.0262

How can I fit the data above to the equation in Scilab?

Thanks in advance.
*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - *
*Kleper de Oliveira Rocha*
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Handle event ibut=-1000 (closing figure window, red cross)

2015-05-13 Thread khannes
Hey Serge, thank you very much!!



--
View this message in context: 
http://mailinglists.scilab.org/Handle-event-ibut-1000-closing-figure-window-red-cross-tp4032258p4032271.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] periodical X-Axis in 2d plot

2015-05-13 Thread Stefan Du Rietz

On 2015-05-13 16:19, Philipp Mühlmann wrote:

/Yes, it does, but the automatic x value should remain if I only
change the y value, shouldn't it?/
I guess no help, but:
yes, it should..question is: does it?
Did you "disp(a.x_location)" and check if the value keeps constant
after updating a.y_location by hand?
Would be interesting to see...never used something like this before.
Best wishes,
Philipp



As I tried to explain, If I set
  a.title.auto_position="on"
after drawlater() where I change the x axis and do many things, and 
not until *after* drawnow() change the y value

  a.title_position(2)=new_vertical_position
then the title gets the correct position: the automatic x value and 
the y value new_vertical_position.


Calixte, please, that must be a bug?

Best regards
Stefan


2015-05-13 14:18 GMT+02:00 Stefan Du Rietz mailto:s...@durietz.se>>:

On 2015-05-13 12:47, Philipp Mühlmann wrote:

/ But my problem is:/
/1. I change only the x-axis in the axes a/
/2. I let Scilab set the position with a.title.auto_position="on"/
/3. I change a.title_position(2)=new_vertical_position/
/4. unfortunately a.title_position(1) is not updated/
//
I guess that editing a.title after   a.title.auto_positioning =
'on';   switches off the auto positioning?


Yes, it does, but the automatic x value should remain if I only
change the y value, shouldn't it?

What about using:
/a.title_position(//1)  = new_horizontal_position/
/a.title_position(2)  = new_vertical_position/
where new_horizontal position = old_horizontal_position if
x-axes does
not change or getting a new value (depending on your data) if the
x-axes changes.


I tried that, but it is very complicated to calculate the
horizontal position so that the title is positioned in the middle ...

And it works if I change the y position after drawnow()!

Regards
Stefan

Greetings,
Philipp

2015-05-13 12:24 GMT+02:00 Philipp Mühlmann
mailto:p.muehlm...@gmail.com>
>>:

 /I may miss something again, but when they are in their own
 drawnlater/drawnow pair -- not the one used for plotting
--, it
 seems to work./
 cool...thanks...I managed to have the cross without
blinking now
 using drawlater() / drawnow() in connection with
delete(e). didn't
 know "embrassing".
 Best regards,
 Philipp

 2015-05-13 9:54 GMT+02:00 Samuel Gougeon
mailto:sgoug...@free.fr>
 >>:

 Le 13/05/2015 09:32, Samuel Gougeon a écrit :

 Le 13/05/2015 08:08, Philipp Mühlmann a écrit :

 I have also noticed that I cannot change the
position
 of a title, x-
 or y-label in-between specific drawlater/drawnow.

 If you know where to place x-y-label

 What about:

 a = gca()
 a.x_label.position =
 a.y_label.position =

 works great or me.

 For me as well (i forgot this property), even within
 drawlater/drawnow.
 About a.x_location about which i was thinking : it
works also
 within drawlater/drawnow.
 Ni issue for me (apart reminding ;)

 About the + cross: to avoid it blinking (while axes
stopped
 to), you may update their data instead of deleting and
 recreating it for each iteration, and see the result
(i did
 not try).




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




 --
 There we have the salad.




--
There we have the salad.


___
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




--
There we have the salad.


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




___
users mailing list
users@lists

Re: [Scilab-users] Strange figure behaviour

2015-05-13 Thread Philipp Mühlmann
an idea for supprssing the figure rotation:

- what about using "xgetmouse() ?

normally if one presses the right button (and holds it) the figure is
rotated.

having something like:


clc;f = gcf()plot2d();ibut = [0 0 -1]; // declaring
the ibuttonwhile ibut(3) == -1 ;// --> mouse just moving
ibut=xgetmouse();
if ibut(3) == 2  | ibut(3)==5 | ibut(3) == 12 | ibut(3) == -3;
a = gca();
a.view = '2d';
disp(ibut(3));
end;
if ibut(3) == 3
close(f);
return;
end;
ibut(3) =-1;end;


will rotate back to 2d view every time the image is rotated by mouse.
to end the loop click  the left mouse button.

Not ideal but maybe a start.

 Best regards,
Philipp

2015-05-13 13:54 GMT+02:00 Stefan Du Rietz :

> On 2015-05-13 13:41, sgoug...@free.fr wrote:
>
>> De: "Stefan Du Rietz"
>>> Envoyé: Mercredi 13 Mai 2015 12:19:01
>>>
>>> Hello all,
>>> can anybody explain this:
>>> I have a figure f with two axes (and some GUIs). When I move the mouse
>>> with the right button pressed, *one* of the axes gets distorted.
>>>
>>
>> Right-click rotates interactively the axes on which you have clicked.
>> To restore it (and all), you may do:
>> f = gcf();
>> k = f.children.type=="Axes"
>> f.children(k).view="2d";
>>
>> SG
>>
>
> Thanks, but it changes the same axes wherever I click! And I would like to
> prevent the possibility to rotate the axes.
>
> Stefan
>
>
>
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>



-- 
There we have the salad.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] periodical X-Axis in 2d plot

2015-05-13 Thread Philipp Mühlmann
Thanks to the suggestions made here I finally made my display running.

Now the yellow cross is without twinkling and the x-axis range is between
0° -> 360° starting at 0° again for values > n * 360°

thanks guys.

I'll add the display to the "analoge display" toolbox which can be found
here:

https://fileexchange.scilab.org/toolboxes/312000

Any suggestions for a nice function/display name?

I named it HeadAlt but though I'm not satisfied with this name I don't know
a better one.

Best regards,
Philipp

2015-05-12 23:03 GMT+02:00 Samuel Gougeon :

> Le 12/05/2015 22:34, Philipp Mühlmann a écrit :
>
>> Attached you may find my draft scripts for the display, so you may get
>> a better impression of the idea.
>>
> funny :)
> Embrassing delete(e1); delete(e2); in-between specific drawlater/drawnow
> softens the display (no longer twinkling).
> To have a continuous unlimited axis, you may just shift it by an integer
> number of periods when you reach the limit, and then keep go on in the same
> way.
>
> Samuel
>
>
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>



-- 
There we have the salad.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] periodical X-Axis in 2d plot

2015-05-13 Thread Philipp Mühlmann
*Yes, it does, but the automatic x value should remain if I only change the
y value, shouldn't it?*

I guess no help, but:

yes, it should..question is: does it?

Did you "disp(a.x_location)" and check if the value keeps constant after
updating a.y_location by hand?

Would be interesting to see...never used something like this before.


Best wishes,
Philipp





2015-05-13 14:18 GMT+02:00 Stefan Du Rietz :

> On 2015-05-13 12:47, Philipp Mühlmann wrote:
>
>> / But my problem is:/
>> /1. I change only the x-axis in the axes a/
>> /2. I let Scilab set the position with a.title.auto_position="on"/
>> /3. I change a.title_position(2)=new_vertical_position/
>> /4. unfortunately a.title_position(1) is not updated/
>> //
>> I guess that editing a.title after   a.title.auto_positioning =
>> 'on';   switches off the auto positioning?
>>
>
> Yes, it does, but the automatic x value should remain if I only change the
> y value, shouldn't it?
>
>  What about using:
>> /a.title_position(//1)  = new_horizontal_position/
>> /a.title_position(2)  = new_vertical_position/
>> where new_horizontal position = old_horizontal_position if x-axes does
>> not change or getting a new value (depending on your data) if the
>> x-axes changes.
>>
>
> I tried that, but it is very complicated to calculate the horizontal
> position so that the title is positioned in the middle ...
>
> And it works if I change the y position after drawnow()!
>
> Regards
> Stefan
>
>  Greetings,
>> Philipp
>>
>> 2015-05-13 12:24 GMT+02:00 Philipp Mühlmann > >:
>>
>> /I may miss something again, but when they are in their own
>> drawnlater/drawnow pair -- not the one used for plotting --, it
>> seems to work./
>> cool...thanks...I managed to have the cross without blinking now
>> using drawlater() / drawnow() in connection with delete(e). didn't
>> know "embrassing".
>> Best regards,
>> Philipp
>>
>> 2015-05-13 9:54 GMT+02:00 Samuel Gougeon > >:
>>
>> Le 13/05/2015 09:32, Samuel Gougeon a écrit :
>>
>> Le 13/05/2015 08:08, Philipp Mühlmann a écrit :
>>
>> I have also noticed that I cannot change the position
>> of a title, x-
>> or y-label in-between specific drawlater/drawnow.
>>
>> If you know where to place x-y-label
>>
>> What about:
>>
>> a = gca()
>> a.x_label.position =
>> a.y_label.position =
>>
>> works great or me.
>>
>> For me as well (i forgot this property), even within
>> drawlater/drawnow.
>> About a.x_location about which i was thinking : it works also
>> within drawlater/drawnow.
>> Ni issue for me (apart reminding ;)
>>
>> About the + cross: to avoid it blinking (while axes stopped
>> to), you may update their data instead of deleting and
>> recreating it for each iteration, and see the result (i did
>> not try).
>>
>>
>>
>>
>> ___
>> users mailing list
>> users@lists.scilab.org 
>> http://lists.scilab.org/mailman/listinfo/users
>>
>>
>>
>>
>> --
>> There we have the salad.
>>
>>
>>
>>
>> --
>> There we have the salad.
>>
>>
>> ___
>> 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
>



-- 
There we have the salad.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] periodical X-Axis in 2d plot

2015-05-13 Thread Stefan Du Rietz

On 2015-05-13 12:47, Philipp Mühlmann wrote:

/ But my problem is:/
/1. I change only the x-axis in the axes a/
/2. I let Scilab set the position with a.title.auto_position="on"/
/3. I change a.title_position(2)=new_vertical_position/
/4. unfortunately a.title_position(1) is not updated/
//
I guess that editing a.title after   a.title.auto_positioning =
'on';   switches off the auto positioning?


Yes, it does, but the automatic x value should remain if I only change 
the y value, shouldn't it?



What about using:
/a.title_position(//1)  = new_horizontal_position/
/a.title_position(2)  = new_vertical_position/
where new_horizontal position = old_horizontal_position if x-axes does
not change or getting a new value (depending on your data) if the
x-axes changes.


I tried that, but it is very complicated to calculate the horizontal 
position so that the title is positioned in the middle ...


And it works if I change the y position after drawnow()!

Regards
Stefan


Greetings,
Philipp

2015-05-13 12:24 GMT+02:00 Philipp Mühlmann mailto:p.muehlm...@gmail.com>>:

/I may miss something again, but when they are in their own
drawnlater/drawnow pair -- not the one used for plotting --, it
seems to work./
cool...thanks...I managed to have the cross without blinking now
using drawlater() / drawnow() in connection with delete(e). didn't
know "embrassing".
Best regards,
Philipp

2015-05-13 9:54 GMT+02:00 Samuel Gougeon mailto:sgoug...@free.fr>>:

Le 13/05/2015 09:32, Samuel Gougeon a écrit :

Le 13/05/2015 08:08, Philipp Mühlmann a écrit :

I have also noticed that I cannot change the position
of a title, x-
or y-label in-between specific drawlater/drawnow.

If you know where to place x-y-label

What about:

a = gca()
a.x_label.position =
a.y_label.position =

works great or me.

For me as well (i forgot this property), even within
drawlater/drawnow.
About a.x_location about which i was thinking : it works also
within drawlater/drawnow.
Ni issue for me (apart reminding ;)

About the + cross: to avoid it blinking (while axes stopped
to), you may update their data instead of deleting and
recreating it for each iteration, and see the result (i did
not try).




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




--
There we have the salad.




--
There we have the salad.


___
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


Re: [Scilab-users] Handle event ibut=-1000 (closing figure window, red cross)

2015-05-13 Thread Serge Steer
Le 13/05/2015 10:54, khannes a écrit :
> Hello everyone!
>
> Is there a chance to stop the the current figure window from closing,
> although the red cross (ibut = -1000 in the figure event handler) was hit?
yes, you can set the figure closerequestfcn property to a function name

example
f=gcf()
function myclose(), disp("hello");endfunction
f.closerequestfcn="myclose"

The each time you hit the red cross the hello message is send

To kill the window one then has to call delete(f)

Serge Steer
> Is there kind of an interrupt that could halt that?
> I did not figure out how i could manage to do that so far!
>
> Thank you in advance!
>
> Best regards,
> Hannes
>
>
>
> --
> View this message in context: 
> http://mailinglists.scilab.org/Handle-event-ibut-1000-closing-figure-window-red-cross-tp4032258.html
> Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
> Nabble.com.
> ___
> 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


Re: [Scilab-users] Strange figure behaviour

2015-05-13 Thread Stefan Du Rietz

On 2015-05-13 13:41, sgoug...@free.fr wrote:

De: "Stefan Du Rietz"
Envoyé: Mercredi 13 Mai 2015 12:19:01

Hello all,
can anybody explain this:
I have a figure f with two axes (and some GUIs). When I move the mouse
with the right button pressed, *one* of the axes gets distorted.


Right-click rotates interactively the axes on which you have clicked.
To restore it (and all), you may do:
f = gcf();
k = f.children.type=="Axes"
f.children(k).view="2d";

SG


Thanks, but it changes the same axes wherever I click! And I would 
like to prevent the possibility to rotate the axes.


Stefan


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


Re: [Scilab-users] Strange figure behaviour

2015-05-13 Thread sgougeon
>De: "Stefan Du Rietz"
>Envoyé: Mercredi 13 Mai 2015 12:19:01
>
>Hello all,
>can anybody explain this:
>I have a figure f with two axes (and some GUIs). When I move the mouse 
>with the right button pressed, *one* of the axes gets distorted.

Right-click rotates interactively the axes on which you have clicked.
To restore it (and all), you may do:
f = gcf();
k = f.children.type=="Axes"
f.children(k).view="2d";

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


Re: [Scilab-users] periodical X-Axis in 2d plot

2015-05-13 Thread Philipp Mühlmann
* But my problem is:*
*1. I change only the x-axis in the axes a*
*2. I let Scilab set the position with a.title.auto_position="on"*
*3. I change a.title_position(2)=new_vertical_position*
*4. unfortunately a.title_position(1) is not updated*

I guess that editing a.title after   a.title.auto_positioning = 'on';
switches off the auto positioning?

What about using:
*a.title_position(**1)  = new_horizontal_position*
*a.title_position(2)  = new_vertical_position*

where new_horizontal position = old_horizontal_position if x-axes does not
change or getting a new value (depending on your data) if the x-axes
changes.

Greetings,
Philipp

2015-05-13 12:24 GMT+02:00 Philipp Mühlmann :

> *I may miss something again, but when they are in their own
> drawnlater/drawnow pair -- not the one used for plotting --, it seems to
> work.*
>
> cool...thanks...I managed to have the cross without blinking now using
> drawlater() / drawnow() in connection with delete(e). didn't know
> "embrassing".
>
> Best regards,
> Philipp
>
>
> 2015-05-13 9:54 GMT+02:00 Samuel Gougeon :
>
>> Le 13/05/2015 09:32, Samuel Gougeon a écrit :
>>
>>> Le 13/05/2015 08:08, Philipp Mühlmann a écrit :
>>>
 I have also noticed that I cannot change the position of a title, x-
 or y-label in-between specific drawlater/drawnow.

 If you know where to place x-y-label

 What about:

 a = gca()
 a.x_label.position =
 a.y_label.position =

 works great or me.

>>> For me as well (i forgot this property), even within drawlater/drawnow.
>> About a.x_location about which i was thinking : it works also within
>> drawlater/drawnow.
>> Ni issue for me (apart reminding ;)
>>
>> About the + cross: to avoid it blinking (while axes stopped to), you may
>> update their data instead of deleting and recreating it for each iteration,
>> and see the result (i did not try).
>>
>>
>>
>>
>> ___
>> users mailing list
>> users@lists.scilab.org
>> http://lists.scilab.org/mailman/listinfo/users
>>
>
>
>
> --
> There we have the salad.
>



-- 
There we have the salad.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] periodical X-Axis in 2d plot

2015-05-13 Thread Philipp Mühlmann
*I may miss something again, but when they are in their own
drawnlater/drawnow pair -- not the one used for plotting --, it seems to
work.*

cool...thanks...I managed to have the cross without blinking now using
drawlater() / drawnow() in connection with delete(e). didn't know
"embrassing".

Best regards,
Philipp


2015-05-13 9:54 GMT+02:00 Samuel Gougeon :

> Le 13/05/2015 09:32, Samuel Gougeon a écrit :
>
>> Le 13/05/2015 08:08, Philipp Mühlmann a écrit :
>>
>>> I have also noticed that I cannot change the position of a title, x-
>>> or y-label in-between specific drawlater/drawnow.
>>>
>>> If you know where to place x-y-label
>>>
>>> What about:
>>>
>>> a = gca()
>>> a.x_label.position =
>>> a.y_label.position =
>>>
>>> works great or me.
>>>
>> For me as well (i forgot this property), even within drawlater/drawnow.
> About a.x_location about which i was thinking : it works also within
> drawlater/drawnow.
> Ni issue for me (apart reminding ;)
>
> About the + cross: to avoid it blinking (while axes stopped to), you may
> update their data instead of deleting and recreating it for each iteration,
> and see the result (i did not try).
>
>
>
>
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>



-- 
There we have the salad.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Strange figure behaviour

2015-05-13 Thread Stefan Du Rietz

Hello all,
can anybody explain this:
I have a figure f with two axes (and some GUIs). When I move the mouse 
with the right button pressed, *one* of the axes gets distorted.

-->unzoom(f)
or
-->f.event_handler_enable = "off";
does not help.

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


Re: [Scilab-users] periodical X-Axis in 2d plot

2015-05-13 Thread Stefan Du Rietz

On 2015-05-13 09:54, Samuel Gougeon wrote:

Le 13/05/2015 09:32, Samuel Gougeon a écrit :

Le 13/05/2015 08:08, Philipp Mühlmann a écrit :

I have also noticed that I cannot change the position of a title, x-
or y-label in-between specific drawlater/drawnow.

If you know where to place x-y-label

What about:

a = gca()
a.x_label.position =
a.y_label.position =

works great or me.

For me as well (i forgot this property), even within drawlater/drawnow.
About a.x_location about which i was thinking : it works also within
drawlater/drawnow.
Ni issue for me (apart reminding ;)


But my problem is:
1. I change only the x-axis in the axes a
2. I let Scilab set the position with a.title.auto_position="on"
3. I change a.title_position(2)=new_vertical_position
4. unfortunately a.title_position(1) is not updated

Without 3. a.title_position(1) *is* updated!

Stefan



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


[Scilab-users] Handle event ibut=-1000 (closing figure window, red cross)

2015-05-13 Thread khannes
Hello everyone!

Is there a chance to stop the the current figure window from closing,
although the red cross (ibut = -1000 in the figure event handler) was hit?
Is there kind of an interrupt that could halt that?
I did not figure out how i could manage to do that so far!

Thank you in advance!

Best regards,
Hannes



--
View this message in context: 
http://mailinglists.scilab.org/Handle-event-ibut-1000-closing-figure-window-red-cross-tp4032258.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] periodical X-Axis in 2d plot

2015-05-13 Thread Samuel Gougeon

Le 13/05/2015 09:32, Samuel Gougeon a écrit :

Le 13/05/2015 08:08, Philipp Mühlmann a écrit :

I have also noticed that I cannot change the position of a title, x-
or y-label in-between specific drawlater/drawnow.

If you know where to place x-y-label

What about:

a = gca()
a.x_label.position =
a.y_label.position =

works great or me.

For me as well (i forgot this property), even within drawlater/drawnow.
About a.x_location about which i was thinking : it works also within 
drawlater/drawnow.

Ni issue for me (apart reminding ;)

About the + cross: to avoid it blinking (while axes stopped to), you may 
update their data instead of deleting and recreating it for each 
iteration, and see the result (i did not try).




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


Re: [Scilab-users] periodical X-Axis in 2d plot

2015-05-13 Thread Samuel Gougeon

Le 13/05/2015 08:08, Philipp Mühlmann a écrit :

I have also noticed that I cannot change the position of a title, x-
or y-label in-between specific drawlater/drawnow.

If you know where to place x-y-label

What about:

a = gca()
a.x_label.position =
a.y_label.position =

works great or me.
My mistake and apologize to Stefan. I was wondering about exact 
positioning from the axis border.

Now back to the game:

if I place

delete(e1);
delete(e2);

in between drawlater() / drawnow() ...I don't see the xpolys at
all...where is my thinking error?
I may miss something again, but when they are in their own 
drawnlater/drawnow pair -- not the one used for plotting --, it seems to 
work.


Samuel

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