Chartview#

Qt widget that shows the plot.

auto_color()

Returns next color for pens and brushes.

auto_symbol()

Returns next symbol for scatter plots.

ChartView(*args, **kwargs)

MatPlotLib Figure

PLOT_COLORS

Select subset of the MatPlotLib named colors.

PLOT_SYMBOLS

Select subset of the MatPlotLib marker symbols.

TIMESTAMP_LIMIT

Earliest date for a run in any Bluesky catalog (1990-01-01).

see:

https://matplotlib.org/stable/users/index.html

Note

To see the full list of plot symbols from MatPlotLib (https://matplotlib.org/stable/gallery/lines_bars_and_markers/marker_reference.html):

from matplotlib.lines import Line2D
print(Line2D.markers)
class gemviz.chartview.ChartView(*args: Any, **kwargs: Any)[source]#

MatPlotLib Figure

plot(*args, **kwargs)

Plot from the supplied (x, y) or (y) data.

setAxisLabel(axis, text)

setAxisUnits(axis, text)

setBottomAxisText(text)

setLeftAxisText(text)

setLeftAxisUnits(text)

setPlotTitle(text)

addCurve(*args, **kwargs)[source]#

Add to graph.

plot(*args, **kwargs)[source]#

Plot from the supplied (x, y) or (y) data.

PARAMETERS

  • args tuple: x & y xarray.DataArrays. When only y is supplied, x will be the index.

  • kwargs (dict): dict(str, obj)

updatePlot()[source]#

Update annotations (titles & axis labels).

gemviz.chartview.PLOT_COLORS = ['r', 'g', 'b', 'c', 'm', 'goldenrod', 'lime', 'orange', 'blueviolet', 'brown', 'teal', 'olive', 'lightcoral', 'gold', 'cornflowerblue', 'forestgreen', 'salmon']#

Select subset of the MatPlotLib named colors.

Do NOT sort these colors alphabetically! There should be obvious contrast between adjacent colors.

gemviz.chartview.PLOT_SYMBOLS = ['o', '+', 'x', '*', 's', 'd', '^', 'v']#

Select subset of the MatPlotLib marker symbols.

To print the full dictionary of symbols available:

from matplotlib.lines import Line2D
print(Line2D.markers)
See:

https://matplotlib.org/stable/gallery/lines_bars_and_markers/marker_reference.html

gemviz.chartview.TIMESTAMP_LIMIT = 631173600.0#

Earliest date for a run in any Bluesky catalog (1990-01-01).

gemviz.chartview.auto_color()[source]#

Returns next color for pens and brushes.

gemviz.chartview.auto_symbol()[source]#

Returns next symbol for scatter plots.