auto_scale¶

Subplot.auto_scale(*, maintain_aspect=None, zoom=0.8)¶

Auto-scale the camera w.r.t to the scene

Parameters:
  • maintain_aspect (None or bool, default None) – Maintain the camera aspect ratio for all dimensions. If None, the aspect is left unchanged. if False the camera is scaled to the bounding box of the current scene.

  • zoom (float, default 0.8) – zoom value for the camera after auto-scaling, if zoom = 1.0 then the graphics in the scene will fill the entire canvas.