GeezerVison is showing github.com — Ensure axes are on top with orthographic projections · Issue #903 · fastplotlib/fastplotlib
Ensure axes are on top with orthographic projections #903
Description
Not sure what the best way is, maybe setting the z so that it's right on the camera's near clipping plane?
This is examples/gridplot/gridplot.py

Activity
almarklein commented on Sep 29, 2025
I see that the image graphics are moved towards the camera, and it looks that if I add another image to the same subplot, it is moved even further:
>> figure[0, 0].graphics[0].world_object.local.z
1.0
>> figure[0, 0].graphics[1].world_object.local.z
2.0
Is this correct? It also happens to lines, I think. However, I cannot find where this happens, could you help me point to the point in code where this offset is calculated?
Some more general thoughts:
- For 2D viewing, using the z-offset is fine. For 3D this is still fine for 2D data (i.e. stacking images this way feels fine to me, but as soon as someone draws a 3D scatter, you really don't want to touch the offset, because that dimension probably means something.
- Idea: don't set the offset except for images. These are set at
-1, and earlier-added images are pushed backwards. Then use depth_compare = "<=" for the ruler to it's on top of everything rendered at z=0.
Metadata
Metadata
Development
No branches or pull requestsIssue actions