PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 02 Sep 2022 06:01 AM by  Peter Montag
Possible bug in "position" property in graphics objects
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Peter Montag



New Member


Posts:
New Member


--
02 Sep 2022 06:01 AM
    While working with some custom plotting routines, I found that setting the position property of a plot does not work as expected. Rather than the plot moving to those coordinates, it instead move something like 2/3 of the way there. For example,

    p=plot([0,1],[0,1])
    p.position = [0.0, 0.0, 0.5, 0.5]
    p.position = [0.5, 0.0, 1.0, 0.5]

    will give a plot positioned at [0.314, 0.0, 0.814, 0.5]. Does anyone know what's happening here? Is this intended behavior?

    You are not authorized to post a reply.