MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / deepcopy

Method deepcopy

lib/matplotlib/path.py:293–308  ·  view source on GitHub ↗

Return a deep copy of the `Path`. The `Path` will not be readonly, even if the source `Path` is. Parameters ---------- memo : dict, optional A dictionary to use for memoizing, passed to `copy.deepcopy`. Returns ------- P

(self, memo=None)

Source from the content-addressed store, hash-verified

291 return p
292
293 def deepcopy(self, memo=None):
294 """
295 Return a deep copy of the `Path`. The `Path` will not be readonly,
296 even if the source `Path` is.
297
298 Parameters
299 ----------
300 memo : dict, optional
301 A dictionary to use for memoizing, passed to `copy.deepcopy`.
302
303 Returns
304 -------
305 Path
306 A deep copy of the `Path`, but not readonly.
307 """
308 return copy.deepcopy(self, memo)
309
310 @classmethod
311 def make_compound_path_from_polys(cls, XY):

Callers 15

test_path_deepcopyFunction · 0.95
__deepcopy__Method · 0.80
_set_markerMethod · 0.80
__init__Method · 0.80
plot_pathsFunction · 0.80
test_Bug_2543Function · 0.80
test_path_deepcopy_cycleFunction · 0.80
test_scale_deepcopyFunction · 0.80
test_deepcopyFunction · 0.80
test_clip_to_bboxFunction · 0.80
test_clippingFunction · 0.80

Calls

no outgoing calls

Tested by 12

test_path_deepcopyFunction · 0.76
plot_pathsFunction · 0.64
test_Bug_2543Function · 0.64
test_path_deepcopy_cycleFunction · 0.64
test_scale_deepcopyFunction · 0.64
test_deepcopyFunction · 0.64
test_clip_to_bboxFunction · 0.64
test_clippingFunction · 0.64
test_norm_deepcopyFunction · 0.64
test_deepcopyMethod · 0.64
test_copyFunction · 0.64