neulab/docprompting-conala huggingface dataset:
matplotlib.axes.Axes.axhline   Axes.axhline(y=0, xmin=0, xmax=1, **kwargs)[source]
 
Add a horizontal line across the axis.  Parameters 
 
yfloat, default: 0


y position in data coordinates of the horizontal line.  
xminfloat, default: 0


Should be between 0 and 1, 0 being the far left of the plot, 1 the far right of the plot.  
xmaxfloat, default: 1


Should be between 0 and 1, 0 being the far left of the plot, 1 the far right of the plot.    Returns 
 Line2D
  Other Parameters 
 **kwargs

Valid keyword arguments are Line2D properties, with the exception of 'transform':   
Property Description   
agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array  
alpha scalar or None  
animated bool  
antialiased or aa bool  
clip_box Bbox  
clip_on bool  
clip_path Patch or (Path, Transform) or None  
color or c color  
dash_capstyle CapStyle or {'butt', 'projecting', 'round'}  
dash_joinstyle JoinStyle or {'miter', 'round', 'bevel'}  
dashes sequence of floats (on/off ink in points) or (None, None)  
data (2, N) array or two 1D arrays  
drawstyle or ds {'default', 'steps', 'steps-pre', 'steps-mid', 'steps-post'}, default: 'default'  
figure Figure  
fillstyle {'full', 'left', 'right', 'bottom', 'top', 'none'}  
gid str  
in_layout bool  
label object  
linestyle or ls {'-', '--', '-.', ':', '', (offset, on-off-seq), ...}  
linewidth or lw float  
marker marker style string, Path or MarkerStyle  
markeredgecolor or mec color  
markeredgewidth or mew float  
markerfacecolor or mfc color  
markerfacecoloralt or mfcalt color  
markersize or ms float  
markevery None or int or (int, int) or slice or list[int] or float or (float, float) or list[bool]  
path_effects AbstractPathEffect  
picker float or callable[[Artist, Event], tuple[bool, dict]]  
pickradius float  
rasterized bool  
sketch_params (scale: float, length: float, randomness: float)  
snap bool or None  
solid_capstyle CapStyle or {'butt', 'projecting', 'round'}  
solid_joinstyle JoinStyle or {'miter', 'round', 'bevel'}  
transform unknown  
url str  
visible bool  
xdata 1D array  
ydata 1D array  
zorder float        See also  hlines

Add horizontal lines in data coordinates.  axhspan

Add a horizontal span (rectangle) across the axis.  axline

Add a line with an arbitrary slope.    Examples  
draw a thick red hline at 'y' = 0 that spans the xrange: >>> axhline(linewidth=4, color='r')
  
draw a default hline at 'y' = 1 that spans the xrange: >>> axhline(y=1)
  
draw a default hline at 'y' = .5 that spans the middle half of the xrange: >>> axhline(y=.5, xmin=0.25, xmax=0.75)
   
  Examples using matplotlib.axes.Axes.axhline
 
   Bar Label Demo   

   Filling the area between lines   

   Using span_where   

   axhspan Demo   

   Plot a confidence ellipse of a two-dimensional dataset   

   Multiline   

   Usetex Baseline Test   

   Cross hair cursor   

   Transformations Tutorial
matplotlib.axes.Axes.axhspan   Axes.axhspan(ymin, ymax, xmin=0, xmax=1, **kwargs)[source]
 
Add a horizontal span (rectangle) across the Axes. The rectangle spans from ymin to ymax vertically, and, by default, the whole x-axis horizontally. The x-span can be set using xmin (default: 0) and xmax (default: 1) which are in axis units; e.g. xmin = 0.5 always refers to the middle of the x-axis regardless of the limits set by set_xlim.  Parameters 
 
yminfloat


Lower y-coordinate of the span, in data units.  
ymaxfloat


Upper y-coordinate of the span, in data units.  
xminfloat, default: 0


Lower x-coordinate of the span, in x-axis (0-1) units.  
xmaxfloat, default: 1


Upper x-coordinate of the span, in x-axis (0-1) units.    Returns 
 Polygon

Horizontal span (rectangle) from (xmin, ymin) to (xmax, ymax).    Other Parameters 
 
