neulab/docprompting-conala huggingface dataset:
matplotlib.axis.Axis.get_ticklocs   Axis.get_ticklocs(*, minor=False)[source]
 
Return this Axis' tick locations in data coordinates. 
  Examples using matplotlib.axis.Axis.get_ticklocs
 
   Artist tutorial
matplotlib.axis.Axis.get_tightbbox   Axis.get_tightbbox(renderer, *, for_layout_only=False)[source]
 
Return a bounding box that encloses the axis. It only accounts tick labels, axis label, and offsetText. If for_layout_only is True, then the width of the label (if this is an x-axis) or the height of the label (if this is a y-axis) is collapsed to near zero. This allows tight/constrained_layout to ignore too-long labels when doing their layout.
matplotlib.axis.Axis.get_units   Axis.get_units()[source]
 
Return the units for axis.
matplotlib.axis.Axis.get_view_interval   Axis.get_view_interval()[source]
 
Return the (min, max) view limits of this axis.
matplotlib.axis.Axis.grid   Axis.grid(visible=None, which='major', **kwargs)[source]
 
Configure the grid lines.  Parameters 
 
visiblebool or None


Whether to show the grid lines. If any kwargs are supplied, it is assumed you want the grid on and visible will be set to True. If visible is None and there are no kwargs, this toggles the visibility of the lines.  
which{'major', 'minor', 'both'}


The grid lines to apply the changes on.  
**kwargsLine2D properties


Define the line properties of the grid, e.g.: grid(color='r', linestyle='-', linewidth=2)
     
  Examples using matplotlib.axis.Axis.grid
 
   Box plots with custom fill colors   

   Boxplots   

   Box plot vs. violin plot comparison   

   Symlog Demo
matplotlib.axis.Axis.limit_range_for_scale   Axis.limit_range_for_scale(vmin, vmax)[source]
matplotlib.axis.Axis.OFFSETTEXTPAD   Axis.OFFSETTEXTPAD=3
matplotlib.axis.Axis.remove_overlapping_locs   propertyAxis.remove_overlapping_locs
 
If minor ticker locations that overlap with major ticker locations should be trimmed.
matplotlib.axis.Axis.reset_ticks   Axis.reset_ticks()[source]
 
Re-initialize the major and minor Tick lists. Each list starts with a single fresh Tick.
matplotlib.axis.Axis.set_data_interval   Axis.set_data_interval(vmin, vmax, ignore=False)[source]
 
Set the axis data limits. This method is for internal use. If ignore is False (the default), this method will never reduce the preexisting data limits, only expand them if vmin or vmax are not within them. Moreover, the order of vmin and vmax does not matter; the orientation of the axis will not change. If ignore is True, the data limits will be set exactly to (vmin,
vmax) in that order.
matplotlib.axis.Axis.set_default_intervals   Axis.set_default_intervals()[source]
 
Set the default limits for the axis data and view interval if they have not been not mutated yet.
matplotlib.axis.Axis.set_inverted   Axis.set_inverted(inverted)[source]
 
Set whether this Axis is oriented in the "inverse" direction. The "normal" direction is increasing to the right for the x-axis and to the top for the y-axis; the "inverse" direction is increasing to the left for the x-axis and to the bottom for the y-axis.
matplotlib.axis.Axis.set_label_coords   Axis.set_label_coords(x, y, transform=None)[source]
 
Set the coordinates of the label. By default, the x coordinate of the y label and the y coordinate of the x label are determined by the tick label bounding boxes, but this can lead to poor alignment of multiple labels if there are multiple axes. You can also specify the coordinate system of the label with the transform. If None, the default coordinate system will be the axes coordinate system: (0, 0) is bottom left, (0.5, 0.5) is center, etc.
matplotlib.axis.Axis.set_label_position   Axis.set_label_position(position)[source]
 
Set the label position (top or bottom)  Parameters 
 
position{'top', 'bottom'}

   
  Examples using matplotlib.axis.Axis.set_label_position
 
   Title positioning
matplotlib.axis.Axis.set_label_text   Axis.set_label_text(label, fontdict=None, **kwargs)[source]
 
Set the text value of the axis label.  Parameters 
 
labelstr


