Menu

#12 Markers get clipped on autoscale axis

open-later
nobody
None
2
2005-07-28
2004-07-06
Shai
No

When issuing the command:
plot(1:2, 1:2, '+')

The marker at the edges (at 1 and at 10) gets clipped
due to the axis being 1 and 10. This is not always the
case and is dependent on the axis and the marker
used. For example, using the marker 'o' will clip the
marker at (1,1) but using the marker '+' will NOt clip the
marker at (1,1). In both cases, the marker at (2,2) is
clipped.

- Shai

Discussion

  • Shai Ayal

    Shai Ayal - 2005-07-28
    • priority: 5 --> 2
    • status: open --> open-later
     
  • Shai Ayal

    Shai Ayal - 2005-07-28

    Logged In: YES
    user_id=136223

    clipping occurs at the axis box. The resolution to this bug
    can be
    1) to slightly increase axes limits so that markers are inside.
    2) somehow not clip ONLY markers who's center is in the axes box

    solution 1 looks a bit ugly graphically, so I will leave it
    to the user
    solution 2 is a bit hard at this time sinc clipping is done
    automaticaly by OpenGL. I will postpone it since solution 1
    can help

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.