neulab/docprompting-conala huggingface dataset:
mpl_toolkits.axisartist.floating_axes.ExtremeFinderFixed   classmpl_toolkits.axisartist.floating_axes.ExtremeFinderFixed(extremes)[source]
 
Bases: mpl_toolkits.axisartist.grid_finder.ExtremeFinderSimple This subclass always returns the same bounding box.  Parameters 
 
extremes(float, float, float, float)


The bounding box that this helper always returns.       __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.floating_axes.FixedAxisArtistHelper   classmpl_toolkits.axisartist.floating_axes.FixedAxisArtistHelper(grid_helper, side, nth_coord_ticks=None)[source]
 
Bases: mpl_toolkits.axisartist.grid_helper_curvelinear.FloatingAxisArtistHelper  nth_coord = along which coordinate value varies.

nth_coord = 0 -> x axis, nth_coord = 1 -> y axis     get_line(axes)[source]

   get_tick_iterators(axes)[source]
 
tick_loc, tick_angle, tick_label, (optionally) tick_label 
   update_lim(axes)[source]
get_tick_iterators(axes)[source]
 
tick_loc, tick_angle, tick_label, (optionally) tick_label
mpl_toolkits.axisartist.floating_axes.FloatingAxes   mpl_toolkits.axisartist.floating_axes.FloatingAxes[source]
 
alias of mpl_toolkits.axisartist.floating_axes.FloatingAxesHostAxes
mpl_toolkits.axisartist.floating_axes.floatingaxes_class_factory   mpl_toolkits.axisartist.floating_axes.floatingaxes_class_factory(axes_class)[source]
mpl_toolkits.axisartist.floating_axes.FloatingAxesBase   classmpl_toolkits.axisartist.floating_axes.FloatingAxesBase(*args, **kwargs)[source]
 
Bases: object   adjust_axes_lim()[source]

   cla()[source]

 
  Examples using mpl_toolkits.axisartist.floating_axes.FloatingAxesBase
 
   mpl_toolkits.axisartist.floating_axes features
mpl_toolkits.axisartist.floating_axes.FloatingAxisArtistHelper   classmpl_toolkits.axisartist.floating_axes.FloatingAxisArtistHelper(grid_helper, nth_coord, value, axis_direction=None)[source]
 
Bases: mpl_toolkits.axisartist.grid_helper_curvelinear.FloatingAxisArtistHelper  nth_coord = along which coordinate value varies.

nth_coord = 0 -> x axis, nth_coord = 1 -> y axis
mpl_toolkits.axisartist.floating_axes.GridHelperCurveLinear   classmpl_toolkits.axisartist.floating_axes.GridHelperCurveLinear(aux_trans, extremes, grid_locator1=None, grid_locator2=None, tick_formatter1=None, tick_formatter2=None)[source]
 
Bases: mpl_toolkits.axisartist.grid_helper_curvelinear.GridHelperCurveLinear aux_trans : a transform from the source (curved) coordinate to target (rectilinear) coordinate. An instance of MPL's Transform (inverse transform should be defined) or a tuple of two callable objects which defines the transform and its inverse. The callables need take two arguments of array of source coordinates and should return two target coordinates. e.g., x2, y2 = trans(x1, y1)   get_boundary()[source]
 
[Deprecated] Return (N, 2) array of (x, y) coordinate of the boundary. Notes  Deprecated since version 3.5.  
   get_data_boundary(side)[source]
 
Return v=0, nth=1. 
   get_gridlines(which='major', axis='both')[source]
 
Return list of grid lines as a list of paths (list of points). which : "major" or "minor" axis : "both", "x" or "y" 
   new_fixed_axis(loc, nth_coord=None, axis_direction=None, offset=None, axes=None)[source]

 
  Examples using mpl_toolkits.axisartist.floating_axes.GridHelperCurveLinear
 
   mpl_toolkits.axisartist.floating_axes features
get_boundary()[source]
 
[Deprecated] Return (N, 2) array of (x, y) coordinate of the boundary. Notes  Deprecated since version 3.5.
get_data_boundary(side)[source]
 
Return v=0, nth=1.
get_gridlines(which='major', axis='both')[source]
 
