This document provides a reference for the following Figure
class
objects:
Plot |
An extension of the core matplotlib Figure |
TimeSeriesPlot |
Figure for displaying a TimeSeries . |
FrequencySeriesPlot |
Figure for displaying a FrequencySeries |
SpectrogramPlot |
Figure for displaying a Spectrogram . |
SegmentPlot |
Plot for displaying a DataQualityFlag |
EventTablePlot |
Figure for displaying a EventTable |
BodePlot |
A Plot class for visualising transfer functions |
and the following Axes
class
objects:
Axes |
An extension of the core matplotlib Axes . |
TimeSeriesAxes |
Custom Axes for a TimeSeriesPlot . |
FrequencySeriesAxes |
Custom Axes for a FrequencySeriesPlot . |
SegmentAxes |
Custom Axes for a SegmentPlot . |
EventTableAxes |
Custom Axes for an ~gwpy.plotter.EventTablePlot`. |
Figure
objects¶Each of the below classes represents a figure object; for brevity inherited methods and attributes are not documented here, please follow links to the parent classes for documentation of available methods and attributes.
gwpy.plotter.
Plot
(*args, **kwargs)[source]¶Bases: matplotlib.figure.Figure
An extension of the core matplotlib Figure
The Plot
provides a number of methods to simplify generating
figures from GWpy data objects, and modifying them on-the-fly in
interactive mode.
add_array
(*args, **kwargs)[source]¶Add a Array
to this plot
Parameters: | array :
projection :
ax : newax :
**kwargs
|
---|---|
Returns: | artist :
|
add_colorbar
(*args, **kwargs)[source]¶Add a colorbar to the current Plot
A colorbar must be associated with an Axes
on this Plot
,
and an existing mappable element (e.g. an image) (if visible=True
).
Parameters: | mappable : matplotlib data collection
ax :
location :
width :
pad :
log :
label :
clim : pair of
visible :
**kwargs
|
---|---|
Returns: | cbar :
|
Examples
>>> import numpy
>>> from gwpy.plotter import Plot
To plot a simple image and add a colorbar:
>>> plot = Plot()
>>> ax = plot.gca()
>>> ax.imshow(numpy.random.randn(120).reshape((10, 12)))
>>> plot.add_colorbar(label='Value')
>>> plot.show()
(png)
add_dataqualityflag
(flag, projection=None, ax=None, newax=False, sharex=None, sharey=None, **kwargs)[source]¶Add a DataQualityFlag
to this plot
Parameters: | flag :
projection :
ax : newax :
**kwargs
|
---|---|
Returns: | collection :
|
add_frequencyseries
(*args, **kwargs)[source]¶Add a FrequencySeries
trace to this plot
Parameters: | spectrum :
ax : newax :
**kwargs
|
---|---|
Returns: | line :
|
add_image
(*args, **kwargs)[source]¶Add a 2-D image to this plot
Parameters: | image :
**kwargs
|
---|---|
Returns: | image :
|
add_legend
(*args, **kwargs)[source]¶Add a legend to this Plot
on the most favourable Axes
All non-keyword args
and kwargs
are passed directly to the
legend()
generator
Returns: | legend :
|
---|
add_line
(*args, **kwargs)[source]¶Add a line to the current plot
Parameters: | x : array-like
y : array-like
projection :
ax : newax :
**kwargs
|
---|---|
Returns: | line :
|
add_scatter
(*args, **kwargs)[source]¶Add a set or points to the current plot
Parameters: | x : array-like
y : array-like
projection :
ax : newax :
**kwargs.
|
---|---|
Returns: | collection :
|
add_spectrogram
(*args, **kwargs)[source]¶Add a Spectrogram
to this plot
Parameters: | spectrogram :
ax : newax :
**kwargs
|
---|---|
Returns: | qm :
|
add_subplot
(*args, **kwargs)[source]¶Add a subplot.
Parameters: | *args
projection : [‘aitoff’ | ‘hammer’ | ‘lambert’ | ‘mollweide’ | ‘polar’ | ‘rectilinear’], optional
polar : boolean, optional
**kwargs
|
---|---|
Returns: | axes : Axes
|
See also
matplotlib.pyplot.subplot
Notes
If the figure already has a subplot with key (args, kwargs) then it will simply make that subplot current and return it. This behavior is deprecated.
Examples
fig.add_subplot(111)
# equivalent but more general
fig.add_subplot(1, 1, 1)
# add subplot with red background
fig.add_subplot(212, facecolor='r')
# add a polar subplot
fig.add_subplot(111, projection='polar')
# add Subplot instance sub
fig.add_subplot(sub)
add_timeseries
(*args, **kwargs)[source]¶Add a TimeSeries
trace to this plot
Parameters: | timeseries :
ax : newax :
**kwargs
|
---|---|
Returns: | line :
|
gca
(*args, **kwargs)[source]¶Get the current axes, creating one if necessary
The following kwargs are supported for ensuring the returned axes adheres to the given projection etc., and for axes creation if the active axes does not exist:
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: float (0.0 transparent through 1.0 opaque) anchor: [ ‘C’ | ‘SW’ | ‘S’ | ‘SE’ | ‘E’ | ‘NE’ | ‘N’ | ‘NW’ | ‘W’ ] animated: bool aspect: unknown autoscale_on: bool autoscalex_on: bool autoscaley_on: bool axes_locator: a callable object which takes an axes instance and renderer and returns a bbox. axisbelow: [ bool | ‘line’ ] clip_box: aBbox
instance clip_on: bool clip_path: [(Path
,Transform
) |Patch
| None] contains: a callable function facecolor: color fc: color figure:Figure
frame_on: bool gid: an id string label: object navigate: bool navigate_mode: unknown path_effects:AbstractPathEffect
picker: [None | bool | float | callable] position: unknown rasterization_zorder: float or None rasterized: bool or None sketch_params: (scale: float, length: float, randomness: float) snap: bool or None title: unknown transform:Transform
url: a url string visible: bool xbound: (lower: float, upper: float) xlabel: unknown xlim: (left: float, right: float) xmargin: float greater than -0.5 xscale: [ ‘linear’ | ‘log’ | ‘symlog’ | ‘logit’ | … ] xticklabels: list of string labels xticks: list of tick locations. ybound: (lower: float, upper: float) ylabel: unknown ylim: (bottom: float, top: float) ymargin: float greater than -0.5 yscale: [ ‘linear’ | ‘log’ | ‘symlog’ | ‘logit’ | … ] yticklabels: list of string labels yticks: list of tick locations. zorder: float
get_axes
(projection=None)[source]¶Find all Axes
, optionally matching the given projection
Parameters: | projection :
|
---|---|
Returns: |
get_title
(*args, **kwargs)[source]¶Get an axes title.
Get one of the three available axes titles. The available titles are positioned above the axes in the center, flush with the left edge, and flush with the right edge.
Parameters: | loc : {‘center’, ‘left’, ‘right’}, str, optional
|
---|---|
Returns: | title : str
|
get_xlim
(*args, **kwargs)[source]¶Get the x-axis range
Returns: | xlimits : tuple
|
---|
Notes
The x-axis may be inverted, in which case the left
value will
be greater than the right
value.
get_ylim
(*args, **kwargs)[source]¶Get the y-axis range
Returns: | ylimits : tuple
|
---|
Notes
The y-axis may be inverted, in which case the bottom
value
will be greater than the top
value.
html_map
(*args, **kwargs)[source]¶Create an HTML map for some data contained in these Axes
Parameters: | data :
imagefile :
mapname :
shape :
standalone :
title :
jquery :
|
---|---|
Returns: | HTML :
|
logx
¶View x-axis in logarithmic scale
logy
¶View y-axis in logarithmic scale
save
(*args, **kwargs)[source]¶Save the figure to disk.
This method is an alias to savefig()
,
all arguments are passed directory to that method.
set_auto_refresh
(refresh)[source]¶Set the auto-refresh setting for this Plot
.
With auto_refresh set to True
, all modifications of the underlying
Axes
will trigger the plot to be re-drawn
Parameters: |
---|
set_title
(*args, **kwargs)[source]¶Set a title for the axes.
Set one of the three available axes titles. The available titles are positioned above the axes in the center, flush with the left edge, and flush with the right edge.
Parameters: | label : str
fontdict : dict
loc : {‘center’, ‘left’, ‘right’}, str, optional
pad : float
|
---|---|
Returns: | text :
|
Other Parameters: | |
**kwargs :
|
set_xlabel
(*args, **kwargs)[source]¶Set the label for the x-axis.
Parameters: | xlabel : str
labelpad : scalar, optional, default: None
|
---|---|
Other Parameters: | |
**kwargs :
|
See also
text
set_xlim
(*args, **kwargs)[source]¶Set the data limits for the x-axis
Parameters: | left : scalar, optional
right : scalar, optional
emit : bool, optional
auto : bool or None, optional
xlimits : tuple, optional
|
---|---|
Returns: | xlimits : tuple
|
Notes
The left
value may be greater than the right
value, in which
case the x-axis values will decrease from left to right.
Examples
>>> set_xlim(left, right)
>>> set_xlim((left, right))
>>> left, right = set_xlim(left, right)
One limit may be left unchanged.
>>> set_xlim(right=right_lim)
Limits may be passed in reverse order to flip the direction of
the x-axis. For example, suppose x
represents the number of
years before present. The x-axis limits might be set like the
following so 5000 years ago is on the left of the plot and the
present is on the right.
>>> set_xlim(5000, 0)
set_xscale
(*args, **kwargs)[source]¶Set the x-axis scale.
Parameters: | value : {“linear”, “log”, “symlog”, “logit”}
|
---|
See also
matplotlib.scale.LinearScale
matplotlib.scale.LogTransform
matplotlib.scale.SymmetricalLogTransform
matplotlib.scale.LogisticTransform
Notes
Different kwargs are accepted, depending on the scale. See
the scale
module for more information.
set_ylabel
(*args, **kwargs)[source]¶Set the label for the y-axis.
Parameters: | ylabel : str
labelpad : scalar, optional, default: None
|
---|---|
Other Parameters: | |
**kwargs :
|
See also
text
set_ylim
(*args, **kwargs)[source]¶Set the data limits for the y-axis
Parameters: | bottom : scalar, optional
top : scalar, optional
emit : bool, optional
auto : bool or None, optional
ylimits : tuple, optional
|
---|---|
Returns: | ylimits : tuple
|
Notes
The bottom
value may be greater than the top
value, in which
case the y-axis values will decrease from bottom to top.
Examples
>>> set_ylim(bottom, top)
>>> set_ylim((bottom, top))
>>> bottom, top = set_ylim(bottom, top)
One limit may be left unchanged.
>>> set_ylim(top=top_lim)
Limits may be passed in reverse order to flip the direction of
the y-axis. For example, suppose y
represents depth of the
ocean in m. The y-axis limits might be set like the following
so 5000 m depth is at the bottom of the plot and the surface,
0 m, is at the top.
>>> set_ylim(5000, 0)
set_yscale
(*args, **kwargs)[source]¶Set the y-axis scale.
Parameters: | value : {“linear”, “log”, “symlog”, “logit”}
|
---|
See also
matplotlib.scale.LinearScale
matplotlib.scale.LogTransform
matplotlib.scale.SymmetricalLogTransform
matplotlib.scale.LogisticTransform
Notes
Different kwargs are accepted, depending on the scale. See
the scale
module for more information.
show
(block=None, warn=True)[source]¶Display the current figure (if possible)
Parameters: |
|
---|
Notes
If blocking is employed, this method calls the
pyplot.show
function, otherwise
the show()
method of this
Figure
is used.
title
¶title for the current axes
xlabel
¶x-axis label for the current axes
xlim
¶x-axis limits for the current axes
ylabel
¶y-axis label for the current axes
ylim
¶y-axis limits for the current axes
gwpy.plotter.
TimeSeriesPlot
(*series, **kwargs)[source]¶Bases: gwpy.plotter.series.SeriesPlot
Figure
for displaying a TimeSeries
.
Parameters: | *series :
**kwargs
|
---|
add_state_segments
(segments, ax=None, height=0.2, pad=0.1, location='bottom', plotargs={})[source]¶Add a SegmentList
to this TimeSeriesPlot
indicating state
information about the main Axes data.
By default, segments are displayed in a thin horizontal set of Axes sitting immediately below the x-axis of the main
Parameters: | segments :
ax :
plotargs
|
---|
add_timeseries
(timeseries, **kwargs)[source]¶Add a TimeSeries
trace to this plot
Parameters: | timeseries :
ax : newax :
**kwargs
|
---|---|
Returns: | line :
|
epoch
¶The GPS epoch of this plot
gwpy.plotter.
FrequencySeriesPlot
(*series, **kwargs)[source]¶Bases: gwpy.plotter.series.SeriesPlot
Figure
for displaying a FrequencySeries
gwpy.plotter.
SpectrogramPlot
(*args, **kwargs)[source]¶Bases: gwpy.plotter.timeseries.TimeSeriesPlot
Figure
for displaying a Spectrogram
.
gwpy.plotter.
SegmentPlot
(*flags, **kwargs)[source]¶Bases: gwpy.plotter.timeseries.TimeSeriesPlot
Plot
for displaying a DataQualityFlag
Parameters: | *flags :
insetlabels :
**kwargs
|
---|
add_bitmask
(mask, ax=None, width=0.2, pad=0.1, visible=True, axes_class=<class 'gwpy.plotter.segments.SegmentAxes'>, topdown=False, **plotargs)[source]¶Display a state-word bitmask on a new set of Axes.
add_dataqualityflag
(flag, **kwargs)[source]¶Add a DataQualityFlag
to this plot
Parameters: | flag :
projection :
ax : newax :
**kwargs
|
---|---|
Returns: | collection :
|
gwpy.plotter.
EventTablePlot
(*args, **kwargs)[source]¶Bases: gwpy.plotter.timeseries.TimeSeriesPlot
, gwpy.plotter.frequencyseries.FrequencySeriesPlot
, gwpy.plotter.core.Plot
Figure
for displaying a EventTable
Parameters: | table :
x :
y :
c :
**kwargs
|
---|---|
Returns: | plot :
|
Notes
The form of the returned EventTablePlot
is decided at run-time,
rather than when the module was imported.
If tables are passed directly to the constructor, for example:
>>> plot = EventTablePlot(table1, 'time', 'snr')
the columns as given are used to determine the appropriate parent class for the output.
If the input x-column (the first string argument) ends with ‘time’
the output is a child of the TimeSeriesPlot
,
allowing easy formatting of GPS times, while if the x-column ends with
‘frequency’, the output comes from the
FrequencySeriesPlot
, otherwise the parent is
the core Plot
.
add_table
(table, x, y, color=None, projection='triggers', ax=None, newax=None, **kwargs)[source]¶Add a Table
to this Plot
Parameters: | table :
x :
y :
c :
projection :
ax : newax :
**kwargs.
|
---|---|
Returns: | scatter :
|
See also
EventTableAxes.plot_table()
ax
and newax
for this method.add_tiles
(table, x, y, width, height, color=None, anchor='center', projection='triggers', ax=None, newax=None, **kwargs)[source]¶Add a Table
to this Plot
Parameters: | table :
x :
y :
width :
height :
color :
anchor :
projection :
ax : newax :
**kwargs.
|
---|---|
Returns: | scatter :
|
See also
EventTableAxes.plot_table()
ax
and newax
for this method.gwpy.plotter.
BodePlot
(*filters, **kwargs)[source]¶Bases: gwpy.plotter.core.Plot
A Plot
class for visualising transfer functions
Parameters: | *filters : frequencies :
db :
**kwargs |
---|---|
Returns: | plot : |
add_filter
(filter_, frequencies=None, dB=True, analog=False, sample_rate=None, **kwargs)[source]¶Add a linear time-invariant filter to this BodePlot
Parameters: |
frequencies :
dB : **kwargs
|
---|---|
Returns: |
|
add_frequencyseries
(spectrum, dB=True, power=False, **kwargs)[source]¶Plot the magnitude and phase of a complex-valued FrequencySeries
Parameters: | spectrum :
db :
power :
**kwargs
|
---|---|
Returns: |
|
maxes
¶FrequencySeriesAxes
for the Bode magnitude
paxes
¶FrequencySeriesAxes
for the Bode phase
Axes
objects¶Each of the below classes represents a set of axes on which data are displayed; for brevity inherited methods and attributes are not documented here, please follow links to the parent classes for documentation of available methods and attributes.
gwpy.plotter.
Axes
(fig, rect, facecolor=None, frameon=True, sharex=None, sharey=None, label=u'', xscale=None, yscale=None, **kwargs)[source]¶Bases: matplotlib.axes._axes.Axes
An extension of the core matplotlib Axes
.
These custom Axes
provide only some simpler attribute accessors.
Notes
A new set of Axes
should be constructed via:
>>> plot.add_subplots(111, projection='xxx')
where plot
is a Plot
, and 'xxx'
is the name of the Axes
you want to add.
html_map
(imagefile, data=None, **kwargs)[source]¶Create an HTML map for some data contained in these Axes
Parameters: | data :
imagefile :
mapname :
shape :
standalone :
title :
jquery :
|
---|---|
Returns: | HTML :
|
resize
(*args, **kwargs)[source]¶Set the axes position with:
>>> pos = [left, bottom, width, height]
in relative 0,1 coords, or pos can be a
Bbox
There are two position variables: one which is ultimately
used, but which may be modified by apply_aspect()
, and a
second which is the starting point for apply_aspect()
.
gwpy.plotter.
TimeSeriesAxes
(*args, **kwargs)[source]¶Bases: gwpy.plotter.series.SeriesAxes
Custom Axes
for a TimeSeriesPlot
.
auto_gps_scale
()[source]¶Automagically set the GPS scale for the time-axis of this plot based on the current view limits
epoch
¶Return the current GPS epoch (t=0)
plot
(*args, **kwargs)[source]¶Plot data onto these Axes.
Parameters: | args
kwargs
|
---|---|
Returns: | Line2D
|
See also
matplotlib.axes.Axes.plot
*args
and **kwargs
plot_array2d
(spectrogram, **kwargs)[source]¶Plot a 2D array onto these axes
Parameters: | array :
imshow :
norm :
**kwargs
|
---|---|
Returns: | layer :
|
See also
matplotlib.axes.Axes.pcolormesh
*args
and **kwargs
plot_series
(*args, **kwargs)[source]¶Plot a Series
onto these axes
Parameters: | series :
**kwargs
|
---|---|
Returns: | line :
|
See also
matplotlib.axes.Axes.plot
*args
and **kwargs
plot_spectrogram
(spectrogram, **kwargs)[source]¶Plot a 2D array onto these axes
Parameters: | array :
imshow :
norm :
**kwargs
|
---|---|
Returns: | layer :
|
See also
matplotlib.axes.Axes.pcolormesh
*args
and **kwargs
plot_timeseries
(*args, **kwargs)[source]¶Plot a Series
onto these axes
Parameters: | series :
**kwargs
|
---|---|
Returns: | line :
|
See also
matplotlib.axes.Axes.plot
*args
and **kwargs
set_xlim
(left=None, right=None, emit=True, auto=False, **kw)[source]¶Set the data limits for the x-axis
Parameters: | left : scalar, optional
right : scalar, optional
emit : bool, optional
auto : bool or None, optional
xlimits : tuple, optional
|
---|---|
Returns: | xlimits : tuple
|
Notes
The left
value may be greater than the right
value, in which
case the x-axis values will decrease from left to right.
Examples
>>> set_xlim(left, right)
>>> set_xlim((left, right))
>>> left, right = set_xlim(left, right)
One limit may be left unchanged.
>>> set_xlim(right=right_lim)
Limits may be passed in reverse order to flip the direction of
the x-axis. For example, suppose x
represents the number of
years before present. The x-axis limits might be set like the
following so 5000 years ago is on the left of the plot and the
present is on the right.
>>> set_xlim(5000, 0)
set_xscale
(scale, *args, **kwargs)[source]¶Set the x-axis scale.
Parameters: | value : {“linear”, “log”, “symlog”, “logit”}
|
---|
See also
matplotlib.scale.LinearScale
matplotlib.scale.LogTransform
matplotlib.scale.SymmetricalLogTransform
matplotlib.scale.LogisticTransform
Notes
Different kwargs are accepted, depending on the scale. See
the scale
module for more information.
gwpy.plotter.
FrequencySeriesAxes
(*args, **kwargs)[source]¶Bases: gwpy.plotter.series.SeriesAxes
Custom Axes
for a FrequencySeriesPlot
.
plot
(*args, **kwargs)[source]¶Plot data onto these Axes.
Parameters: | args
kwargs
|
---|---|
Returns: | Line2D
|
See also
matplotlib.axes.Axes.plot
*args
and **kwargs
plot_frequencyseries
(*args, **kwargs)[source]¶Plot a Series
onto these axes
Parameters: | series :
**kwargs
|
---|---|
Returns: | line :
|
See also
matplotlib.axes.Axes.plot
*args
and **kwargs
plot_variance
(*args, **kwargs)[source]¶Plot a SpectralVariance
onto
these axes
Parameters: | spectrum : class:
**kwargs
|
---|---|
Returns: | mesh :
|
See also
matplotlib.axes.Axes.pcolormesh
*args
and **kwargs
gwpy.plotter.
SegmentAxes
(*args, **kwargs)[source]¶Bases: gwpy.plotter.timeseries.TimeSeriesAxes
Custom Axes
for a SegmentPlot
.
This SegmentAxes
provides custom methods for displaying any of
DataQualityFlag
Segment
or ligo.segments.segment
SegmentList
or ligo.segments.segmentlist
SegmentListDict
or
ligo.segments.segmentlistdict
Parameters: | insetlabels :
|
---|
See also
gwpy.plotter.TimeSeriesAxes
build_segment
(segment, y, height=0.8, valign='center', **kwargs)[source]¶Build a Rectangle
to display
a single Segment
Parameters: | segment :
y :
height :
valign :
**kwargs
|
---|---|
Returns: | box :
|
get_collections
(ignore=None)[source]¶Return the collections matching the given _ignore
value
Parameters: |
|
---|---|
Returns: | collections :
|
get_next_y
()[source]¶Find the next y-axis value at which a segment list can be placed
This method simply counts the number of independent segmentlists or flags that have been plotted onto these axes.
insetlabels
¶Returns the inset labels state
plot
(*args, **kwargs)[source]¶Plot data onto these axes
Parameters: | args
kwargs
|
---|---|
Returns: | Line2D
|
See also
matplotlib.axes.Axes.plot()
*args` and ``**kwargs
plot_dqdict
(*args, **kwargs)[source]¶Plot a DataQualityDict
onto these axes
Parameters: | flags :
label :
known :
**kwargs
|
---|---|
Returns: | collection :
|
plot_dqflag
(*args, **kwargs)[source]¶Plot a DataQualityFlag
onto these axes
Parameters: | flag :
y :
height :
known :
**kwargs
|
---|---|
Returns: | collection :
|
plot_segmentlist
(*args, **kwargs)[source]¶Plot a SegmentList
onto these axes
Parameters: | segmentlist :
y :
collection :
label :
**kwargs
|
---|---|
Returns: | collection :
|
plot_segmentlistdict
(*args, **kwargs)[source]¶Plot a SegmentListDict
onto
these axes
Parameters: | segmentlistdict :
y :
**kwargs
|
---|---|
Returns: | collections :
|
set_insetlabels
(inset=None)[source]¶Set the labels to be inset or not
Parameters: |
|
---|
set_xlim
(*args, **kwargs)[source]¶Set the data limits for the x-axis
Parameters: | left : scalar, optional
right : scalar, optional
emit : bool, optional
auto : bool or None, optional
xlimits : tuple, optional
|
---|---|
Returns: | xlimits : tuple
|
Notes
The left
value may be greater than the right
value, in which
case the x-axis values will decrease from left to right.
Examples
>>> set_xlim(left, right)
>>> set_xlim((left, right))
>>> left, right = set_xlim(left, right)
One limit may be left unchanged.
>>> set_xlim(right=right_lim)
Limits may be passed in reverse order to flip the direction of
the x-axis. For example, suppose x
represents the number of
years before present. The x-axis limits might be set like the
following so 5000 years ago is on the left of the plot and the
present is on the right.
>>> set_xlim(5000, 0)
gwpy.plotter.
EventTableAxes
(fig, *args, **kwargs)[source]¶Bases: gwpy.plotter.timeseries.TimeSeriesAxes
Custom Axes
for an ~gwpy.plotter.EventTablePlot`.
The EventTableAxes
inherit from ~gwpy.plotter.TimeSeriesAxes`
as a convenience to optionally displaying a time-column.
That choice has no effect on the rest of the Axes
functionality.
add_loudest
(table, rank, x, y, *columns, **kwargs)[source]¶Display the loudest event according to some rank.
The loudest event is displayed as a gold star at its
position given by the values in columns x
, and y
,
and those values are displayed in a text box.
Parameters: | table :
rank :
x :
y :
**kwargs
|
---|---|
Returns: | collection :
text :
|
plot
(*args, **kwargs)[source]¶Plot data onto these axes
Parameters: | *args
**kwargs
|
---|
plot_table
(table, x, y, color=None, edgecolor='none', size_by=None, size_by_log=None, size_range=None, **kwargs)[source]¶Plot a Table
onto these Axes
Parameters: | table :
x :
y :
color :
**kwargs
|
---|---|
Returns: |
|
plot_tiles
(table, x, y, width, height, color=None, anchor='center', edgecolors='face', linewidth=0.8, **kwargs)[source]¶Plot a Table
onto these Axes
using rectangular tiles
Parameters: | table :
x :
y :
width :
height :
color :
anchor :
**kwargs
|
---|---|
Returns: | collection :
|