GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

New issue
Copy link
New issue
Copy link
Closed
#906
Closed
Ensure axes are on top with orthographic projections#903
#906
Copy link
Assignees
almarklein

Description

@kushalkolar
kushalkolar
opened on Sep 27, 2025
Issue body actions

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

image

Activity

  1. kushalkolar
    assigned
    almarklein
    on Sep 27, 2025
  2. almarklein commented on Sep 29, 2025

    @almarklein
    almarklein
    on Sep 29, 2025
    Collaborator
    More actions

    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.
  3. kushalkolar
    closed this as completedin #906on Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @almarklein
    almarklein

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.