**kwargsPolygon properties


  
Property Description   
agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array  
alpha scalar or None  
animated bool  
antialiased or aa bool or None  
capstyle CapStyle or {'butt', 'projecting', 'round'}  
clip_box Bbox  
clip_on bool  
clip_path Patch or (Path, Transform) or None  
closed bool  
color color  
edgecolor or ec color or None  
facecolor or fc color or None  
figure Figure  
fill bool  
gid str  
hatch {'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'}  
in_layout bool  
joinstyle JoinStyle or {'miter', 'round', 'bevel'}  
label object  
linestyle or ls {'-', '--', '-.', ':', '', (offset, on-off-seq), ...}  
linewidth or lw float or None  
path_effects AbstractPathEffect  
picker None or bool or float or callable  
rasterized bool  
sketch_params (scale: float, length: float, randomness: float)  
snap bool or None  
transform Transform  
url str  
visible bool  
xy (N, 2) array-like  
zorder float        See also  axvspan

Add a vertical span across the Axes.    
  Examples using matplotlib.axes.Axes.axhspan
 
   axhspan Demo   

   Transformations Tutorial
matplotlib.axes.Axes.axis   Axes.axis(*args, emit=True, **kwargs)[source]
 
Convenience method to get or set some axis properties. Call signatures: xmin, xmax, ymin, ymax = axis()
xmin, xmax, ymin, ymax = axis([xmin, xmax, ymin, ymax])
xmin, xmax, ymin, ymax = axis(option)
xmin, xmax, ymin, ymax = axis(**kwargs)
  Parameters 
 
xmin, xmax, ymin, ymaxfloat, optional


The axis limits to be set. This can also be achieved using ax.set(xlim=(xmin, xmax), ylim=(ymin, ymax))
  
optionbool or str


If a bool, turns axis lines and labels on or off. If a string, possible values are:   
Value Description   
'on' Turn on axis lines and labels. Same as True.  
'off' Turn off axis lines and labels. Same as False.  
'equal' Set equal scaling (i.e., make circles circular) by changing axis limits. This is the same as ax.set_aspect('equal', adjustable='datalim'). Explicit data limits may not be respected in this case.  
'scaled' Set equal scaling (i.e., make circles circular) by changing dimensions of the plot box. This is the same as ax.set_aspect('equal', adjustable='box', anchor='C'). Additionally, further autoscaling will be disabled.  
'tight' Set limits just large enough to show all data, then disable further autoscaling.  
'auto' Automatic scaling (fill plot box with data).  
'image' 'scaled' with axis limits equal to data limits.  
'square' Square plot; similar to 'scaled', but initially forcing xmax-xmin == ymax-ymin.    
emitbool, default: True


Whether observers are notified of the axis limit change. This option is passed on to set_xlim and set_ylim.    Returns 
 
xmin, xmax, ymin, ymaxfloat


The axis limits.      See also  matplotlib.axes.Axes.set_xlim
matplotlib.axes.Axes.set_ylim
  
  Examples using matplotlib.axes.Axes.axis
 
   Clipping images with patches   

   Basic pie chart   

   Bar of pie   

   Hatch style reference   

   PathPatch object   

   ggplot style sheet   

   Parasite Simple2   

   Simple Axisline4   

   Axis Direction   

   axis_direction demo   

   Axis line styles   

   mpl_toolkits.axisartist.floating_axes features   

   Parasite Axes demo   

   Parasite axis demo   

   Ticklabel alignment   

   Ticklabel direction   

   Simple Axis Direction01   

   Simple Axis Direction03   

   Simple Axis Pad   

   Custom spines with axisartist   

   Simple Axisline   

   Simple Axisline3   

   Packed-bubble chart   

   TickedStroke patheffect   

   MRI   

   MRI With EEG   

   Basic Usage   

   Specifying Colors   

   Text in Matplotlib Plots
matplotlib.axes.Axes.axline   Axes.axline(xy1, xy2=None, *, slope=None, **kwargs)[source]
 
