Ellipses#
Use the Ellipses
tool to add ellipses to a plot.
[1]:
%matplotlib widget
import matplotlib.pyplot as plt
import mpltoolbox as tbx
plt.ioff()
[1]:
<contextlib.ExitStack at 0x7f6204aef340>
[2]:
fig, ax = plt.subplots(dpi=96)
ax.set_xlim(0, 100)
ax.set_ylim(0, 100)
ellipses = tbx.Ellipses(ax=ax)
[4]:
fig.canvas
[4]:
Controls
Left-click and hold to make new ellipse
Right-click and hold to drag/move ellipse
Middle-click (or Ctrl + left-click) to delete ellipse