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_locati

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: http

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...n

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 gues

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_posit

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 r

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

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 =

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 mis

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

2015-05-12 Thread Philipp Mühlmann
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. Now back to the game: if I place delete(e1); delete(e

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

2015-05-12 Thread Samuel Gougeon
Le 12/05/2015 23:17, Stefan Du Rietz a écrit : I have also noticed that I cannot change the position of a title, x- or y-label in-between specific drawlater/drawnow. I am afraid that it is not possible even outside. AFAIK, their placements are only automatic. It is not possible to change them by

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

2015-05-12 Thread Stefan Du Rietz
On 2015-05-12 23:03, Samuel Gougeon wrote: 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 displa

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

2015-05-12 Thread 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 continuo

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

2015-05-12 Thread Philipp Mühlmann
Dear Tim and Samual, this is hilarious :-). There is a little thing to mention though. The X-axis rotation can be performed only up to a number of times. Now imagine an aircraft making one full right turn starting from 0° heading. Than the X-axis is shifted through 1 time completely. So if th

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

2015-05-12 Thread Samuel Gougeon
Hi Philipp, Here is an example: x = linspace(0,1000,400); y = sind(x).^2-cosd(3*x)/2; clf plot(x,y) a = gca(); xt = 0:30:1000; a.x_ticks = tlist(["ticks" "locations" "labels"],xt,string(pmodulo(xt,360))); a.zoom_box = a.data_bounds'; a.zoom_box([1 3]) = [0 270]; a.sub_ticks(1)

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

2015-05-12 Thread Tim Wescott
On Tue, 2015-05-12 at 20:42 +0200, Samuel Gougeon wrote: > Hello, > > Le 12/05/2015 18:46, Tim Wescott a écrit : > > On Tue, 2015-05-12 at 06:55 +0200, Philipp Mühlmann wrote: > > .../... > > > > If you look at x_ticks.labels you'll see that it's just a matrix of > > numbers, located as specified

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

2015-05-12 Thread Samuel Gougeon
Hello, Le 12/05/2015 18:46, Tim Wescott a écrit : On Tue, 2015-05-12 at 06:55 +0200, Philipp Mühlmann wrote: .../... If you look at x_ticks.labels you'll see that it's just a matrix of numbers, located as specified in x_ticks.locations (so you can move the ticky marks, too). I did: -->g.child

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

2015-05-12 Thread Tim Wescott
On Tue, 2015-05-12 at 06:55 +0200, Philipp Mühlmann wrote: > Dear all, > > for a display I'l like to have the heading at the x-axis and the > altitude at the y-axis. > > The display will show a cross made of two xpoly lines. > > Both axes will change accordingly to the data input, which results

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

2015-05-11 Thread Philipp Mühlmann
Dear all, for a display I'l like to have the heading at the x-axis and the altitude at the y-axis. The display will show a cross made of two xpoly lines. Both axes will change accordingly to the data input, which results that the cross will stay in the midle of the display. This means: axes dat