Add an infinitely long straight line. The line can be defined either by two points xy1 and xy2, or by one point xy1 and a slope. This draws a straight line "on the screen", regardless of the x and y scales, and is thus also suitable for drawing exponential decays in semilog plots, power laws in loglog plots, etc. However, slope should only be used with linear scales; It has no clear meaning for all other scales, and thus the behavior is undefined. Please specify the line using the points xy1, xy2 for non-linear scales. The transform keyword argument only applies to the points xy1, xy2. The slope (if given) is always in data coordinates. This can be used e.g. with ax.transAxes for drawing grid lines with a fixed slope.  Parameters 
 
xy1, xy2(float, float)


Points for the line to pass through. Either xy2 or slope has to be given.  
slopefloat, optional


The slope of the line. Either xy2 or slope has to be given.    Returns 
 Line2D
  Other Parameters 
 **kwargs

Valid kwargs are Line2D properties   
Property Description   
agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array  
alpha scalar or None  
animated bool  
antialiased or aa bool  
clip_box Bbox  
clip_on bool  
clip_path Patch or (Path, Transform) or None  
color or c color  
dash_capstyle CapStyle or {'butt', 'projecting', 'round'}  
dash_joinstyle JoinStyle or {'miter', 'round', 'bevel'}  
dashes sequence of floats (on/off ink in points) or (None, None)  
data (2, N) array or two 1D arrays  
drawstyle or ds {'default', 'steps', 'steps-pre', 'steps-mid', 'steps-post'}, default: 'default'  
figure Figure  
fillstyle {'full', 'left', 'right', 'bottom', 'top', 'none'}  
gid str  
in_layout bool  
label object  
linestyle or ls {'-', '--', '-.', ':', '', (offset, on-off-seq), ...}  
linewidth or lw float  
marker marker style string, Path or MarkerStyle  
markeredgecolor or mec color  
markeredgewidth or mew float  
markerfacecolor or mfc color  
markerfacecoloralt or mfcalt color  
markersize or ms float  
markevery None or int or (int, int) or slice or list[int] or float or (float, float) or list[bool]  
path_effects AbstractPathEffect  
picker float or callable[[Artist, Event], tuple[bool, dict]]  
pickradius float  
rasterized bool  
sketch_params (scale: float, length: float, randomness: float)  
snap bool or None  
solid_capstyle CapStyle or {'butt', 'projecting', 'round'}  
solid_joinstyle JoinStyle or {'miter', 'round', 'bevel'}  
transform unknown  
url str  
visible bool  
xdata 1D array  
ydata 1D array  
zorder float        See also  axhline

for horizontal lines  axvline

for vertical lines    Examples Draw a thick red line passing through (0, 0) and (1, 1): >>> axline((0, 0), (1, 1), linewidth=4, color='r')
 
  Examples using matplotlib.axes.Axes.axline
 
   axhspan Demo   

   Anscombe's quartet
matplotlib.axes.Axes.axvline   Axes.axvline(x=0, ymin=0, ymax=1, **kwargs)[source]
 
Add a vertical line across the Axes.  Parameters 
 
xfloat, default: 0


x position in data coordinates of the vertical line.  
yminfloat, default: 0


Should be between 0 and 1, 0 being the bottom of the plot, 1 the top of the plot.  
ymaxfloat, default: 1


Should be between 0 and 1, 0 being the bottom of the plot, 1 the top of the plot.    Returns 
 Line2D
  Other Parameters 
 **kwargs

