Plotting (gwpy.plot)#

Utilities for visualising GW data with Matplotlib.

The standard data types (TimeSeries, Table, DataQualityFlag, …) can all be easily visualised using the relevant plotting objects, with many configurable parameters both interactive, and in saving to disk.

See also

Classes#

Axes(fig, *args, **kwargs)

GWpy customised Axes.

BodePlot(*filters[, dB, frequencies])

A Plot class for visualising transfer functions.

Plot(*data, **kwargs)

An extension of the core matplotlib Figure.

SegmentAxes(*args[, xscale, insetlabels])

Custom Axes to display segments.

Class Inheritance Diagram#

digraph inheritance7b10e6ee1c { bgcolor=transparent; rankdir=TB; size="8.0, 12.0"; "Artist" [URL="https://matplotlib.org/stable/api/artist_api.html#matplotlib.artist.Artist",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Abstract base class for objects that render into a FigureCanvas."]; "Axes" [URL="../gwpy.plot.Axes/#gwpy.plot.Axes",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="GWpy customised `~matplotlib.axes.Axes`."]; "Axes" -> "Axes" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Axes" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="An Axes object encapsulates all the elements of an individual (sub-)plot in"]; "_AxesBase" -> "Axes" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BodePlot" [URL="../gwpy.plot.BodePlot/#gwpy.plot.BodePlot",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A `Plot` class for visualising transfer functions."]; "Plot" -> "BodePlot" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Figure" [URL="https://matplotlib.org/stable/api/_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="The top level container for all the plot elements."]; "FigureBase" -> "Figure" [arrowsize=0.5,style="setlinewidth(0.5)"]; "FigureBase" [URL="https://matplotlib.org/stable/api/figure_api.html#matplotlib.figure.FigureBase",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Base class for `.Figure` and `.SubFigure` containing the methods that add"]; "Artist" -> "FigureBase" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Plot" [URL="../gwpy.plot.Plot/#gwpy.plot.Plot",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="An extension of the core matplotlib `~matplotlib.figure.Figure`."]; "Figure" -> "Plot" [arrowsize=0.5,style="setlinewidth(0.5)"]; "SegmentAxes" [URL="../gwpy.plot.SegmentAxes/#gwpy.plot.SegmentAxes",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Custom `Axes` to display segments."]; "Axes" -> "SegmentAxes" [arrowsize=0.5,style="setlinewidth(0.5)"]; "_AxesBase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled"]; "Artist" -> "_AxesBase" [arrowsize=0.5,style="setlinewidth(0.5)"]; }