Return list of grid lines as a list of paths (list of points). which : "major" or "minor" axis : "both", "x" or "y"
mpl_toolkits.axisartist.grid_finder  Classes  
DictFormatter(format_dict[, formatter]) format_dict : dictionary for format strings to be used.  
ExtremeFinderSimple(nx, ny) A helper class to figure out the range of grid lines that need to be drawn.  
FixedLocator(locs)   
FormatterPrettyPrint([useMathText])   
GridFinder(transform[, extreme_finder, ...]) transform : transform from the image coordinate (which will be the transData of the axes to the world coordinate.  
MaxNLocator([nbins, steps, trim, integer, ...]) 
 Parameters
mpl_toolkits.axisartist.grid_finder.DictFormatter   classmpl_toolkits.axisartist.grid_finder.DictFormatter(format_dict, formatter=None)[source]
 
Bases: object format_dict : dictionary for format strings to be used. formatter : fall-back formatter   __call__(direction, factor, values)[source]
 
factor is ignored if value is found in the dictionary 
 
  Examples using mpl_toolkits.axisartist.grid_finder.DictFormatter
 
   mpl_toolkits.axisartist.floating_axes features
__call__(direction, factor, values)[source]
 
factor is ignored if value is found in the dictionary
mpl_toolkits.axisartist.grid_finder.ExtremeFinderSimple   classmpl_toolkits.axisartist.grid_finder.ExtremeFinderSimple(nx, ny)[source]
 
Bases: object A helper class to figure out the range of grid lines that need to be drawn.  Parameters 
 
nx, nyint


The number of samples in each 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.grid_finder.ExtremeFinderSimple
 
   axis_direction demo   

   Curvilinear grid demo   

   Demo CurveLinear Grid2   

   floating_axis demo   

   Simple Axis Pad
mpl_toolkits.axisartist.grid_finder.FixedLocator   classmpl_toolkits.axisartist.grid_finder.FixedLocator(locs)[source]
 
Bases: object   __call__(v1, v2)[source]
 
Call self as a function. 
 
  Examples using mpl_toolkits.axisartist.grid_finder.FixedLocator
 
   mpl_toolkits.axisartist.floating_axes features
mpl_toolkits.axisartist.grid_finder.FormatterPrettyPrint   classmpl_toolkits.axisartist.grid_finder.FormatterPrettyPrint(useMathText=True)[source]
 
Bases: object   __call__(direction, factor, values)[source]
 
Call self as a function.
mpl_toolkits.axisartist.grid_finder.GridFinder   classmpl_toolkits.axisartist.grid_finder.GridFinder(transform, extreme_finder=None, grid_locator1=None, grid_locator2=None, tick_formatter1=None, tick_formatter2=None)[source]
 
Bases: object transform : transform from the image coordinate (which will be the transData of the axes to the world coordinate. or transform = (transform_xy, inv_transform_xy) locator1, locator2 : grid locator for 1st and 2nd axis.   get_grid_info(x1, y1, x2, y2)[source]
 
 lon_values, lat_valueslist of grid values. if integer is given,


rough number of grids in each direction.   
   get_transform()[source]

   inv_transform_xy(x, y)[source]

   set_transform(aux_trans)[source]

   transform_xy(x, y)[source]

   update(**kw)[source]

   update_transform(aux_trans)[source]
get_grid_info(x1, y1, x2, y2)[source]
 
 lon_values, lat_valueslist of grid values. if integer is given,


rough number of grids in each direction.
mpl_toolkits.axisartist.grid_finder.MaxNLocator   classmpl_toolkits.axisartist.grid_finder.MaxNLocator(nbins=10, steps=None, trim=True, integer=False, symmetric=False, prune=None)[source]
 
Bases: matplotlib.ticker.MaxNLocator  Parameters 
 
nbinsint or 'auto', default: 10


Maximum number of intervals; one less than max number of ticks. If the string 'auto', the number of bins will be automatically determined based on the length of the axis.  
stepsarray-like, optional


Sequence of nice numbers starting with 1 and ending with 10; e.g., [1, 2, 4, 5, 10], where the values are acceptable tick multiples. i.e. for the example, 20, 40, 60 would be an acceptable set of ticks, as would 0.4, 0.6, 0.8, because they are multiples of 2. However, 30, 60, 90 would not be allowed because 3 does not appear in the list of steps.  
integerbool, default: False


If True, ticks will take only integer values, provided at least min_n_ticks integers are found within the view limits.  
symmetricbool, default: False


If True, autoscaling will result in a range symmetric about zero.  
prune{'lower', 'upper', 'both', None}, default: None


Remove edge ticks -- useful for stacked or ganged plots where the upper tick of one axes overlaps with the lower tick of the axes above it, primarily when rcParams["axes.autolimit_mode"] (default: 'data') is 'round_numbers'. If prune=='lower', the smallest tick will be removed. If prune == 'upper', the largest tick will be removed. If prune == 'both', the largest and smallest ticks will be removed. If prune is None, no ticks will be removed.  
min_n_ticksint, default: 2


Relax nbins and integer constraints if necessary to obtain this minimum number of ticks.       __call__(v1, v2)[source]
 
Return the locations of the ticks. 
 
  Examples using mpl_toolkits.axisartist.grid_finder.MaxNLocator
 
   axis_direction demo   

   Demo CurveLinear Grid2   

   mpl_toolkits.axisartist.floating_axes features   

   Simple Axis Pad
__call__(v1, v2)[source]
 
Return the locations of the ticks.
mpl_toolkits.axisartist.grid_helper_curvelinear An experimental support for curvilinear grid.  Classes  
FixedAxisArtistHelper(grid_helper, side[, ...]) Helper class for a fixed axis.  
FloatingAxisArtistHelper(grid_helper, ...[, ...]) nth_coord = along which coordinate value varies.  
GridHelperCurveLinear(aux_trans[, ...]) aux_trans : a transform from the source (curved) coordinate to target (rectilinear) coordinate.
mpl_toolkits.axisartist.grid_helper_curvelinear.FixedAxisArtistHelper   classmpl_toolkits.axisartist.grid_helper_curvelinear.FixedAxisArtistHelper(grid_helper, side, nth_coord_ticks=None)[source]
 
Bases: mpl_toolkits.axisartist.axislines.AxisArtistHelper.Fixed Helper class for a fixed axis.  nth_coord = along which coordinate value varies.

nth_coord = 0 -> x axis, nth_coord = 1 -> y axis     change_tick_coord(coord_number=None)[source]
 
[Deprecated] Notes  Deprecated since version 3.5:   
   get_tick_iterators(axes)[source]
 
tick_loc, tick_angle, tick_label 
   get_tick_transform(axes)[source]

   update_lim(axes)[source]
change_tick_coord(coord_number=None)[source]
 
[Deprecated] Notes  Deprecated since version 3.5:
mpl_toolkits.axisartist.grid_helper_curvelinear.FloatingAxisArtistHelper   classmpl_toolkits.axisartist.grid_helper_curvelinear.FloatingAxisArtistHelper(grid_helper, nth_coord, value, axis_direction=None)[source]
 
Bases: mpl_toolkits.axisartist.axislines.AxisArtistHelper.Floating  nth_coord = along which coordinate value varies.

nth_coord = 0 -> x axis, nth_coord = 1 -> y axis     get_axislabel_pos_angle(axes)[source]

   get_axislabel_transform(axes)[source]

   get_line(axes)[source]

   get_line_transform(axes)[source]

   get_tick_iterators(axes)[source]
 
tick_loc, tick_angle, tick_label, (optionally) tick_label 
   get_tick_transform(axes)[source]

   propertygrid_info[source]

   set_extremes(e1, e2)[source]

   update_lim(axes)[source]
mpl_toolkits.axisartist.grid_helper_curvelinear.GridHelperCurveLinear   classmpl_toolkits.axisartist.grid_helper_curvelinear.GridHelperCurveLinear(aux_trans, extreme_finder=None, grid_locator1=None, grid_locator2=None, tick_formatter1=None, tick_formatter2=None)[source]
 
Bases: mpl_toolkits.axisartist.axislines.GridHelperBase aux_trans : a transform from the source (curved) coordinate to target (rectilinear) coordinate. An instance of MPL's Transform (inverse transform should be defined) or a tuple of two callable objects which defines the transform and its inverse. The callables need take two arguments of array of source coordinates and should return two target coordinates. e.g., x2, y2 = trans(x1, y1)   get_gridlines(which='major', axis='both')[source]
 
Return list of grid lines as a list of paths (list of points). which : "major" or "minor" axis : "both", "x" or "y" 
   get_tick_iterator(nth_coord, axis_side, minor=False)[source]

   propertygrid_info[source]

   new_fixed_axis(loc, nth_coord=None, axis_direction=None, offset=None, axes=None)[source]

   new_floating_axis(nth_coord, value, axes=None, axis_direction='bottom')[source]

   update_grid_finder(aux_trans=None, **kw)[source]
new_floating_axis(nth_coord, value, axes=None, axis_direction='bottom')[source]
matplotlib.backend_bases.button_press_handler(event, canvas=None, toolbar=None)[source]
 
The default Matplotlib button actions for extra mouse buttons. Parameters are as for key_press_handler, except that event is a MouseEvent.
classmatplotlib.backend_bases.CloseEvent(name, canvas, guiEvent=None)[source]
 
Bases: matplotlib.backend_bases.Event An event triggered by a figure being closed.
classmatplotlib.backend_bases.DrawEvent(name, canvas, renderer)[source]
 
Bases: matplotlib.backend_bases.Event An event triggered by a draw operation on the canvas. In most backends, callbacks subscribed to this event will be fired after the rendering is complete but before the screen is updated. Any extra artists drawn to the canvas's renderer will be reflected without an explicit call to blit.  Warning Calling canvas.draw and canvas.blit in these callbacks may not be safe with all backends and may cause infinite recursion.  A DrawEvent has a number of special attributes in addition to those defined by the parent Event class.  Attributes 
 
rendererRendererBase


The renderer for the draw event.
classmatplotlib.backend_bases.Event(name, canvas, guiEvent=None)[source]
 
Bases: object A Matplotlib event. The following attributes are defined and shown with their default values. Subclasses may define additional attributes.  Attributes 
 
namestr


The event name.  
canvasFigureCanvasBase


The backend-specific canvas instance generating the event.  guiEvent

The GUI event that triggered the Matplotlib event.
blit(bbox=None)[source]
 
Blit the canvas in bbox (default entire canvas).
button_press_event(x, y, button, dblclick=False, guiEvent=None)[source]
 
Callback processing for mouse button press events. Backend derived classes should call this function on any mouse button press. (x, y) are the canvas coords ((0, 0) is lower left). button and key are as defined in MouseEvent. This method will call all functions connected to the 'button_press_event' with a MouseEvent instance.
button_release_event(x, y, button, guiEvent=None)[source]
 
Callback processing for mouse button release events. Backend derived classes should call this function on any mouse button release. This method will call all functions connected to the 'button_release_event' with a MouseEvent instance.  Parameters 
 
xfloat


The canvas coordinates where 0=left.  
yfloat


The canvas coordinates where 0=bottom.  guiEvent

The native UI event that generated the Matplotlib event.
close_event(guiEvent=None)[source]
 
Pass a CloseEvent to all functions connected to close_event.
draw(*args, **kwargs)[source]
 
Render the Figure. It is important that this method actually walk the artist tree even if not output is produced because this will trigger deferred work (like computing limits auto-limits and tick values) that users may want access to before saving to disk.
draw_event(renderer)[source]
 
Pass a DrawEvent to all functions connected to draw_event.
draw_idle(*args, **kwargs)[source]
 
Request a widget redraw once control returns to the GUI event loop. Even if multiple calls to draw_idle occur before control returns to the GUI event loop, the figure will only be rendered once. Notes Backends may choose to override the method and implement their own strategy to prevent multiple renderings.
enter_notify_event(guiEvent=None, xy=None)[source]
 
Callback processing for the mouse cursor entering the canvas. Backend derived classes should call this function when entering canvas.  Parameters 
 guiEvent

The native UI event that generated the Matplotlib event.  
xy(float, float)


The coordinate location of the pointer when the canvas is entered.
events=['resize_event', 'draw_event', 'key_press_event', 'key_release_event', 'button_press_event', 'button_release_event', 'scroll_event', 'motion_notify_event', 'pick_event', 'figure_enter_event', 'figure_leave_event', 'axes_enter_event', 'axes_leave_event', 'close_event']
filetypes={'eps': 'Encapsulated Postscript', 'jpeg': 'Joint Photographic Experts Group', 'jpg': 'Joint Photographic Experts Group', 'pdf': 'Portable Document Format', 'pgf': 'PGF code for LaTeX', 'png': 'Portable Network Graphics', 'ps': 'Postscript', 'raw': 'Raw RGBA bitmap', 'rgba': 'Raw RGBA bitmap', 'svg': 'Scalable Vector Graphics', 'svgz': 'Scalable Vector Graphics', 'tif': 'Tagged Image File Format', 'tiff': 'Tagged Image File Format'}
flush_events()[source]
 
Flush the GUI events for the figure. Interactive backends need to reimplement this method.
get_default_filename()[source]
 
Return a string, which includes extension, suitable for use as a default filename.
classmethodget_default_filetype()[source]
 
Return the default savefig file format as specified in rcParams["savefig.format"] (default: 'png'). The returned string does not include a period. This method is overridden in backends that only support a single file type.
classmethodget_supported_filetypes()[source]
 
Return dict of savefig file formats supported by this backend.
classmethodget_supported_filetypes_grouped()[source]
 
Return a dict of savefig file formats supported by this backend, where the keys are a file type name, such as 'Joint Photographic Experts Group', and the values are a list of filename extensions used for that filetype, such as ['jpg', 'jpeg'].
get_width_height(*, physical=False)[source]
 
Return the figure width and height in integral points or pixels. When the figure is used on High DPI screens (and the backend supports it), the truncation to integers occurs after scaling by the device pixel ratio.  Parameters 
 
physicalbool, default: False


Whether to return true physical pixels or logical pixels. Physical pixels may be used by backends that support HiDPI, but still configure the canvas using its actual size.    Returns 
 
width, heightint


The size of the figure, in points or pixels, depending on the backend.
get_window_title()[source]
 
[Deprecated] Return the title text of the window containing the figure, or None if there is no window (e.g., a PS backend). Notes  Deprecated since version 3.4.
grab_mouse(ax)[source]
 
Set the child Axes which is grabbing the mouse events. Usually called by the widgets themselves. It is an error to call this if the mouse is already grabbed by another axes.
inaxes(xy)[source]
 
Return the topmost visible Axes containing the point xy.  Parameters 
 
xy(float, float)


(x, y) pixel positions from left/bottom of the canvas.    Returns 
 
Axes or None

The topmost visible axes containing the point, or None if no axes.
is_saving()[source]
 
Return whether the renderer is in the process of saving to a file, rather than rendering for an on-screen buffer.
key_press_event(key, guiEvent=None)[source]
 
Pass a KeyEvent to all functions connected to key_press_event.
key_release_event(key, guiEvent=None)[source]
 
Pass a KeyEvent to all functions connected to key_release_event.
leave_notify_event(guiEvent=None)[source]
 
Callback processing for the mouse cursor leaving the canvas. Backend derived classes should call this function when leaving canvas.  Parameters 
 guiEvent

The native UI event that generated the Matplotlib event.
motion_notify_event(x, y, guiEvent=None)[source]
 
Callback processing for mouse movement events. Backend derived classes should call this function on any motion-notify-event. This method will call all functions connected to the 'motion_notify_event' with a MouseEvent instance.  Parameters 
 
xfloat


The canvas coordinates where 0=left.  
yfloat


The canvas coordinates where 0=bottom.  guiEvent

The native UI event that generated the Matplotlib event.
mpl_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)
mpl_disconnect(cid)[source]
 
Disconnect the callback with id cid. Examples cid = canvas.mpl_connect('button_press_event', on_press)
# ... later
canvas.mpl_disconnect(cid)
new_timer(interval=None, callbacks=None)[source]
 
Create a new backend-specific subclass of Timer. This is useful for getting periodic events through the backend's native event loop. Implemented only for backends with GUIs.  Parameters 
 
intervalint


Timer interval in milliseconds.  
callbackslist[tuple[callable, tuple, dict]]


Sequence of (func, args, kwargs) where func(*args, **kwargs) will be executed by the timer every interval. Callbacks which return False or 0 will be removed from the timer.     Examples >>> timer = fig.canvas.new_timer(callbacks=[(f1, (1,), {'a': 3})])
pick_event(mouseevent, artist, **kwargs)[source]
 
Callback processing for pick events. This method will be called by artists who are picked and will fire off PickEvent callbacks registered listeners. Note that artists are not pickable by default (see Artist.set_picker).