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