doc_content
stringlengths
1
386k
doc_id
stringlengths
5
188
inverse(value)[source]
matplotlib._as_gen.matplotlib.colors.symlognorm#matplotlib.colors.SymLogNorm.inverse
matplotlib.colors.to_hex matplotlib.colors.to_hex(c, keep_alpha=False)[source] Convert c to a hex color. Parameters ccolor or numpy.ma.masked keep_alpha: bool, default: False If False, use the #rrggbb format, otherwise use #rrggbbaa. Returns str #rrggbb or #rrggbbaa hex color string
matplotlib._as_gen.matplotlib.colors.to_hex
matplotlib.colors.to_rgb matplotlib.colors.to_rgb(c)[source] Convert c to an RGB color, silently dropping the alpha channel. Examples using matplotlib.colors.to_rgb List of named colors
matplotlib._as_gen.matplotlib.colors.to_rgb
matplotlib.colors.to_rgba matplotlib.colors.to_rgba(c, alpha=None)[source] Convert c to an RGBA color. Parameters cMatplotlib color or np.ma.masked alphafloat, optional If alpha is given, force the alpha value of the returned RGBA tuple to alpha. If None, the alpha value from c is used. If c does not have a...
matplotlib._as_gen.matplotlib.colors.to_rgba
matplotlib.colors.to_rgba_array matplotlib.colors.to_rgba_array(c, alpha=None)[source] Convert c to a (n, 4) array of RGBA colors. Parameters cMatplotlib color or array of colors If c is a masked array, an ndarray is returned with a (0, 0, 0, 0) row for each masked value or row in c. alphafloat or sequence ...
matplotlib._as_gen.matplotlib.colors.to_rgba_array
matplotlib.colors.TwoSlopeNorm classmatplotlib.colors.TwoSlopeNorm(vcenter, vmin=None, vmax=None)[source] Bases: matplotlib.colors.Normalize Normalize data with a set center. Useful when mapping data with an unequal rates of change around a conceptual center, e.g., data that range from -2 to 4, with 0 as the midpoi...
matplotlib._as_gen.matplotlib.colors.twoslopenorm
__call__(value, clip=None)[source] Map value to the interval [0, 1]. The clip argument is unused.
matplotlib._as_gen.matplotlib.colors.twoslopenorm#matplotlib.colors.TwoSlopeNorm.__call__
autoscale_None(A)[source] Get vmin and vmax, and then clip at vcenter
matplotlib._as_gen.matplotlib.colors.twoslopenorm#matplotlib.colors.TwoSlopeNorm.autoscale_None
inverse(value)[source]
matplotlib._as_gen.matplotlib.colors.twoslopenorm#matplotlib.colors.TwoSlopeNorm.inverse
matplotlib.container classmatplotlib.container.BarContainer(*args, **kwargs)[source] Bases: matplotlib.container.Container Container for the artists of bar plots (e.g. created by Axes.bar). The container can be treated as a tuple of the patches themselves. Additionally, you can access these and further parameters b...
matplotlib.container_api
classmatplotlib.container.BarContainer(*args, **kwargs)[source] Bases: matplotlib.container.Container Container for the artists of bar plots (e.g. created by Axes.bar). The container can be treated as a tuple of the patches themselves. Additionally, you can access these and further parameters by the attributes. Attr...
matplotlib.container_api#matplotlib.container.BarContainer
classmatplotlib.container.Container(*args, **kwargs)[source] Bases: tuple Base class for containers. Containers are classes that collect semantically related Artists such as the bars of a bar plot. add_callback(func)[source] Add a callback function that will be called whenever one of the Artist's properties chang...
matplotlib.container_api#matplotlib.container.Container
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. Retu...
matplotlib.container_api#matplotlib.container.Container.add_callback
get_children()[source]
matplotlib.container_api#matplotlib.container.Container.get_children
get_label()[source] Return the label used for this artist in the legend.
matplotlib.container_api#matplotlib.container.Container.get_label
pchanged()[source] Call all of the registered callbacks. This function is triggered internally when a property is changed. See also add_callback remove_callback
matplotlib.container_api#matplotlib.container.Container.pchanged
remove()[source]
matplotlib.container_api#matplotlib.container.Container.remove
remove_callback(oid)[source] Remove a callback based on its observer id. See also add_callback
matplotlib.container_api#matplotlib.container.Container.remove_callback
set_label(s)[source] Set a label that will be displayed in the legend. Parameters sobject s will be converted to a string by calling str.
matplotlib.container_api#matplotlib.container.Container.set_label
classmatplotlib.container.ErrorbarContainer(*args, **kwargs)[source] Bases: matplotlib.container.Container Container for the artists of error bars (e.g. created by Axes.errorbar). The container can be treated as the lines tuple itself. Additionally, you can access these and further parameters by the attributes. Attr...
matplotlib.container_api#matplotlib.container.ErrorbarContainer
classmatplotlib.container.StemContainer(*args, **kwargs)[source] Bases: matplotlib.container.Container Container for the artists created in a Axes.stem() plot. The container can be treated like a namedtuple (markerline, stemlines, baseline). Attributes markerlineLine2D The artist of the markers at the stem head...
matplotlib.container_api#matplotlib.container.StemContainer
matplotlib.contour Classes to support contour plotting and labelling for the Axes class. classmatplotlib.contour.ClabelText(x=0, y=0, text='', color=None, verticalalignment='baseline', horizontalalignment='left', multialignment=None, fontproperties=None, rotation=None, linespacing=None, rotation_mode=None, usetex=Non...
matplotlib.contour_api
classmatplotlib.contour.ClabelText(x=0, y=0, text='', color=None, verticalalignment='baseline', horizontalalignment='left', multialignment=None, fontproperties=None, rotation=None, linespacing=None, rotation_mode=None, usetex=None, wrap=False, transform_rotates_text=False, *, parse_math=True, **kwargs)[source] Bases:...
matplotlib.contour_api#matplotlib.contour.ClabelText
get_rotation()[source] Return the text angle in degrees between 0 and 360.
matplotlib.contour_api#matplotlib.contour.ClabelText.get_rotation
set(*, agg_filter=<UNSET>, alpha=<UNSET>, animated=<UNSET>, backgroundcolor=<UNSET>, bbox=<UNSET>, clip_box=<UNSET>, clip_on=<UNSET>, clip_path=<UNSET>, color=<UNSET>, fontfamily=<UNSET>, fontproperties=<UNSET>, fontsize=<UNSET>, fontstretch=<UNSET>, fontstyle=<UNSET>, fontvariant=<UNSET>, fontweight=<UNSET>, gid=<UNSE...
matplotlib.contour_api#matplotlib.contour.ClabelText.set
classmatplotlib.contour.ContourLabeler[source] Bases: object Mixin to provide labelling capability to ContourSet. add_label(x, y, rotation, lev, cvalue)[source] Add contour label using Text class. add_label_clabeltext(x, y, rotation, lev, cvalue)[source] Add contour label using ClabelText class. add_lab...
matplotlib.contour_api#matplotlib.contour.ContourLabeler
add_label(x, y, rotation, lev, cvalue)[source] Add contour label using Text class.
matplotlib.contour_api#matplotlib.contour.ContourLabeler.add_label
add_label_clabeltext(x, y, rotation, lev, cvalue)[source] Add contour label using ClabelText class.
matplotlib.contour_api#matplotlib.contour.ContourLabeler.add_label_clabeltext
add_label_near(x, y, inline=True, inline_spacing=5, transform=None)[source] Add a label near the point (x, y). Parameters x, yfloat The approximate location of the label. inlinebool, default: True If True remove the segment of the contour beneath the label. inline_spacingint, default: 5 Space in pixels ...
matplotlib.contour_api#matplotlib.contour.ContourLabeler.add_label_near
calc_label_rot_and_inline(slc, ind, lw, lc=None, spacing=5)[source] Calculate the appropriate label rotation given the linecontour coordinates in screen units, the index of the label location and the label width. If lc is not None or empty, also break contours and compute inlining. spacing is the empty space to leave...
matplotlib.contour_api#matplotlib.contour.ContourLabeler.calc_label_rot_and_inline
clabel(levels=None, *, fontsize=None, inline=True, inline_spacing=5, fmt=None, colors=None, use_clabeltext=False, manual=False, rightside_up=True, zorder=None)[source] Label a contour plot. Adds labels to line contours in this ContourSet (which inherits from this mixin class). Parameters levelsarray-like, optiona...
matplotlib.contour_api#matplotlib.contour.ContourLabeler.clabel
get_label_coords(distances, XX, YY, ysize, lw)[source] [Deprecated] Return x, y, and the index of a label location. Labels are plotted at a location with the smallest deviation of the contour from a straight line unless there is another label nearby, in which case the next best place on the contour is picked up. If a...
matplotlib.contour_api#matplotlib.contour.ContourLabeler.get_label_coords
get_label_width(lev, fmt, fsize)[source] [Deprecated] Return the width of the label in points. Notes Deprecated since version 3.5.
matplotlib.contour_api#matplotlib.contour.ContourLabeler.get_label_width
get_text(lev, fmt)[source] Get the text of the label.
matplotlib.contour_api#matplotlib.contour.ContourLabeler.get_text
labels(inline, inline_spacing)[source]
matplotlib.contour_api#matplotlib.contour.ContourLabeler.labels
locate_label(linecontour, labelwidth)[source] Find good place to draw a label (relatively flat part of the contour).
matplotlib.contour_api#matplotlib.contour.ContourLabeler.locate_label
pop_label(index=- 1)[source] Defaults to removing last label, but any index can be supplied
matplotlib.contour_api#matplotlib.contour.ContourLabeler.pop_label
print_label(linecontour, labelwidth)[source] Return whether a contour is long enough to hold a label.
matplotlib.contour_api#matplotlib.contour.ContourLabeler.print_label
set_label_props(label, text, color)[source] Set the label properties - color, fontsize, text.
matplotlib.contour_api#matplotlib.contour.ContourLabeler.set_label_props
too_close(x, y, lw)[source] Return whether a label is already near this location.
matplotlib.contour_api#matplotlib.contour.ContourLabeler.too_close
classmatplotlib.contour.ContourSet(ax, *args, levels=None, filled=False, linewidths=None, linestyles=None, hatches=(None,), alpha=None, origin=None, extent=None, cmap=None, colors=None, norm=None, vmin=None, vmax=None, extend='neither', antialiased=None, nchunk=0, locator=None, transform=None, **kwargs)[source] Bases...
matplotlib.contour_api#matplotlib.contour.ContourSet
changed()[source] Call this whenever the mappable is changed to notify all the callbackSM listeners to the 'changed' signal.
matplotlib.contour_api#matplotlib.contour.ContourSet.changed
find_nearest_contour(x, y, indices=None, pixel=True)[source] Find the point in the contour plot that is closest to (x, y). Parameters x, yfloat The reference point. indiceslist of int or None, default: None Indices of contour levels to consider. If None (the default), all levels are considered. pixelbool,...
matplotlib.contour_api#matplotlib.contour.ContourSet.find_nearest_contour
get_alpha()[source] Return alpha to be applied to all ContourSet artists.
matplotlib.contour_api#matplotlib.contour.ContourSet.get_alpha
get_transform()[source] Return the Transform instance used by this ContourSet.
matplotlib.contour_api#matplotlib.contour.ContourSet.get_transform
legend_elements(variable_name='x', str_format=<class 'str'>)[source] Return a list of artists and labels suitable for passing through to legend which represent this ContourSet. The labels have the form "0 < x <= 1" stating the data ranges which the artists represent. Parameters variable_namestr The string used ...
matplotlib.contour_api#matplotlib.contour.ContourSet.legend_elements
set_alpha(alpha)[source] Set the alpha blending value for all ContourSet artists. alpha must be between 0 (transparent) and 1 (opaque).
matplotlib.contour_api#matplotlib.contour.ContourSet.set_alpha
classmatplotlib.contour.QuadContourSet(ax, *args, levels=None, filled=False, linewidths=None, linestyles=None, hatches=(None,), alpha=None, origin=None, extent=None, cmap=None, colors=None, norm=None, vmin=None, vmax=None, extend='neither', antialiased=None, nchunk=0, locator=None, transform=None, **kwargs)[source] B...
matplotlib.contour_api#matplotlib.contour.QuadContourSet
matplotlib.dates Matplotlib provides sophisticated date plotting capabilities, standing on the shoulders of python datetime and the add-on module dateutil. By default, Matplotlib uses the units machinery described in units to convert datetime.datetime, and numpy.datetime64 objects when plotted on a...
matplotlib.dates_api
classmatplotlib.dates.AutoDateFormatter(locator, tz=None, defaultfmt='%Y-%m-%d', *, usetex=None)[source] Bases: matplotlib.ticker.Formatter A Formatter which attempts to figure out the best format to use. This is most useful when used with the AutoDateLocator. AutoDateFormatter has a .scale dictionary that maps tick ...
matplotlib.dates_api#matplotlib.dates.AutoDateFormatter
classmatplotlib.dates.AutoDateLocator(tz=None, minticks=5, maxticks=None, interval_multiples=True)[source] Bases: matplotlib.dates.DateLocator On autoscale, this class picks the best DateLocator to set the view limits and the tick locations. Attributes intervalddict Mapping of tick frequencies to multiples allo...
matplotlib.dates_api#matplotlib.dates.AutoDateLocator
get_locator(dmin, dmax)[source] Pick the best locator based on a distance.
matplotlib.dates_api#matplotlib.dates.AutoDateLocator.get_locator
nonsingular(vmin, vmax)[source] Given the proposed upper and lower extent, adjust the range if it is too close to being singular (i.e. a range of ~0).
matplotlib.dates_api#matplotlib.dates.AutoDateLocator.nonsingular
tick_values(vmin, vmax)[source] Return the values of the located ticks given vmin and vmax. Note To get tick locations with the vmin and vmax values defined automatically for the associated axis simply call the Locator instance: >>> print(type(loc)) <type 'Locator'> >>> print(loc()) [1, 2, 3, 4]
matplotlib.dates_api#matplotlib.dates.AutoDateLocator.tick_values
classmatplotlib.dates.ConciseDateConverter(formats=None, zero_formats=None, offset_formats=None, show_offset=True, *, interval_multiples=True)[source] Bases: matplotlib.dates.DateConverter axisinfo(unit, axis)[source] Return the AxisInfo for unit. unit is a tzinfo instance or None. The axis argument is required b...
matplotlib.dates_api#matplotlib.dates.ConciseDateConverter
axisinfo(unit, axis)[source] Return the AxisInfo for unit. unit is a tzinfo instance or None. The axis argument is required but not used.
matplotlib.dates_api#matplotlib.dates.ConciseDateConverter.axisinfo
classmatplotlib.dates.ConciseDateFormatter(locator, tz=None, formats=None, offset_formats=None, zero_formats=None, show_offset=True, *, usetex=None)[source] Bases: matplotlib.ticker.Formatter A Formatter which attempts to figure out the best format to use for the date, and to make it as compact as possible, but still...
matplotlib.dates_api#matplotlib.dates.ConciseDateFormatter
format_data_short(value)[source] Return a short string version of the tick value. Defaults to the position-independent long value.
matplotlib.dates_api#matplotlib.dates.ConciseDateFormatter.format_data_short
format_ticks(values)[source] Return the tick labels for all the ticks at once.
matplotlib.dates_api#matplotlib.dates.ConciseDateFormatter.format_ticks
get_offset()[source]
matplotlib.dates_api#matplotlib.dates.ConciseDateFormatter.get_offset
matplotlib.dates.date2num(d)[source] Convert datetime objects to Matplotlib dates. Parameters ddatetime.datetime or numpy.datetime64 or sequences of these Returns float or sequence of floats Number of days since the epoch. See get_epoch for the epoch, which can be changed by rcParams["date.epoch"] (default:...
matplotlib.dates_api#matplotlib.dates.date2num
classmatplotlib.dates.DateConverter(*, interval_multiples=True)[source] Bases: matplotlib.units.ConversionInterface Converter for datetime.date and datetime.datetime data, or for date/time data represented as it would be converted by date2num. The 'unit' tag for such data is None or a tzinfo instance. axisinfo(unit...
matplotlib.dates_api#matplotlib.dates.DateConverter
axisinfo(unit, axis)[source] Return the AxisInfo for unit. unit is a tzinfo instance or None. The axis argument is required but not used.
matplotlib.dates_api#matplotlib.dates.DateConverter.axisinfo
staticconvert(value, unit, axis)[source] If value is not already a number or sequence of numbers, convert it with date2num. The unit and axis arguments are not used.
matplotlib.dates_api#matplotlib.dates.DateConverter.convert
staticdefault_units(x, axis)[source] Return the tzinfo instance of x or of its first element, or None
matplotlib.dates_api#matplotlib.dates.DateConverter.default_units
classmatplotlib.dates.DateFormatter(fmt, tz=None, *, usetex=None)[source] Bases: matplotlib.ticker.Formatter Format a tick (in days since the epoch) with a strftime format string. Parameters fmtstr strftime format string tzdatetime.tzinfo, default: rcParams["timezone"] (default: 'UTC') Ticks timezone. use...
matplotlib.dates_api#matplotlib.dates.DateFormatter
set_tzinfo(tz)[source]
matplotlib.dates_api#matplotlib.dates.DateFormatter.set_tzinfo
classmatplotlib.dates.DateLocator(tz=None)[source] Bases: matplotlib.ticker.Locator Determines the tick locations when plotting dates. This class is subclassed by other Locators and is not meant to be used on its own. Parameters tzdatetime.tzinfo datalim_to_dt()[source] Convert axis data interval to datet...
matplotlib.dates_api#matplotlib.dates.DateLocator
datalim_to_dt()[source] Convert axis data interval to datetime objects.
matplotlib.dates_api#matplotlib.dates.DateLocator.datalim_to_dt
hms0d={'byhour': 0, 'byminute': 0, 'bysecond': 0}
matplotlib.dates_api#matplotlib.dates.DateLocator.hms0d
nonsingular(vmin, vmax)[source] Given the proposed upper and lower extent, adjust the range if it is too close to being singular (i.e. a range of ~0).
matplotlib.dates_api#matplotlib.dates.DateLocator.nonsingular
set_tzinfo(tz)[source] Set time zone info.
matplotlib.dates_api#matplotlib.dates.DateLocator.set_tzinfo
viewlim_to_dt()[source] Convert the view interval to datetime objects.
matplotlib.dates_api#matplotlib.dates.DateLocator.viewlim_to_dt
matplotlib.dates.datestr2num(d, default=None)[source] Convert a date string to a datenum using dateutil.parser.parse. Parameters dstr or sequence of str The dates to convert. defaultdatetime.datetime, optional The default date to use when fields are missing in d.
matplotlib.dates_api#matplotlib.dates.datestr2num
classmatplotlib.dates.DayLocator(bymonthday=None, interval=1, tz=None)[source] Bases: matplotlib.dates.RRuleLocator Make ticks on occurrences of each day of the month. For example, 1, 15, 30. Mark every day in bymonthday; bymonthday can be an int or sequence. Default is to tick every day of the month: bymonthday=rang...
matplotlib.dates_api#matplotlib.dates.DayLocator
matplotlib.dates.drange(dstart, dend, delta)[source] Return a sequence of equally spaced Matplotlib dates. The dates start at dstart and reach up to, but not including dend. They are spaced by delta. Parameters dstart, denddatetime The date limits. deltadatetime.timedelta Spacing of the dates. Returns ...
matplotlib.dates_api#matplotlib.dates.drange
matplotlib.dates.epoch2num(e)[source] [Deprecated] Convert UNIX time to days since Matplotlib epoch. Parameters elist of floats Time in seconds since 1970-01-01. Returns numpy.array Time in days since Matplotlib epoch (see get_epoch()). Notes Deprecated since version 3.5.
matplotlib.dates_api#matplotlib.dates.epoch2num
matplotlib.dates.get_epoch()[source] Get the epoch used by dates. Returns epochstr String for the epoch (parsable by numpy.datetime64).
matplotlib.dates_api#matplotlib.dates.get_epoch
classmatplotlib.dates.HourLocator(byhour=None, interval=1, tz=None)[source] Bases: matplotlib.dates.RRuleLocator Make ticks on occurrences of each hour. Mark every hour in byhour; byhour can be an int or sequence. Default is to tick every hour: byhour=range(24) interval is the interval between each iteration. For exa...
matplotlib.dates_api#matplotlib.dates.HourLocator
classmatplotlib.dates.MicrosecondLocator(interval=1, tz=None)[source] Bases: matplotlib.dates.DateLocator Make ticks on regular intervals of one or more microsecond(s). Note By default, Matplotlib uses a floating point representation of time in days since the epoch, so plotting data with microsecond time resolution ...
matplotlib.dates_api#matplotlib.dates.MicrosecondLocator
set_axis(axis)[source]
matplotlib.dates_api#matplotlib.dates.MicrosecondLocator.set_axis
set_data_interval(vmin, vmax)[source] [Deprecated] Notes Deprecated since version 3.5:
matplotlib.dates_api#matplotlib.dates.MicrosecondLocator.set_data_interval
set_view_interval(vmin, vmax)[source] [Deprecated] Notes Deprecated since version 3.5:
matplotlib.dates_api#matplotlib.dates.MicrosecondLocator.set_view_interval
tick_values(vmin, vmax)[source] Return the values of the located ticks given vmin and vmax. Note To get tick locations with the vmin and vmax values defined automatically for the associated axis simply call the Locator instance: >>> print(type(loc)) <type 'Locator'> >>> print(loc()) [1, 2, 3, 4]
matplotlib.dates_api#matplotlib.dates.MicrosecondLocator.tick_values
classmatplotlib.dates.MinuteLocator(byminute=None, interval=1, tz=None)[source] Bases: matplotlib.dates.RRuleLocator Make ticks on occurrences of each minute. Mark every minute in byminute; byminute can be an int or sequence. Default is to tick every minute: byminute=range(60) interval is the interval between each it...
matplotlib.dates_api#matplotlib.dates.MinuteLocator
classmatplotlib.dates.MonthLocator(bymonth=None, bymonthday=1, interval=1, tz=None)[source] Bases: matplotlib.dates.RRuleLocator Make ticks on occurrences of each month, e.g., 1, 3, 12. Mark every month in bymonth; bymonth can be an int or sequence. Default is range(1, 13), i.e. every month. interval is the interval ...
matplotlib.dates_api#matplotlib.dates.MonthLocator
matplotlib.dates.num2date(x, tz=None)[source] Convert Matplotlib dates to datetime objects. Parameters xfloat or sequence of floats Number of days (fraction part represents hours, minutes, seconds) since the epoch. See get_epoch for the epoch, which can be changed by rcParams["date.epoch"] (default: '1970-01-01...
matplotlib.dates_api#matplotlib.dates.num2date
matplotlib.dates.num2epoch(d)[source] [Deprecated] Convert days since Matplotlib epoch to UNIX time. Parameters dlist of floats Time in days since Matplotlib epoch (see get_epoch()). Returns numpy.array Time in seconds since 1970-01-01. Notes Deprecated since version 3.5.
matplotlib.dates_api#matplotlib.dates.num2epoch
matplotlib.dates.num2timedelta(x)[source] Convert number of days to a timedelta object. If x is a sequence, a sequence of timedelta objects will be returned. Parameters xfloat, sequence of floats Number of days. The fraction part represents hours, minutes, seconds. Returns datetime.timedelta or list[datet...
matplotlib.dates_api#matplotlib.dates.num2timedelta
classmatplotlib.dates.relativedelta(dt1=None, dt2=None, years=0, months=0, days=0, leapdays=0, weeks=0, hours=0, minutes=0, seconds=0, microseconds=0, year=None, month=None, day=None, weekday=None, yearday=None, nlyearday=None, hour=None, minute=None, second=None, microsecond=None) Bases: object The relativedelta typ...
matplotlib.dates_api#matplotlib.dates.relativedelta
normalized() Return a version of this object represented entirely using integer values for the relative attributes. >>> relativedelta(days=1.5, hours=2).normalized() relativedelta(days=+1, hours=+14) Returns Returns a dateutil.relativedelta.relativedelta object.
matplotlib.dates_api#matplotlib.dates.relativedelta.normalized
classmatplotlib.dates.rrule(freq, dtstart=None, interval=1, wkst=None, count=None, until=None, bysetpos=None, bymonth=None, bymonthday=None, byyearday=None, byeaster=None, byweekno=None, byweekday=None, byhour=None, byminute=None, bysecond=None, cache=False) Bases: dateutil.rrule.rrulebase That's the base of the rrul...
matplotlib.dates_api#matplotlib.dates.rrule
replace(**kwargs) Return new rrule with same attributes except for those attributes given new values by whichever keyword arguments are specified.
matplotlib.dates_api#matplotlib.dates.rrule.replace
classmatplotlib.dates.RRuleLocator(o, tz=None)[source] Bases: matplotlib.dates.DateLocator Parameters tzdatetime.tzinfo staticget_unit_generic(freq)[source] tick_values(vmin, vmax)[source] Return the values of the located ticks given vmin and vmax. Note To get tick locations with the vmin and vmax va...
matplotlib.dates_api#matplotlib.dates.RRuleLocator
staticget_unit_generic(freq)[source]
matplotlib.dates_api#matplotlib.dates.RRuleLocator.get_unit_generic
tick_values(vmin, vmax)[source] Return the values of the located ticks given vmin and vmax. Note To get tick locations with the vmin and vmax values defined automatically for the associated axis simply call the Locator instance: >>> print(type(loc)) <type 'Locator'> >>> print(loc()) [1, 2, 3, 4]
matplotlib.dates_api#matplotlib.dates.RRuleLocator.tick_values
classmatplotlib.dates.SecondLocator(bysecond=None, interval=1, tz=None)[source] Bases: matplotlib.dates.RRuleLocator Make ticks on occurrences of each second. Mark every second in bysecond; bysecond can be an int or sequence. Default is to tick every second: bysecond = range(60) interval is the interval between each ...
matplotlib.dates_api#matplotlib.dates.SecondLocator
matplotlib.dates.set_epoch(epoch)[source] Set the epoch (origin for dates) for datetime calculations. The default epoch is rcParams["dates.epoch"] (by default 1970-01-01T00:00). If microsecond accuracy is desired, the date being plotted needs to be within approximately 70 years of the epoch. Matplotlib internally rep...
matplotlib.dates_api#matplotlib.dates.set_epoch
classmatplotlib.dates.WeekdayLocator(byweekday=1, interval=1, tz=None)[source] Bases: matplotlib.dates.RRuleLocator Make ticks on occurrences of each weekday. Mark every weekday in byweekday; byweekday can be a number or sequence. Elements of byweekday must be one of MO, TU, WE, TH, FR, SA, SU, the constants from dat...
matplotlib.dates_api#matplotlib.dates.WeekdayLocator
classmatplotlib.dates.YearLocator(base=1, month=1, day=1, tz=None)[source] Bases: matplotlib.dates.RRuleLocator Make ticks on a given day of each year that is a multiple of base. Examples: # Tick every year on Jan 1st locator = YearLocator() # Tick every 5 years on July 4th locator = YearLocator(5, month=7, day=4) ...
matplotlib.dates_api#matplotlib.dates.YearLocator