Valid keyword arguments are Line2D properties, with the exception of 'transform':   
Property Description   
agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array  
alpha scalar or None  
animated bool  
antialiased or aa bool  
clip_box Bbox  
clip_on bool  
clip_path Patch or (Path, Transform) or None  
color or c color  
dash_capstyle CapStyle or {'butt', 'projecting', 'round'}  
dash_joinstyle JoinStyle or {'miter', 'round', 'bevel'}  
dashes sequence of floats (on/off ink in points) or (None, None)  
data (2, N) array or two 1D arrays  
drawstyle or ds {'default', 'steps', 'steps-pre', 'steps-mid', 'steps-post'}, default: 'default'  
figure Figure  
fillstyle {'full', 'left', 'right', 'bottom', 'top', 'none'}  
gid str  
in_layout bool  
label object  
linestyle or ls {'-', '--', '-.', ':', '', (offset, on-off-seq), ...}  
linewidth or lw float  
marker marker style string, Path or MarkerStyle  
markeredgecolor or mec color  
markeredgewidth or mew float  
markerfacecolor or mfc color  
markerfacecoloralt or mfcalt color  
markersize or ms float  
markevery None or int or (int, int) or slice or list[int] or float or (float, float) or list[bool]  
path_effects AbstractPathEffect  
picker float or callable[[Artist, Event], tuple[bool, dict]]  
pickradius float  
rasterized bool  
sketch_params (scale: float, length: float, randomness: float)  
snap bool or None  
solid_capstyle CapStyle or {'butt', 'projecting', 'round'}  
solid_joinstyle JoinStyle or {'miter', 'round', 'bevel'}  
transform unknown  
url str  
visible bool  
xdata 1D array  
ydata 1D array  
zorder float        See also  vlines

Add vertical lines in data coordinates.  axvspan

Add a vertical span (rectangle) across the axis.  axline

Add a line with an arbitrary slope.    Examples  
draw a thick red vline at x = 0 that spans the yrange: >>> axvline(linewidth=4, color='r')
  
draw a default vline at x = 1 that spans the yrange: >>> axvline(x=1)
  
draw a default vline at x = .5 that spans the middle half of the yrange: >>> axvline(x=.5, ymin=0.25, ymax=0.75)
   
  Examples using matplotlib.axes.Axes.axvline
 
   axhspan Demo   

   Plot a confidence ellipse of a two-dimensional dataset   

   Usetex Baseline Test   

   Cross hair cursor   

   SkewT-logP diagram: using transforms and custom projections   

   The Lifecycle of a Plot   

   Transformations Tutorial
matplotlib.axes.Axes.axvspan   Axes.axvspan(xmin, xmax, ymin=0, ymax=1, **kwargs)[source]
 
Add a vertical span (rectangle) across the Axes. The rectangle spans from xmin to xmax horizontally, and, by default, the whole y-axis vertically. The y-span can be set using ymin (default: 0) and ymax (default: 1) which are in axis units; e.g. ymin = 0.5 always refers to the middle of the y-axis regardless of the limits set by set_ylim.  Parameters 
 
xminfloat


Lower x-coordinate of the span, in data units.  
xmaxfloat


Upper x-coordinate of the span, in data units.  
yminfloat, default: 0


Lower y-coordinate of the span, in y-axis units (0-1).  
ymaxfloat, default: 1


Upper y-coordinate of the span, in y-axis units (0-1).    Returns 
 Polygon

Vertical span (rectangle) from (xmin, ymin) to (xmax, ymax).    Other Parameters 
 
**kwargsPolygon properties


  
Property Description   
agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array  
alpha scalar or None  
animated bool  
antialiased or aa bool or None  
capstyle CapStyle or {'butt', 'projecting', 'round'}  
clip_box Bbox  
clip_on bool  
clip_path Patch or (Path, Transform) or None  
closed bool  
color color  
edgecolor or ec color or None  
facecolor or fc color or None  
figure Figure  
fill bool  
gid str  
hatch {'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'}  
in_layout bool  
joinstyle JoinStyle or {'miter', 'round', 'bevel'}  
label object  
linestyle or ls {'-', '--', '-.', ':', '', (offset, on-off-seq), ...}  
linewidth or lw float or None  
path_effects AbstractPathEffect  
picker None or bool or float or callable  
rasterized bool  
sketch_params (scale: float, length: float, randomness: float)  
snap bool or None  
transform Transform  
url str  
visible bool  
xy (N, 2) array-like  
zorder float        See also  axhspan

Add a horizontal span across the Axes.    Examples Draw a vertical, green, translucent rectangle from x = 1.25 to x = 1.55 that spans the yrange of the Axes. >>> axvspan(1.25, 1.55, facecolor='g', alpha=0.5)
 
  Examples using matplotlib.axes.Axes.axvspan
 
   axhspan Demo   

   Transformations Tutorial
matplotlib.axes.Axes.bar_label   Axes.bar_label(container, labels=None, *, fmt='%g', label_type='edge', padding=0, **kwargs)[source]
 
