MCPcopy Create free account
hub / github.com/DeepLabCut/DeepLabCut / form_figure

Function form_figure

deeplabcut/core/visualization.py:21–29  ·  view source on GitHub ↗

Forms a figure on which to plot images.

(nx, ny)

Source from the content-addressed store, hash-verified

19
20
21def form_figure(nx, ny) -> tuple[plt.Figure, plt.Axes]:
22 """Forms a figure on which to plot images."""
23 fig, ax = plt.subplots(frameon=False)
24 ax.set_xlim(0, nx)
25 ax.set_ylim(0, ny)
26 ax.axis("off")
27 ax.invert_yaxis()
28 fig.tight_layout()
29 return fig, ax
30
31
32def visualize_scoremaps(

Callers 2

visualize_scoremapsFunction · 0.85
visualize_pafFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected