bluemath_tk.core.plotting package
Submodules
bluemath_tk.core.plotting.base_plotting module
- class bluemath_tk.core.plotting.base_plotting.BasePlotting[source]
Bases:
ABC
Abstract base class for handling default plotting functionalities across the project.
- get_list_of_colors_for_colormap(cmap: str | Colormap, num_colors: int) list [source]
Get a list of colors from a colormap.
- Parameters:
cmap (str or Colormap) – The colormap to use.
num_colors (int) – The number of colors to generate.
- Returns:
A list of colors generated from the colormap.
- Return type:
list
- abstractmethod plot_line(x, y)[source]
Abstract method for plotting a line. Should be implemented by subclasses.
- class bluemath_tk.core.plotting.base_plotting.DefaultInteractivePlotting[source]
Bases:
BasePlotting
Concrete implementation of BasePlotting with interactive plotting behaviors.
- class bluemath_tk.core.plotting.base_plotting.DefaultStaticPlotting(template: str = 'default')[source]
Bases:
BasePlotting
Concrete implementation of BasePlotting with static plotting behaviors.
- plot_line(ax, **kwargs)[source]
Abstract method for plotting a line. Should be implemented by subclasses.
- plot_map(ax, **kwargs)[source]
Abstract method for plotting a map. Should be implemented by subclasses.
- plot_scatter(ax, **kwargs)[source]
Abstract method for plotting a scatter plot. Should be implemented by subclasses.
- templates = {'default': {'line': {'color': 'blue', 'line_style': '-'}, 'scatter': {'color': 'red', 'marker': 'o', 'size': 10}}}
bluemath_tk.core.plotting.colors module
- bluemath_tk.core.plotting.colors.GetFamsColors(num_fams)[source]
Choose colors or Interpolate custom colormap to number of waves families
- bluemath_tk.core.plotting.colors.colormap_bathy(topat, topag)[source]
returns custom colormap for bathymetry plot