neulab/docprompting-conala huggingface dataset:
matplotlib.artist.Artist.set_rasterized   Artist.set_rasterized(rasterized)[source]
 
Force rasterized (bitmap) drawing for vector graphics output. Rasterized drawing is not supported by all artists. If you try to enable this on an artist that does not support it, the command has no effect and a warning will be issued. This setting is ignored for pixel-based output. See also Rasterization for vector graphics.  Parameters 
 
rasterizedbool
matplotlib.artist.Artist.set_sketch_params   Artist.set_sketch_params(scale=None, length=None, randomness=None)[source]
 
Set the sketch parameters.  Parameters 
 
scalefloat, optional


The amplitude of the wiggle perpendicular to the source line, in pixels. If scale is None, or not provided, no sketch filter will be provided.  
lengthfloat, optional


The length of the wiggle along the line, in pixels (default 128.0)  
randomnessfloat, optional


The scale factor by which the length is shrunken or expanded (default 16.0) The PGF backend uses this argument as an RNG seed and not as described above. Using the same seed yields the same random shape.
matplotlib.artist.Artist.set_snap   Artist.set_snap(snap)[source]
 
Set the snapping behavior. Snapping aligns positions with the pixel grid, which results in clearer images. For example, if a black line of 1px width was defined at a position in between two pixels, the resulting image would contain the interpolated value of that line in the pixel grid, which would be a grey value on both adjacent pixel positions. In contrast, snapping will move the line to the nearest integer pixel value, so that the resulting image will really contain a 1px wide black line. Snapping is currently only supported by the Agg and MacOSX backends.  Parameters 
 
snapbool or None


Possible values:  
True: Snap vertices to the nearest pixel center. 
False: Do not modify vertex positions. 
None: (auto) If the path contains only rectilinear line segments, round to the nearest pixel center.
matplotlib.artist.Artist.set_transform   Artist.set_transform(t)[source]
 
Set the artist transform.  Parameters 
 
tTransform
matplotlib.artist.Artist.set_url   Artist.set_url(url)[source]
 
Set the url for the artist.  Parameters 
 
urlstr
matplotlib.artist.Artist.set_visible   Artist.set_visible(b)[source]
 
Set the artist's visibility.  Parameters 
 
bbool
matplotlib.artist.Artist.set_zorder   Artist.set_zorder(level)[source]
 
Set the zorder for the artist. Artists with lower zorder values are drawn first.  Parameters 
 
levelfloat
matplotlib.artist.Artist.stale   propertyArtist.stale
 
Whether the artist is 'stale' and needs to be re-drawn for the output to match the internal state of the artist.
matplotlib.artist.Artist.sticky_edges   propertyArtist.sticky_edges
 
x and y sticky edge lists for autoscaling. When performing autoscaling, if a data limit coincides with a value in the corresponding sticky_edges list, then no margin will be added--the view limit "sticks" to the edge. A typical use case is histograms, where one usually expects no margin on the bottom edge (0) of the histogram. Moreover, margin expansion "bumps" against sticky edges and cannot cross them. For example, if the upper data limit is 1.0, the upper view limit computed by simple margin application is 1.2, but there is a sticky edge at 1.1, then the actual upper view limit will be 1.1. This attribute cannot be assigned to; however, the x and y lists can be modified in place as needed. Examples >>> artist.sticky_edges.x[:] = (xmin, xmax)
>>> artist.sticky_edges.y[:] = (ymin, ymax)
matplotlib.artist.Artist.update   Artist.update(props)[source]
 
Update this artist's properties from the dict props.  Parameters 
 
propsdict
matplotlib.artist.Artist.update_from   Artist.update_from(other)[source]
 
Copy properties from other to self.
__init__(o)[source]
 
Initialize the artist inspector with an Artist or an iterable of Artists. If an iterable is used, we assume it is a homogeneous sequence (all Artists are of the same type) and it is your responsibility to make sure this is so.
aliased_name(s)[source]
 
Return 'PROPNAME or alias' if s has an alias, else return 'PROPNAME'. e.g., for the line markerfacecolor property, which has an alias, return 'markerfacecolor or mfc' and for the transform property, which does not, return 'transform'.
aliased_name_rest(s, target)[source]
 
Return 'PROPNAME or alias' if s has an alias, else return 'PROPNAME', formatted for reST. e.g., for the line markerfacecolor property, which has an alias, return 'markerfacecolor or mfc' and for the transform property, which does not, return 'transform'.
get_aliases()[source]
 
Get a dict mapping property fullnames to sets of aliases for each alias in the ArtistInspector. e.g., for lines: {'markerfacecolor': {'mfc'},
 'linewidth'      : {'lw'},
}
get_setters()[source]
 
Get the attribute strings with setters for object. For example, for a line, return ['markerfacecolor', 'linewidth',
....].
get_valid_values(attr)[source]
 
Get the legal arguments for the setter associated with attr. This is done by querying the docstring of the setter for a line that begins with "ACCEPTS:" or ".. ACCEPTS:", and then by looking for a numpydoc-style documentation for the setter's first argument.
is_alias(o)[source]
 
Return whether method object o is an alias for another method.
pprint_getters()[source]
 
Return the getters and actual values as list of strings.
pprint_setters(prop=None, leadingspace=2)[source]
 
If prop is None, return a list of strings of all settable properties and their valid values. If prop is not None, it is a valid property name and that property will be returned as a string of property : valid values.
pprint_setters_rest(prop=None, leadingspace=4)[source]
 
If prop is None, return a list of reST-formatted strings of all settable properties and their valid values. If prop is not None, it is a valid property name and that property will be returned as a string of "property : valid" values.
matplotlib.artist.get   matplotlib.artist.get(obj, property=None)[source]
 
Return the value of an Artist's property, or print all of them.  Parameters 
 
objArtist


The queried artist; e.g., a Line2D, a Text, or an Axes.  
propertystr or None, default: None


If property is 'somename', this function returns obj.get_somename(). If it's None (or unset), it prints all gettable properties from obj. Many properties have aliases for shorter typing, e.g. 'lw' is an alias for 'linewidth'. In the output, aliases and full property names will be listed as: property or alias = value e.g.: linewidth or lw = 2      See also  setp
matplotlib.artist.getp   matplotlib.artist.getp(obj, property=None)[source]
 
Return the value of an Artist's property, or print all of them.  Parameters 
 
objArtist


The queried artist; e.g., a Line2D, a Text, or an Axes.  
propertystr or None, default: None


If property is 'somename', this function returns obj.get_somename(). If it's None (or unset), it prints all gettable properties from obj. Many properties have aliases for shorter typing, e.g. 'lw' is an alias for 'linewidth'. In the output, aliases and full property names will be listed as: property or alias = value e.g.: linewidth or lw = 2      See also  setp
matplotlib.artist.kwdoc   matplotlib.artist.kwdoc(artist)[source]
 
Inspect an Artist class (using ArtistInspector) and return information about its settable properties and their current values.  Parameters 
 
artistArtist or an iterable of Artists

  Returns 
 str

The settable properties of artist, as plain text if rcParams["docstring.hardcopy"] (default: False) is False and as a rst table (intended for use in Sphinx) if it is True.
matplotlib.artist.setp   matplotlib.artist.setp(obj, *args, file=None, **kwargs)[source]
 
Set one or more properties on an Artist, or list allowed values.  Parameters 
 
objArtist or list of Artist


The artist(s) whose properties are being set or queried. When setting properties, all artists are affected; when querying the allowed values, only the first instance in the sequence is queried. For example, two lines can be made thicker and red with a single call: >>> x = arange(0, 1, 0.01)
>>> lines = plot(x, sin(2*pi*x), x, sin(4*pi*x))
>>> setp(lines, linewidth=2, color='r')
  
filefile-like, default: sys.stdout


Where setp writes its output when asked to list allowed values. >>> with open('output.log') as file:
...     setp(line, file=file)
 The default, None, means sys.stdout.  *args, **kwargs

The properties to set. The following combinations are supported:  
Set the linestyle of a line to be dashed: >>> line, = plot([1, 2, 3])
>>> setp(line, linestyle='--')
  
Set multiple properties at once: >>> setp(line, linewidth=2, color='r')
  
List allowed values for a line's linestyle: >>> setp(line, 'linestyle')
linestyle: {'-', '--', '-.', ':', '', (offset, on-off-seq), ...}
  
List all properties that can be set, and their allowed values: >>> setp(line)
agg_filter: a filter function, ...
[long output listing omitted]
   setp also supports MATLAB style string/value pairs. For example, the following are equivalent: >>> setp(lines, 'linewidth', 2, 'color', 'r')  # MATLAB style
>>> setp(lines, linewidth=2, color='r')        # Python style
      See also  getp
classmatplotlib.axes.Axes(fig, rect, *, facecolor=None, frameon=True, sharex=None, sharey=None, label='', xscale=None, yscale=None, box_aspect=None, **kwargs)[source]
 
Bases: matplotlib.axes._base._AxesBase The Axes contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. The Axes instance supports callbacks through a callbacks attribute which is a CallbackRegistry instance. The events you can connect to are 'xlim_changed' and 'ylim_changed' and the callback will be called with func(ax) where ax is the Axes instance.  Attributes 
 
dataLimBbox


The bounding box enclosing all data displayed in the Axes.  
viewLimBbox


The view limits in data coordinates.     Build an Axes in a figure.  Parameters 
 
figFigure


The Axes is built in the Figure fig.  
rect[left, bottom, width, height]


The Axes is built in the rectangle rect. rect is in Figure coordinates.  
sharex, shareyAxes, optional


The x or y axis is shared with the x or y axis in the input Axes.  
frameonbool, default: True


Whether the Axes frame is visible.  
box_aspectfloat, optional


Set a fixed aspect for the Axes box, i.e. the ratio of height to width. See set_box_aspect for details.  **kwargs

Other optional keyword arguments:   
Property Description   
adjustable {'box', 'datalim'}  
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  
anchor (float, float) or {'C', 'SW', 'S', 'SE', 'E', 'NE', ...}  
animated bool  
aspect {'auto', 'equal'} or float  
autoscale_on bool  
autoscalex_on bool  
autoscaley_on bool  
axes_locator Callable[[Axes, Renderer], Bbox]  
axisbelow bool or 'line'  
box_aspect float or None  
clip_box Bbox  
clip_on bool  
clip_path Patch or (Path, Transform) or None  
facecolor or fc color  
figure Figure  
frame_on bool  
gid str  
in_layout bool  
label object  
navigate bool  
navigate_mode unknown  
path_effects AbstractPathEffect  
picker None or bool or float or callable  
position [left, bottom, width, height] or Bbox  
prop_cycle unknown  
rasterization_zorder float or None  
rasterized bool  
sketch_params (scale: float, length: float, randomness: float)  
snap bool or None  
title str  
transform Transform  
url str  
visible bool  
xbound unknown  
xlabel str  
xlim (bottom: float, top: float)  
xmargin float greater than -0.5  
xscale {"linear", "log", "symlog", "logit", ...} or ScaleBase  
xticklabels unknown  
xticks unknown  
ybound unknown  
ylabel str  
ylim (bottom: float, top: float)  
ymargin float greater than -0.5  
yscale {"linear", "log", "symlog", "logit", ...} or ScaleBase  
yticklabels unknown  
yticks unknown  
zorder float      Returns 
 Axes

The new Axes object.
matplotlib.axes.Axes.acorr   Axes.acorr(x, *, data=None, **kwargs)[source]
 
Plot the autocorrelation of x.  Parameters 
 
xarray-like


detrendcallable, default: mlab.detrend_none (no detrending)


A detrending function applied to x. It must have the signature detrend(x: np.ndarray) -> np.ndarray
  
normedbool, default: True


If True, input vectors are normalised to unit length.  
usevlinesbool, default: True


Determines the plot style. If True, vertical lines are plotted from 0 to the acorr value using Axes.vlines. Additionally, a horizontal line is plotted at y=0 using Axes.axhline. If False, markers are plotted at the acorr values using Axes.plot.  
maxlagsint, default: 10


Number of lags to show. If None, will return all 2 * len(x) - 1 lags.    Returns 
 
lagsarray (length 2*maxlags+1)


The lag vector.  
carray (length 2*maxlags+1)


The auto correlation vector.  
lineLineCollection or Line2D


Artist added to the Axes of the correlation:  
LineCollection if usevlines is True. 
Line2D if usevlines is False.   
bLine2D or None


Horizontal line at 0 if usevlines is True None usevlines is False.    Other Parameters 
 
linestyleLine2D property, optional


The linestyle for plotting the data points. Only used if usevlines is False.  
markerstr, default: 'o'


The marker for plotting the data points. Only used if usevlines is False.  
dataindexable object, optional


If given, the following parameters also accept a string s, which is interpreted as data[s] (unless this raises an exception): x  **kwargs

Additional parameters are passed to Axes.vlines and Axes.axhline if usevlines is True; otherwise they are passed to Axes.plot.     Notes The cross correlation is performed with numpy.correlate with mode = "full". 
  Examples using matplotlib.axes.Axes.acorr
 
   Cross- and Auto-Correlation Demo
matplotlib.axes.Axes.add_artist   Axes.add_artist(a)[source]
 
Add an Artist to the Axes; return the artist. Use add_artist only for artists for which there is no dedicated "add" method; and if necessary, use a method such as update_datalim to manually update the dataLim if the artist is to be included in autoscaling. If no transform has been specified when creating the artist (e.g. artist.get_transform() == None) then the transform is set to ax.transData. 
  Examples using matplotlib.axes.Axes.add_artist
 
   Scatter plots with a legend   

   BboxImage Demo   

   Bar of pie   

   Annotating Plots   

   AnnotationBbox demo   

   Using a text as a Path   

   Ellipse Demo   

   Anchored Direction Arrow   

   Axes Grid2   

   Inset Locator Demo2   

   Simple Anchored Artists   

   Anatomy of a figure   

   Anchored Artists   

   Artist tests   

   Anchored Box04   

   Annotate Explain   

   Connect Simple01   

   Simple Annotate01   

   Simple Legend02   

   Legend guide   

   Annotations
matplotlib.axes.Axes.add_callback   Axes.add_callback(func)[source]
 
Add a callback function that will be called whenever one of the Artist's properties changes.  Parameters 
 
funccallable


The callback function. It must have the signature: def func(artist: Artist) -> Any
 where artist is the calling Artist. Return values may exist but are ignored.    Returns 
 int

The observer id associated with the callback. This id can be used for removing the callback with remove_callback later.      See also  remove_callback
matplotlib.axes.Axes.add_child_axes   Axes.add_child_axes(ax)[source]
 
Add an AxesBase to the Axes' children; return the child Axes. This is the lowlevel version. See axes.Axes.inset_axes.
matplotlib.axes.Axes.add_collection   Axes.add_collection(collection, autolim=True)[source]
 
Add a Collection to the Axes; return the collection. 
  Examples using matplotlib.axes.Axes.add_collection
 
   EventCollection Demo   

   Using span_where   

   Creating boxes from error bars using PatchCollection   

   Reference for Matplotlib artists   

   Line, Poly and RegularPoly Collection with autoscaling   

   Ellipse Collection   

   Line Collection   

   Circles, Wedges and Polygons   

   Lasso Demo   

   MRI With EEG   

   Artist tests   

   Autoscaling
matplotlib.axes.Axes.add_container   Axes.add_container(container)[source]
 
Add a Container to the axes' containers; return the container.
matplotlib.axes.Axes.add_image   Axes.add_image(image)[source]
 
Add an AxesImage to the Axes; return the image. 
  Examples using matplotlib.axes.Axes.add_image
 
   Image Nonuniform
matplotlib.axes.Axes.add_line   Axes.add_line(line)[source]
 
Add a Line2D to the Axes; return the line. 
  Examples using matplotlib.axes.Axes.add_line
 
   Artist within an artist   

   Reference for Matplotlib artists   

   Artist tests   

   Artist tutorial
matplotlib.axes.Axes.add_patch   Axes.add_patch(p)[source]
 
Add a Patch to the Axes; return the patch. 
  Examples using matplotlib.axes.Axes.add_patch
 
   Curve with error band   

   Image Demo   

   Axes box aspect   

   Controlling view limits using margins and sticky_edges   

   Boxplots   

   Plot a confidence ellipse of a two-dimensional dataset   

   Annotating Plots   

   Precise text layout   

   Compound path   

   Dolphins   

   Mmh Donuts!!!   

   Drawing fancy boxes   

   Hatch style reference   

   PathPatch object   

   Bezier Curve   

   ggplot style sheet   

   Inset Locator Demo   

   Firefox   

   Integral as the area under a curve   

   Looking Glass   

   Path Editor   

   Poly Editor   

   Trifinder Event Demo   

   Viewlims   

   Changing colors of lines intersecting a box   

   Building histograms using Rectangles and PolyCollections   

   Packed-bubble chart   

   SVG Filter Pie   

   TickedStroke patheffect   

   Draw flat objects in 3D plot   

   Artist tests   

   Ellipse With Units   

   Artist tutorial   

   Legend guide   

   Path Tutorial   

   Transformations Tutorial   

   Specifying Colors   

   Text properties and layout
matplotlib.axes.Axes.add_table   Axes.add_table(tab)[source]
 
Add a Table to the Axes; return the table.
matplotlib.axes.Axes.apply_aspect   Axes.apply_aspect(position=None)[source]
 
