georges_core.vis package
Submodules
georges_core.vis.artist module
Plotting module.
- georges_core.vis.artist.PALETTE = {'solarized': {'BEND': '#268bd2', 'CIRCULARCOLLIMATOR': '#d33682', 'COLLIMATOR': '#d33682', 'DEGRADER': '#073642', 'ELEMENT': '#839496', 'ELLIPTICALCOLLIMATOR': '#cb4b16', 'HKICKER': '#d33682', 'MATRIX': '#2aa198', 'MULTIPOLE': '#002b36', 'OCTUPOLE': '#859900', 'QUADRUPOLE': '#dc322f', 'RECTANGULARCOLLIMATOR': '#1B8603', 'SCATTERER': '#073642', 'SEXTUPOLE': '#b58900', 'VKICKER': '#6c71c4', 'base0': '#839496', 'base00': '#657b83', 'base01': '#586e75', 'base02': '#073642', 'base03': '#002b36', 'base1': '#93a1a1', 'base2': '#eee8d5', 'base3': '#fdf6e3', 'blue': '#268bd2', 'cyan': '#2aa198', 'darkgreen': '#1B8603', 'goldenrod': '#fac205', 'gray': '#002b36', 'green': '#859900', 'magenta': '#d33682', 'orange': '#cb4b16', 'red': '#dc322f', 'violet': '#6c71c4', 'yellow': '#b58900'}}
Default color palette.
georges_core.vis.gnuplot module
TODO
georges_core.vis.matplotlib module
TODO
- class georges_core.vis.matplotlib.MatplotlibArtist(ax: Axes | None = None, **kwargs: Any)[source]
Bases:
Artist
TODO
- Parameters:
ax (param) – the matplotlib ax used for plotting. If None it will be created with init_plot (kwargs are
forwarded). –
with_frames – draw the entry and exit frames of each element
with_centers – draw the center of each polar coordinate elements
kwargs – forwarded to Artist and to init_plot.
- property ax2: Axes
Returns:
- property figure: figure
Current Matplotlib figure.
- Returns:
the Matplotlib figure.
- property ax: Axes
Current Matplotlib ax.
- Returns:
the Matplotlib ax.
- init_plot(figsize: Tuple[int, int] = (12, 8), subplots: int = 111) None [source]
Initialize the Matplotlib figure and ax.
- Parameters:
subplots – number of subplots
figsize – figure size
- plot(*args: Any, **kwargs: Any) None [source]
Proxy for matplotlib.pyplot.plot
Same as matplotlib.pyplot.plot, forwards all arguments.
- plot_cartouche(beamline: DataFrame | None = None, print_label: bool = False, labels: DataFrame | None = None, vertical_position: float = 1.15) None [source]
- Parameters:
beamline –
print_label –
labels –
Returns:
georges_core.vis.plotly module
TODO
- class georges_core.vis.plotly.PlotlyArtist(config: Dict[str, Any] | None = None, layout: Dict[str, Any] | None = None, width: float | None = None, height: float | None = None, **kwargs: Any)[source]
Bases:
Artist
TODO
- Parameters:
config –
layout –
width –
height –
**kwargs –
- property fig: Dict[str, Any]
Provides the plotly figure.
- property config: Dict[str, Any]
- property data: List[Any]
- property layout: Dict[str, Any]
- property shapes: List[Any]
- __iadd__(other: Any) PlotlyArtist [source]
Add a trace to the figure.
- add_axis(title: str = '', axis: Dict[str, Any] | None = None) None [source]
- Parameters:
title –
axis –
Returns: