[Scilab-users] periodical X-Axis in 2d plot
Philipp Mühlmann
p.muehlmann at gmail.com
Wed May 13 16:19:39 CEST 2015
*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 <sdr at 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 <p.muehlmann at gmail.com
>> <mailto:p.muehlmann at 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 <sgougeon at free.fr
>> <mailto:sgougeon at 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 at lists.scilab.org <mailto:users at lists.scilab.org>
>> http://lists.scilab.org/mailman/listinfo/users
>>
>>
>>
>>
>> --
>> There we have the salad.
>>
>>
>>
>>
>> --
>> There we have the salad.
>>
>>
>> _______________________________________________
>> users mailing list
>> users at lists.scilab.org
>> http://lists.scilab.org/mailman/listinfo/users
>>
>>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
--
There we have the salad.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20150513/08c46898/attachment.htm>
More information about the users
mailing list