Adjust the Axes for a specified data aspect ratio. Depending on get_adjustable this will modify either the Axes box (position) or the view limits. In the former case, get_anchor will affect the position.  See also  matplotlib.axes.Axes.set_aspect

For a description of aspect ratio handling.  matplotlib.axes.Axes.set_adjustable

Set how the Axes adjusts to achieve the required aspect ratio.  matplotlib.axes.Axes.set_anchor

Set the position in case of extra space.    Notes This is called automatically when each Axes is drawn. You may need to call it yourself if you need to update the Axes position and/or view limits before the Figure is drawn.
matplotlib.axes.Axes.arrow   Axes.arrow(x, y, dx, dy, **kwargs)[source]
 
Add an arrow to the Axes. This draws an arrow from (x, y) to (x+dx, y+dy).  Parameters 
 
x, yfloat


The x and y coordinates of the arrow base.  
dx, dyfloat


The length of the arrow along x and y direction.  
widthfloat, default: 0.001


Width of full arrow tail.  
length_includes_headbool, default: False


True if head is to be counted in calculating the length.  
head_widthfloat or None, default: 3*width


Total width of the full arrow head.  
head_lengthfloat or None, default: 1.5*head_width


Length of arrow head.  
shape{'full', 'left', 'right'}, default: 'full'


Draw the left-half, right-half, or full arrow.  
overhangfloat, default: 0


Fraction that the arrow is swept back (0 overhang means triangular shape). Can be negative or greater than one.  
head_starts_at_zerobool, default: False


If True, the head starts being drawn at coordinate 0 instead of ending at coordinate 0.  **kwargs

Patch 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 unknown  
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  
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  
zorder float      Returns 
 FancyArrow

The created FancyArrow object.     Notes The resulting arrow is affected by the Axes aspect ratio and limits. This may produce an arrow whose head is not square with its stem. To create an arrow whose head is square with its stem, use annotate() for example: >>> ax.annotate("", xy=(0.5, 0.5), xytext=(0, 0),
...             arrowprops=dict(arrowstyle="->"))
 
  Examples using matplotlib.axes.Axes.arrow
 
   Arrow Demo
matplotlib.axes.Axes.autoscale   Axes.autoscale(enable=True, axis='both', tight=None)[source]
 
Autoscale the axis view to the data (toggle). Convenience method for simple axis view autoscaling. It turns autoscaling on or off, and then, if autoscaling for either axis is on, it performs the autoscaling on the specified axis or Axes.  Parameters 
 
enablebool or None, default: True


True turns autoscaling on, False turns it off. None leaves the autoscaling state unchanged.  
axis{'both', 'x', 'y'}, default: 'both'


Which axis to operate on.  
tightbool or None, default: None


If True, first set the margins to zero. Then, this argument is forwarded to autoscale_view (regardless of its value); see the description of its behavior there.     
  Examples using matplotlib.axes.Axes.autoscale
 
   Axes box aspect   

   Autoscaling
matplotlib.axes.Axes.autoscale_view   Axes.autoscale_view(tight=None, scalex=True, scaley=True)[source]
 
Autoscale the view limits using the data limits.  Parameters 
 
tightbool or None


If True, only expand the axis limits using the margins. Note that unlike for autoscale, tight=True does not set the margins to zero. If False and rcParams["axes.autolimit_mode"] (default: 'data') is 'round_numbers', then after expansion by the margins, further expand the axis limits using the axis major locator. If None (the default), reuse the value set in the previous call to autoscale_view (the initial value is False, but the default style sets rcParams["axes.autolimit_mode"] (default: 'data') to 'data', in which case this behaves like True).  
scalexbool, default: True


Whether to autoscale the x axis.  
scaleybool, default: True


Whether to autoscale the y axis.     Notes The autoscaling preserves any preexisting axis direction reversal. The data limits are not updated automatically when artist data are changed after the artist has been added to an Axes instance. In that case, use matplotlib.axes.Axes.relim() prior to calling autoscale_view. If the views of the Axes are fixed, e.g. via set_xlim, they will not be changed by autoscale_view(). See matplotlib.axes.Axes.autoscale() for an alternative. 
  Examples using matplotlib.axes.Axes.autoscale_view
 
   Line, Poly and RegularPoly Collection with autoscaling   

   Compound path   

   Ellipse Collection   

   Packed-bubble chart   

   Group barchart with units   

   Textbox   

   Autoscaling