cls_TwoDCamera - almarklein/visvis GitHub Wiki

Inherits from BaseCamera.

The default camera for viewing 2D data.

This camera uses orthografic projection and looks down the z-axis from inifinitly far away.

Interaction

  • Hold down the LMB and then move the mouse to pan.
  • Hold down the RMB and then move the mouse to zoom.

The TwoDCamera class implements the following methods:
OnResize, Reset, SetView

Methods

Callback that adjusts the daspect (if axes.daspectAuto is True) when the window dimensions change.

Reset the view.

Prepare the view for drawing This applies the camera model.

⚠️ **GitHub.com Fallback** ⚠️