Skip to content

more efficient axes update computation #1053

Description

@kushalkolar

Might be possible to do more efficient axes computation by directly using the camera projection matrix, currently doing this in PlotArea:

    @property
    def x_range(self) -> tuple[float, float]:
        """
        Get or set the x-range currently in view.
        Only valid for orthographic projections of the xy plane.
        Use camera.set_state() to set the camera position for arbitrary projections.
        """
        hw = self.camera.projection_matrix_inverse[0, 0]
        x = self.camera.local.x
        return x - hw, x + hw

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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