Module sleplet.plotting

Classes to create plots on the sphere or mesh.

Classes

class PlotMesh (*args: Any, **kwargs: Any)

Create surface mesh plot via plotly.

Instance variables

var amplitude : float | None

The type of the None singleton.

var f : numpy.ndarray[tuple[int, ...], numpy.dtype[numpy.complex128 | numpy.float64]]

The type of the None singleton.

var filename : str

The type of the None singleton.

var meshMesh

The type of the None singleton.

var normalise : bool

The type of the None singleton.

var region : bool

The type of the None singleton.

Methods

def execute(self: Self, colour: str = 'ice') ‑> None

Perform the plot.

Args

colour
A built-in colormap name
class PlotSphere (*args: Any, **kwargs: Any)

Create surface sphere plot via plotly.

Instance variables

var L : int

The type of the None singleton.

var amplitude : float | None

The type of the None singleton.

var annotations : list[dict[str, float | int]]

The type of the None singleton.

var f : numpy.ndarray[tuple[int, ...], numpy.dtype[numpy.complex128 | numpy.float64]]

The type of the None singleton.

var filename : str

The type of the None singleton.

var normalise : bool

The type of the None singleton.

var plot_type : str

The type of the None singleton.

var reality : bool

The type of the None singleton.

var regionRegion | None

The type of the None singleton.

var spin : int

The type of the None singleton.

var upsample : bool

The type of the None singleton.

Methods

def execute(self: Self) ‑> None

Perform the plot.