Text string.  
fontdictdict


Text properties.  **kwargs

Merged into fontdict.
matplotlib.axis.Axis.set_major_formatter   Axis.set_major_formatter(formatter)[source]
 
Set the formatter of the major ticker. In addition to a Formatter instance, this also accepts a str or function. For a str a StrMethodFormatter is used. The field used for the value must be labeled 'x' and the field used for the position must be labeled 'pos'. See the StrMethodFormatter documentation for more information. For a function, a FuncFormatter is used. The function must take two inputs (a tick value x and a position pos), and return a string containing the corresponding tick label. See the FuncFormatter documentation for more information.  Parameters 
 
formatterFormatter, str, or function

   
  Examples using matplotlib.axis.Axis.set_major_formatter
 
   Creating a timeline with lines, dates, and text   

   Date tick labels   

   Custom tick formatter for time series   

   Labeling ticks using engineering notation   

   Dollar Ticks   

   Bachelor's degrees by gender   

   3D surface (colormap)   

   SkewT-logP diagram: using transforms and custom projections   

   Centering labels between ticks   

   Custom Ticker1   

   Formatting date ticks using ConciseDateFormatter   

   Date Demo Convert   

   Placing date ticks using recurrence rules   

   Date Index Formatter   

   Major and minor ticks   

   Setting tick labels from a list of values   

   Basic Usage   

   The Lifecycle of a Plot   

   Artist tutorial   

   Choosing Colormaps in Matplotlib   

   Text in Matplotlib Plots
matplotlib.axis.Axis.set_major_locator   Axis.set_major_locator(locator)[source]
 
Set the locator of the major ticker.  Parameters 
 
locatorLocator

   
  Examples using matplotlib.axis.Axis.set_major_locator
 
   Hatch-filled histograms   

   Creating a timeline with lines, dates, and text   

   Date tick labels   

   Anatomy of a figure   

   3D surface (colormap)   

   3D surface (checkerboard)   

   Scales   

   MRI With EEG   

   SkewT-logP diagram: using transforms and custom projections   

   Centering labels between ticks   

   Formatting date ticks using ConciseDateFormatter   

   Date Demo Convert   

   Placing date ticks using recurrence rules   

   Major and minor ticks   

   Setting tick labels from a list of values   

   Choosing Colormaps in Matplotlib   

   Text in Matplotlib Plots
matplotlib.axis.Axis.set_minor_formatter   Axis.set_minor_formatter(formatter)[source]
 
Set the formatter of the minor ticker. In addition to a Formatter instance, this also accepts a str or function. See Axis.set_major_formatter for more information.  Parameters 
 
formatterFormatter, str, or function

   
  Examples using matplotlib.axis.Axis.set_minor_formatter
 
   Anatomy of a figure   

   Scales   

   SkewT-logP diagram: using transforms and custom projections   

   Centering labels between ticks
matplotlib.axis.Axis.set_minor_locator   Axis.set_minor_locator(locator)[source]
 
Set the locator of the minor ticker.  Parameters 
 
locatorLocator

   
  Examples using matplotlib.axis.Axis.set_minor_locator
 
   Secondary Axis   

   Date tick labels   

   Anatomy of a figure   

   Centering labels between ticks   

   Date Demo Convert   

   Major and minor ticks
matplotlib.axis.Axis.set_pickradius   Axis.set_pickradius(pickradius)[source]
 
Set the depth of the axis used by the picker.  Parameters 
 
pickradiusfloat
matplotlib.axis.Axis.set_remove_overlapping_locs   Axis.set_remove_overlapping_locs(val)[source]
matplotlib.axis.Axis.set_tick_params   Axis.set_tick_params(which='major', reset=False, **kw)[source]
 
Set appearance parameters for ticks, ticklabels, and gridlines. For documentation of keyword arguments, see matplotlib.axes.Axes.tick_params(). 
  Examples using matplotlib.axis.Axis.set_tick_params
 
   Violin plot customization   

   Dollar Ticks   

   Scatter Histogram (Locatable Axes)   

   Pythonic Matplotlib   

   Placing date ticks using recurrence rules   

   Date Precision and Epochs   

   Choosing Colormaps in Matplotlib
