Menu

#1994 Object clipping inconsistent

open
nobody
None
2017-11-24
2017-11-23
No

It seems like cliping of object is incositent.

Rectangles clip if all coordonates on a given axis (x or y ) are given in plot coordonate where polygon doesn't.

I don't know if it's a bug but I didn't saw any mention of it in the documentation.

[using wxt terminal with gnuplot 5.2.2 on macos]

1 Attachments

Discussion

  • Ethan Merritt

    Ethan Merritt - 2017-11-23

    In your test script the vertices are specified in screen coordinates, not plot coordinates. Screen coordinates are never clipped.

    Clipping of rectangles/polygons/circles/ellipses is shown in the demo
    clipobject.dem

    That demo seems to be missing from the on-line collection, but you can run it locally to
    compared clipping options.

     
    • Aurelien Bloch

      Aurelien Bloch - 2017-11-23

      I'm not sure to follow, in the example that I provide, all x coordinates use plot coordinates and y coordinates use screen coordinates.

      So when using interactively wxt both objects can move along the x axis, and when the rectangle goes out of the plot frame it is clipped, whereas the polygon is not.

      Is it a normal behavior ?

       
  • Ethan Merritt

    Ethan Merritt - 2017-11-23

    Ah. Now I see what you are talking about.
    Your original report mentioned only plot coordinates.

    So far as I know, all shapes are clipped when given in plot coordinates.
    Also so far as I know all shapes should not be clipped if they contain screen coordinates. Your example shows that rectangles are inconsistent because they may clip even if they use screen coordinates. So that may be a bug.

     
  • Aurelien Bloch

    Aurelien Bloch - 2017-11-24

    Yes sorry for that,

    I would think that the rectangle behavior makes more sense, since the clipping along a certain axis depends on whether or not the coordinates along that axis are plot coordinates, but yeah. It should be at least consistent across objects.

     

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.