MCPcopy Index your code
hub / github.com/plotly/plotly.py / draw_path

Method draw_path

plotly/matplotlylib/mplexporter/renderers/base.py:365–408  ·  view source on GitHub ↗

Draw a path. In matplotlib, paths are created by filled regions, histograms, contour plots, patches, etc. Parameters ---------- data : array_like A shape (N, 2) array of datapoints. coordinates : string A string code,

(
        self,
        data,
        coordinates,
        pathcodes,
        style,
        offset=None,
        offset_coordinates="data",
        mplobj=None,
    )

Source from the content-addressed store, hash-verified

363 raise NotImplementedError()
364
365 def draw_path(
366 self,
367 data,
368 coordinates,
369 pathcodes,
370 style,
371 offset=None,
372 offset_coordinates="data",
373 mplobj=None,
374 ):
375 """
376 Draw a path.
377
378 In matplotlib, paths are created by filled regions, histograms,
379 contour plots, patches, etc.
380
381 Parameters
382 ----------
383 data : array_like
384 A shape (N, 2) array of datapoints.
385 coordinates : string
386 A string code, which should be either 'data' for data coordinates,
387 'figure' for figure (pixel) coordinates, or "points" for raw
388 point coordinates (useful in conjunction with offsets, below).
389 pathcodes : list
390 A list of single-character SVG pathcodes associated with the data.
391 Path codes are one of ['M', 'm', 'L', 'l', 'Q', 'q', 'T', 't',
392 'S', 's', 'C', 'c', 'Z', 'z']
393 See the SVG specification for details. Note that some path codes
394 consume more than one datapoint (while 'Z' consumes none), so
395 in general, the length of the pathcodes list will not be the same
396 as that of the data array.
397 style : dictionary
398 a dictionary specifying the appearance of the line.
399 offset : list (optional)
400 the (x, y) offset of the path. If not given, no offset will
401 be used.
402 offset_coordinates : string (optional)
403 A string code, which should be either 'data' for data coordinates,
404 or 'figure' for figure (pixel) coordinates.
405 mplobj : matplotlib object
406 the matplotlib plot element which generated this path
407 """
408 raise NotImplementedError()
409
410 def draw_image(self, imdata, extent, coordinates, style, mplobj=None):
411 """

Callers 4

draw_lineMethod · 0.95
draw_path_collectionMethod · 0.95
draw_markersMethod · 0.95
draw_patchMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected