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]
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.
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 ?
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.
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.