matplotlib.axis.Axis.set_ticklabels   Axis.set_ticklabels(ticklabels, *, minor=False, **kwargs)[source]
 
Set the text values of the tick labels.  Discouraged The use of this method is discouraged, because of the dependency on tick positions. In most cases, you'll want to use set_[x/y]ticks(positions, labels) instead. If you are using this method, you should always fix the tick positions before, e.g. by using Axis.set_ticks or by explicitly setting a FixedLocator. Otherwise, ticks are free to move and the labels may end up in unexpected positions.   Parameters 
 
ticklabelssequence of str or of Texts


Texts for labeling each tick location in the sequence set by Axis.set_ticks; the number of labels must match the number of locations.  
minorbool


If True, set minor ticks instead of major ticks.  **kwargs

Text properties.    Returns 
 list of Texts

For each tick, includes tick.label1 if it is visible, then tick.label2 if it is visible, in that order.
matplotlib.axis.Axis.set_ticks   Axis.set_ticks(ticks, labels=None, *, minor=False, **kwargs)[source]
 
Set this Axis' tick locations and optionally labels. If necessary, the view limits of the Axis are expanded so that all given ticks are visible.  Parameters 
 
tickslist of floats


List of tick locations.  
labelslist of str, optional


List of tick labels. If not set, the labels show the data value.  
minorbool, default: False


If False, set the major ticks; if True, the minor ticks.  **kwargs

Text properties for the labels. These take effect only if you pass labels. In other cases, please use tick_params.     Notes The mandatory expansion of the view limits is an intentional design choice to prevent the surprise of a non-visible tick. If you need other limits, you should set the limits explicitly after setting the ticks. 
  Examples using matplotlib.axis.Axis.set_ticks
 
   Spine Placement
matplotlib.axis.Axis.set_units   Axis.set_units(u)[source]
 
Set the units for axis.  Parameters 
 
uunits tag

   Notes The units of any shared axis will also be updated. 
  Examples using matplotlib.axis.Axis.set_units
 
   Artist tests   

   Group barchart with units   

   Unit handling
matplotlib.axis.Axis.set_view_interval   Axis.set_view_interval(vmin, vmax, ignore=False)[source]
 
Set the axis view limits. This method is for internal use; Matplotlib users should typically use e.g. set_xlim or set_ylim. If ignore is False (the default), this method will never reduce the preexisting view limits, only expand them if vmin or vmax are not within them. Moreover, the order of vmin and vmax does not matter; the orientation of the axis will not change. If ignore is True, the view limits will be set exactly to (vmin,
vmax) in that order.
matplotlib.axis.Axis.update_units   Axis.update_units(data)[source]
 
Introspect data for units converter and update the axis.converter instance if necessary. Return True if data is registered for unit conversion.
classmatplotlib.axis.Tick(axes, loc, *, size=None, width=None, color=None, tickdir=None, pad=None, labelsize=None, labelcolor=None, zorder=None, gridOn=None, tick1On=True, tick2On=True, label1On=True, label2On=False, major=True, labelrotation=0, grid_color=None, grid_linestyle=None, grid_linewidth=None, grid_alpha=None, **kw)[source]
 
Abstract base class for the axis ticks, grid lines and labels. Ticks mark a position on an Axis. They contain two lines as markers and two labels; one each for the bottom and top positions (in case of an XAxis) or for the left and right positions (in case of a YAxis).  Attributes 
 
tick1lineLine2D


The left/bottom tick marker.  
tick2lineLine2D


The right/top tick marker.  
gridlineLine2D


The grid line associated with the label position.  
label1Text


The left/bottom tick label.  
label2Text


The right/top tick label.     bbox is the Bound2D bounding box in display coords of the Axes loc is the tick location in data coords size is the tick size in points
matplotlib.axis.Tick.get_loc   Tick.get_loc()[source]
 
Return the tick location (data coords) as a scalar.
matplotlib.axis.Tick.get_pad   Tick.get_pad()[source]
 
Get the value of the tick label pad in points.
matplotlib.axis.Tick.get_pad_pixels   Tick.get_pad_pixels()[source]
matplotlib.axis.Tick.get_tick_padding   Tick.get_tick_padding()[source]
 
Get the length of the tick outside of the axes.
matplotlib.axis.Tick.get_tickdir   Tick.get_tickdir()[source]
matplotlib.axis.Tick.get_view_interval   Tick.get_view_interval()[source]
 
Return the view limits (min, max) of the axis the tick belongs to.
matplotlib.axis.Tick.set_label1   Tick.set_label1(s)[source]
 
Set the label1 text.  Parameters 
 
sstr
matplotlib.axis.Tick.set_label2   Tick.set_label2(s)[source]
 
Set the label2 text.  Parameters 
 
sstr
matplotlib.axis.Tick.set_pad   Tick.set_pad(val)[source]
 
Set the tick label pad in points  Parameters 
 
valfloat
matplotlib.axis.Tick.set_url   Tick.set_url(url)[source]
 
Set the url of label1 and label2.  Parameters 
 
urlstr
matplotlib.axis.Tick.update_position   Tick.update_position(loc)[source]
 
Set the location of tick in data coords with scalar loc.
classmatplotlib.axis.Ticker[source]
 
A container for the objects defining tick position and format.  Attributes 
 
locatormatplotlib.ticker.Locator subclass


Determines the positions of the ticks.  
formattermatplotlib.ticker.Formatter subclass


Determines the format of the tick labels.
classmatplotlib.axis.XAxis(*args, **kwargs)[source]
 
 Parameters 
 
axesmatplotlib.axes.Axes


The Axes to which the created Axis belongs.  
pickradiusfloat


The acceptance radius for containment tests. See also Axis.contains.
matplotlib.axis.XAxis.axis_name   XAxis.axis_name='x'
 
Read-only name identifying the axis.
matplotlib.axis.XAxis.get_text_heights   XAxis.get_text_heights(renderer)[source]
 
Return how much space should be reserved for text above and below the axes, as a pair of floats.
matplotlib.axis.XAxis.get_ticks_position   XAxis.get_ticks_position()[source]
 
Return the ticks position ("top", "bottom", "default", or "unknown").
matplotlib.axis.XAxis.set_label_position   XAxis.set_label_position(position)[source]
 
Set the label position (top or bottom)  Parameters 
 
position{'top', 'bottom'}

   
  Examples using matplotlib.axis.XAxis.set_label_position
 
   Title positioning
matplotlib.axis.XAxis.set_ticks_position   XAxis.set_ticks_position(position)[source]
 
Set the ticks position.  Parameters 
 
position{'top', 'bottom', 'both', 'default', 'none'}


'both' sets the ticks to appear on both positions, but does not change the tick labels. 'default' resets the tick positions to the default: ticks on both positions, labels at bottom. 'none' can be used if you don't want any ticks. 'none' and 'both' affect only the ticks, not the labels.     
  Examples using matplotlib.axis.XAxis.set_ticks_position
 
   Violin plot customization   

   Colorbar with AxesDivider   

   Controlling the position and size of colorbars with Inset Axes   

   Integral as the area under a curve   

   XKCD   

   Spine Placement   

   Spines   

   Custom spine bounds   

   Dropped spines   

   Choosing Colormaps in Matplotlib
matplotlib.axis.XAxis.tick_bottom   XAxis.tick_bottom()[source]
 
Move ticks and ticklabels (if present) to the bottom of the axes. 
  Examples using matplotlib.axis.XAxis.tick_bottom
 
   Broken Axis   

   Bachelor's degrees by gender
matplotlib.axis.XAxis.tick_top   XAxis.tick_top()[source]
 
Move ticks and ticklabels (if present) to the top of the axes. 
  Examples using matplotlib.axis.XAxis.tick_top
 
   Broken Axis   

   Title positioning
classmatplotlib.axis.XTick(*args, **kwargs)[source]
 
Contains all the Artists needed to make an x tick - the tick line, the label text and the grid line bbox is the Bound2D bounding box in display coords of the Axes loc is the tick location in data coords size is the tick size in points
classmatplotlib.axis.YAxis(*args, **kwargs)[source]
 
 Parameters 
 
axesmatplotlib.axes.Axes


The Axes to which the created Axis belongs.  
pickradiusfloat


The acceptance radius for containment tests. See also Axis.contains.
matplotlib.axis.YAxis.axis_name   YAxis.axis_name='y'
 
Read-only name identifying the axis.
matplotlib.axis.YAxis.get_text_widths   YAxis.get_text_widths(renderer)[source]
matplotlib.axis.YAxis.get_ticks_position   YAxis.get_ticks_position()[source]
 
Return the ticks position ("left", "right", "default", or "unknown").
matplotlib.axis.YAxis.set_label_position   YAxis.set_label_position(position)[source]
 
Set the label position (left or right)  Parameters 
 
position{'left', 'right'}
matplotlib.axis.YAxis.set_offset_position   YAxis.set_offset_position(position)[source]
 
 Parameters 
 
position{'left', 'right'}
matplotlib.axis.YAxis.set_ticks_position   YAxis.set_ticks_position(position)[source]
 
Set the ticks position.  Parameters 
 
position{'left', 'right', 'both', 'default', 'none'}


'both' sets the ticks to appear on both positions, but does not change the tick labels. 'default' resets the tick positions to the default: ticks on both positions, labels at left. 'none' can be used if you don't want any ticks. 'none' and 'both' affect only the ticks, not the labels.     
  Examples using matplotlib.axis.YAxis.set_ticks_position
 
   Spine Placement   

   Spines   

   Custom spine bounds   

   Dropped spines
matplotlib.axis.YAxis.tick_left   YAxis.tick_left()[source]
 
Move ticks and ticklabels (if present) to the left of the axes. 
  Examples using matplotlib.axis.YAxis.tick_left
 
   Bachelor's degrees by gender   

   Set default y-axis tick labels on the right
matplotlib.axis.YAxis.tick_right   YAxis.tick_right()[source]
 
Move ticks and ticklabels (if present) to the right of the axes.
classmatplotlib.axis.YTick(*args, **kwargs)[source]
 
Contains all the Artists needed to make a Y tick - the tick line, the label text and the grid line bbox is the Bound2D bounding box in display coords of the Axes loc is the tick location in data coords size is the tick size in points
mpl_toolkits.axisartist The axisartist namespace provides a derived Axes implementation (mpl_toolkits.axisartist.Axes), designed to support curvilinear grids. The biggest difference is that the artists that are responsible for drawing axis lines, ticks, ticklabels, and axis labels are separated out from Matplotlib's Axis class. You can find a tutorial describing usage of axisartist at the axisartist user guide.    The submodules of the axisartist API are:  
axisartist.angle_helper   
axisartist.axes_divider   
axisartist.axes_grid   
axisartist.axes_rgb   
axisartist.axis_artist The axis_artist module implements custom artists to draw axis elements (axis lines and labels, tick lines and labels, grid lines).  
axisartist.axisline_style   
axisartist.axislines Axislines includes modified implementation of the Axes class.  
axisartist.clip_path   
axisartist.floating_axes An experimental support for curvilinear grid.  
axisartist.grid_finder   
axisartist.grid_helper_curvelinear An experimental support for curvilinear grid.  
axisartist.parasite_axes
mpl_toolkits.axisartist.angle_helper  Classes  
ExtremeFinderCycle(nx, ny[, lon_cycle, ...]) This subclass handles the case where one or both coordinates should be taken modulo 360, or be restricted to not exceed a specific range.  
FormatterDMS()   
FormatterHMS()   
LocatorBase(nbins[, include_last])   
LocatorD(nbins[, include_last])   
LocatorDM(nbins[, include_last])   
LocatorDMS(nbins[, include_last])   
LocatorH(nbins[, include_last])   
LocatorHM(nbins[, include_last])   
LocatorHMS(nbins[, include_last])      Functions  
select_step(v1, v2, nv[, hour, ...])   
select_step24(v1, v2, nv[, include_last, ...])   
select_step360(v1, v2, nv[, include_last, ...])   
select_step_degree(dv)   
select_step_hour(dv)   
select_step_sub(dv)
mpl_toolkits.axisartist.angle_helper.ExtremeFinderCycle   classmpl_toolkits.axisartist.angle_helper.ExtremeFinderCycle(nx, ny, lon_cycle=360.0, lat_cycle=None, lon_minmax=None, lat_minmax=(- 90, 90))[source]
 
Bases: mpl_toolkits.axisartist.grid_finder.ExtremeFinderSimple This subclass handles the case where one or both coordinates should be taken modulo 360, or be restricted to not exceed a specific range.  Parameters 
 
nx, nyint


The number of samples in each direction.  
lon_cycle, lat_cycle360 or None


If not None, values in the corresponding direction are taken modulo lon_cycle or lat_cycle; in theory this can be any number but the implementation actually assumes that it is 360 (if not None); other values give nonsensical results. This is done by "unwrapping" the transformed grid coordinates so that jumps are less than a half-cycle; then normalizing the span to no more than a full cycle. For example, if values are in the union of the [0, 2] and [358, 360] intervals (typically, angles measured modulo 360), the values in the second interval are normalized to [-2, 0] instead so that the values now cover [-2, 2]. If values are in a range of [5, 1000], this gets normalized to [5, 365].  
lon_minmax, lat_minmax(float, float) or None


If not None, the computed bounding box is clipped to the given range in the corresponding direction.       __call__(transform_xy, x1, y1, x2, y2)[source]
 
Compute an approximation of the bounding box obtained by applying transform_xy to the box delimited by (x1, y1, x2, y2). The intended use is to have (x1, y1, x2, y2) in axes coordinates, and have transform_xy be the transform from axes coordinates to data coordinates; this method then returns the range of data coordinates that span the actual axes. The computation is done by sampling nx * ny equispaced points in the (x1, y1, x2, y2) box and finding the resulting points with extremal coordinates; then adding some padding to take into account the finite sampling. As each sampling step covers a relative range of 1/nx or 1/ny, the padding is computed by expanding the span covered by the extremal coordinates by these fractions. 
 
  Examples using mpl_toolkits.axisartist.angle_helper.ExtremeFinderCycle
 
   axis_direction demo   

   Curvilinear grid demo   

   floating_axis demo   

   Simple Axis Pad
__call__(transform_xy, x1, y1, x2, y2)[source]
 
Compute an approximation of the bounding box obtained by applying transform_xy to the box delimited by (x1, y1, x2, y2). The intended use is to have (x1, y1, x2, y2) in axes coordinates, and have transform_xy be the transform from axes coordinates to data coordinates; this method then returns the range of data coordinates that span the actual axes. The computation is done by sampling nx * ny equispaced points in the (x1, y1, x2, y2) box and finding the resulting points with extremal coordinates; then adding some padding to take into account the finite sampling. As each sampling step covers a relative range of 1/nx or 1/ny, the padding is computed by expanding the span covered by the extremal coordinates by these fractions.
mpl_toolkits.axisartist.angle_helper.FormatterDMS   classmpl_toolkits.axisartist.angle_helper.FormatterDMS[source]
 
Bases: object   __call__(direction, factor, values)[source]
 
Call self as a function. 
   deg_mark='^{\\circ}'

   fmt_d='$%d^{\\circ}$'

   fmt_d_m='$%s%d^{\\circ}\\,%02d^{\\prime}$'

   fmt_d_m_partial='$%s%d^{\\circ}\\,%02d^{\\prime}\\,'

   fmt_d_ms='$%s%d^{\\circ}\\,%02d.%s^{\\prime}$'

   fmt_ds='$%d.%s^{\\circ}$'

   fmt_s_partial='%02d^{\\prime\\prime}$'

   fmt_ss_partial='%02d.%s^{\\prime\\prime}$'

   min_mark='^{\\prime}'

   sec_mark='^{\\prime\\prime}'

 
  Examples using mpl_toolkits.axisartist.angle_helper.FormatterDMS
 
   axis_direction demo   

   Curvilinear grid demo   

   mpl_toolkits.axisartist.floating_axes features   

   floating_axis demo   

   Simple Axis Pad
fmt_d_m='$%s%d^{\\circ}\\,%02d^{\\prime}$'
fmt_d_m_partial='$%s%d^{\\circ}\\,%02d^{\\prime}\\,'
fmt_d_ms='$%s%d^{\\circ}\\,%02d.%s^{\\prime}$'
fmt_ss_partial='%02d.%s^{\\prime\\prime}$'