Label a bar plot. Adds labels to bars in the given BarContainer. You may need to adjust the axis limits to fit the labels.  Parameters 
 
containerBarContainer


Container with all the bars and optionally errorbars, likely returned from bar or barh.  
labelsarray-like, optional


A list of label texts, that should be displayed. If not given, the label texts will be the data values formatted with fmt.  
fmtstr, default: '%g'


A format string for the label.  
label_type{'edge', 'center'}, default: 'edge'


The label type. Possible values:  'edge': label placed at the end-point of the bar segment, and the value displayed will be the position of that end-point. 'center': label placed in the center of the bar segment, and the value displayed will be the length of that segment. (useful for stacked bars, i.e., Bar Label Demo)   
paddingfloat, default: 0


Distance of label from the end of the bar, in points.  **kwargs

Any remaining keyword arguments are passed through to Axes.annotate.    Returns 
 list of Text


A list of Text instances for the labels.     
  Examples using matplotlib.axes.Axes.bar_label
 
   Bar Label Demo   

   Grouped bar chart with labels
matplotlib.axes.Axes.broken_barh   Axes.broken_barh(xranges, yrange, *, data=None, **kwargs)[source]
 
Plot a horizontal sequence of rectangles. A rectangle is drawn for each element of xranges. All rectangles have the same vertical position and size defined by yrange. This is a convenience function for instantiating a BrokenBarHCollection, adding it to the Axes and autoscaling the view.  Parameters 
 
xrangessequence of tuples (xmin, xwidth)


The x-positions and extends of the rectangles. For each tuple (xmin, xwidth) a rectangle is drawn from xmin to xmin + xwidth.  
yrange(ymin, yheight)


The y-position and extend for all the rectangles.    Returns 
 BrokenBarHCollection
  Other Parameters 
 
dataindexable object, optional


If given, all parameters also accept a string s, which is interpreted as data[s] (unless this raises an exception).  
**kwargsBrokenBarHCollection properties


Each kwarg can be either a single argument applying to all rectangles, e.g.: facecolors='black'
 or a sequence of arguments over which is cycled, e.g.: facecolors=('black', 'blue')
 would create interleaving black and blue rectangles. Supported keywords:   
Property Description   
agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array  
alpha array-like or scalar or None  
animated bool  
antialiased or aa or antialiaseds bool or list of bools  
array array-like or None  
capstyle CapStyle or {'butt', 'projecting', 'round'}  
clim (vmin: float, vmax: float)  
clip_box Bbox  
clip_on bool  
clip_path Patch or (Path, Transform) or None  
cmap Colormap or str or None  
color color or list of rgba tuples  
edgecolor or ec or edgecolors color or list of colors or 'face'  
facecolor or facecolors or fc color or list of colors  
figure Figure  
gid str  
hatch {'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'}  
in_layout bool  
joinstyle JoinStyle or {'miter', 'round', 'bevel'}  
label object  
linestyle or dashes or linestyles or ls str or tuple or list thereof  
linewidth or linewidths or lw float or list of floats  
norm Normalize or None  
offset_transform Transform  
offsets (N, 2) or (2,) array-like  
path_effects AbstractPathEffect  
paths list of array-like  
picker None or bool or float or callable  
pickradius float  
rasterized bool  
sizes ndarray or None  
sketch_params (scale: float, length: float, randomness: float)  
snap bool or None  
transform Transform  
url str  
urls list of str or None  
verts list of array-like  
verts_and_codes unknown  
visible bool  
zorder float       
  Examples using matplotlib.axes.Axes.broken_barh
 
   Broken Barh
matplotlib.axes.Axes.can_pan   Axes.can_pan()[source]
 
Return whether this Axes supports any pan/zoom button functionality.
matplotlib.axes.Axes.can_zoom   Axes.can_zoom()[source]
 
Return whether this Axes supports the zoom box button functionality.
matplotlib.axes.Axes.cla   Axes.cla()[source]
 
Clear the Axes. 
  Examples using matplotlib.axes.Axes.cla
 
   pyplot animation   

   Data Browser
matplotlib.axes.Axes.clabel   Axes.clabel(CS, levels=None, **kwargs)[source]
 
Label a contour plot. Adds labels to line contours in given ContourSet.  Parameters 
 
CSContourSet instance


Line contours to label.  
levelsarray-like, optional


A list of level values, that should be labeled. The list must be a subset of CS.levels. If not given, all levels are labeled.  **kwargs

All other parameters are documented in clabel.     
  Examples using matplotlib.axes.Axes.clabel
 
   Contour Demo   

   Contour Label Demo   

   Contourf Demo   

   Contouring the solution space of optimizations   

   Patheffect Demo   

   TickedStroke patheffect
matplotlib.axes.Axes.clear   Axes.clear()[source]
 
Clear the Axes.
matplotlib.axes.Axes.contains   Axes.contains(mouseevent)[source]
 
Test whether the artist contains the mouse event.  Parameters 
 
mouseeventmatplotlib.backend_bases.MouseEvent

  Returns 
 
containsbool


Whether any values are within the radius.  
detailsdict


An artist-specific dictionary of details of the event context, such as which points are contained in the pick radius. See the individual Artist subclasses for details.
matplotlib.axes.Axes.contains_point   Axes.contains_point(point)[source]
 
Return whether point (pair of pixel coordinates) is inside the axes patch.
matplotlib.axes.Axes.convert_xunits   Axes.convert_xunits(x)[source]
 
Convert x using the unit type of the xaxis. If the artist is not in contained in an Axes or if the xaxis does not have units, x itself is returned.
matplotlib.axes.Axes.convert_yunits   Axes.convert_yunits(y)[source]
 
Convert y using the unit type of the yaxis. If the artist is not in contained in an Axes or if the yaxis does not have units, y itself is returned.
matplotlib.axes.Axes.drag_pan   Axes.drag_pan(button, key, x, y)[source]
 
Called when the mouse moves during a pan operation.  Parameters 
 
buttonMouseButton


The pressed mouse button.  
keystr or None


The pressed key, if any.  
x, yfloat


The mouse coordinates in display coords.     Notes This is intended to be overridden by new projection types.
matplotlib.axes.Axes.draw   Axes.draw(renderer)[source]
 
Draw the Artist (and its children) using the given renderer. This has no effect if the artist is not visible (Artist.get_visible returns False).  Parameters 
 
rendererRendererBase subclass.

   Notes This method is overridden in the Artist subclasses.
matplotlib.axes.Axes.draw_artist   Axes.draw_artist(a)[source]
 
Efficiently redraw a single artist. This method can only be used after an initial draw of the figure, because that creates and caches the renderer needed here. 
  Examples using matplotlib.axes.Axes.draw_artist
 
   Faster rendering by using blitting
matplotlib.axes.Axes.end_pan   Axes.end_pan()[source]
 
Called when a pan operation completes (when the mouse button is up.) Notes This is intended to be overridden by new projection types.
matplotlib.axes.Axes.fill   Axes.fill(*args, data=None, **kwargs)[source]
 
Plot filled polygons.  Parameters 
 
*argssequence of x, y, [color]


Each polygon is defined by the lists of x and y positions of its nodes, optionally followed by a color specifier. See matplotlib.colors for supported color specifiers. The standard color cycle is used for polygons without a color specifier. You can plot multiple polygons by providing multiple x, y, [color] groups. For example, each of the following is legal: ax.fill(x, y)                    # a polygon with default color
ax.fill(x, y, "b")               # a blue polygon
ax.fill(x, y, x2, y2)            # two polygons
ax.fill(x, y, "b", x2, y2, "r")  # a blue and a red polygon
  
dataindexable object, optional


An object with labelled data. If given, provide the label names to plot in x and y, e.g.: ax.fill("time", "signal",
        data={"time": [0, 1, 2], "signal": [0, 1, 0]})
    Returns 
 list of Polygon

  Other Parameters 
 
**kwargsPolygon properties

   Notes Use fill_between() if you would like to fill the region between two curves. 
  Examples using matplotlib.axes.Axes.fill
 
   Filled polygon   

   Radar chart (aka spider or star chart)   

   Ellipse With Units