MCPcopy
hub / github.com/matplotlib/matplotlib / has_data

Method has_data

lib/matplotlib/axes/_base.py:2325–2335  ·  view source on GitHub ↗

Return whether any artists have been added to the Axes. This should not be used to determine whether the *dataLim* need to be updated, and may not actually be useful for anything.

(self)

Source from the content-addressed store, hash-verified

2323 return self._current_image
2324
2325 def has_data(self):
2326 """
2327 Return whether any artists have been added to the Axes.
2328
2329 This should not be used to determine whether the *dataLim*
2330 need to be updated, and may not actually be useful for
2331 anything.
2332 """
2333 return any(isinstance(a, (mcoll.Collection, mimage.AxesImage,
2334 mlines.Line2D, mpatches.Patch))
2335 for a in self._children)
2336
2337 def add_artist(self, a):
2338 """

Callers 15

plotMethod · 0.80
fill_betweenMethod · 0.80
plot_surfaceMethod · 0.80
plot_wireframeMethod · 0.80
plot_trisurfMethod · 0.80
contourMethod · 0.80
tricontourMethod · 0.80
contourfMethod · 0.80
tricontourfMethod · 0.80
add_collection3dMethod · 0.80
scatterMethod · 0.80
barMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected