neulab/docprompting-conala huggingface dataset:
matplotlib.pyplot.axhline   matplotlib.pyplot.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.pyplot.axhline
 
   Infinite lines   

   Zorder Demo
matplotlib.pyplot.axhspan   matplotlib.pyplot.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.
matplotlib.pyplot.axis   matplotlib.pyplot.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.pyplot.axis
 
   Filled polygon   

   Auto-wrapping text   

   Reference for Matplotlib artists   

   Pyplot tutorial
matplotlib.pyplot.axline   matplotlib.pyplot.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.pyplot.axline
 
   Infinite lines
matplotlib.pyplot.axvline   matplotlib.pyplot.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.pyplot.axvline
 
   Infinite lines
matplotlib.pyplot.axvspan   matplotlib.pyplot.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)
matplotlib.pyplot.bar_label   matplotlib.pyplot.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.
matplotlib.pyplot.bone   matplotlib.pyplot.bone()[source]
 
Set the colormap to 'bone'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information.
matplotlib.pyplot.box   matplotlib.pyplot.box(on=None)[source]
 
Turn the axes box on or off on the current axes.  Parameters 
 
onbool or None


The new Axes box state. If None, toggle the state.      See also  matplotlib.axes.Axes.set_frame_on()
matplotlib.axes.Axes.get_frame_on()
matplotlib.pyplot.broken_barh   matplotlib.pyplot.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
matplotlib.pyplot.cla   matplotlib.pyplot.cla()[source]
 
Clear the current axes.
matplotlib.pyplot.clabel   matplotlib.pyplot.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.pyplot.clabel
 
   Interactive functions
matplotlib.pyplot.clf   matplotlib.pyplot.clf()[source]
 
Clear the current figure.
matplotlib.pyplot.clim   matplotlib.pyplot.clim(vmin=None, vmax=None)[source]
 
Set the color limits of the current image. If either vmin or vmax is None, the image min/max respectively will be used for color scaling. If you want to set the clim of multiple images, use set_clim on every image, for example: for im in gca().get_images():
    im.set_clim(0, 0.5)
matplotlib.pyplot.close   matplotlib.pyplot.close(fig=None)[source]
 
Close a figure window.  Parameters 
 
figNone or int or str or Figure


The figure to close. There are a number of ways to specify this:  
None: the current figure 
Figure: the given Figure instance 
int: a figure number 
str: a figure name 'all': all figures      
  Examples using matplotlib.pyplot.close
 
   Pipong   

   Multipage PDF   

   Multiprocess   

   Tight Layout guide
matplotlib.pyplot.colormaps[source]
 
Container for colormaps that are known to Matplotlib by name.  Experimental While we expect the API to be final, we formally mark it as experimental for 3.5 because we want to keep the option to still adapt the API for 3.6 should the need arise.  The universal registry instance is matplotlib.colormaps. There should be no need for users to instantiate ColormapRegistry themselves. Read access uses a dict-like interface mapping names to Colormaps: import matplotlib as mpl
cmap = mpl.colormaps['viridis']
 Returned Colormaps are copies, so that their modification does not change the global definition of the colormap. Additional colormaps can be added via ColormapRegistry.register: mpl.colormaps.register(my_colormap)
matplotlib.pyplot.connect   matplotlib.pyplot.connect(s, func)[source]
 
Bind function func to event s.  Parameters 
 
sstr


One of the following events ids:  'button_press_event' 'button_release_event' 'draw_event' 'key_press_event' 'key_release_event' 'motion_notify_event' 'pick_event' 'resize_event' 'scroll_event' 'figure_enter_event', 'figure_leave_event', 'axes_enter_event', 'axes_leave_event' 'close_event'.   
funccallable


The callback function to be executed, which must have the signature: def func(event: Event) -> Any
 For the location events (button and key press/release), if the mouse is over the axes, the inaxes attribute of the event will be set to the Axes the event occurs is over, and additionally, the variables xdata and ydata attributes will be set to the mouse location in data coordinates. See KeyEvent and MouseEvent for more info.    Returns 
 cid

A connection id that can be used with FigureCanvasBase.mpl_disconnect.     Examples def on_press(event):
    print('you pressed', event.button, event.xdata, event.ydata)

cid = canvas.mpl_connect('button_press_event', on_press)
 
  Examples using matplotlib.pyplot.connect
 
   Mouse move and click events
matplotlib.pyplot.cool   matplotlib.pyplot.cool()[source]
 
Set the colormap to 'cool'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information.
matplotlib.pyplot.copper   matplotlib.pyplot.copper()[source]
 
Set the colormap to 'copper'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information.
matplotlib.pyplot.delaxes   matplotlib.pyplot.delaxes(ax=None)[source]
 
Remove an Axes (defaulting to the current axes) from its figure.
matplotlib.pyplot.disconnect   matplotlib.pyplot.disconnect(cid)[source]
 
Disconnect the callback with id cid. Examples cid = canvas.mpl_connect('button_press_event', on_press)
# ... later
canvas.mpl_disconnect(cid)
 
  Examples using matplotlib.pyplot.disconnect
 
   Mouse move and click events
matplotlib.pyplot.draw   matplotlib.pyplot.draw()[source]
 
Redraw the current figure. This is used to update a figure that has been altered, but not automatically re-drawn. If interactive mode is on (via ion()), this should be only rarely needed, but there may be ways to modify the state of a figure without marking it as "stale". Please report these cases as bugs. This is equivalent to calling fig.canvas.draw_idle(), where fig is the current figure. 
  Examples using matplotlib.pyplot.draw
 
   Interactive functions   

   Rotating a 3D plot   

   Buttons   

   Check Buttons   

   Radio Buttons   

   Textbox
matplotlib.pyplot.draw_if_interactive   matplotlib.pyplot.draw_if_interactive()[source]
 
Redraw the current figure if in interactive mode.  Warning End users will typically not have to call this function because the the interactive mode takes care of this.