MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / prepare_figure_axes

Function prepare_figure_axes

deeplabcut/utils/visualization.py:289–296  ·  view source on GitHub ↗
(width, height, scale=1.0, dpi=100)

Source from the content-addressed store, hash-verified

287
288
289def prepare_figure_axes(width, height, scale=1.0, dpi=100):
290 fig = plt.figure(frameon=False, figsize=(width * scale / dpi, height * scale / dpi), dpi=dpi)
291 ax = fig.add_subplot(111)
292 ax.axis("off")
293 ax.set_xlim(0, width)
294 ax.set_ylim(0, height)
295 ax.invert_yaxis()
296 return fig, ax
297
298
299def make_labeled_images_from_dataframe(

Callers 3

make_labeled_imageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected