cigvis.sliceviewer.viewer module#

Panel+Plotly rendering layer for sliceviewer.

class cigvis.sliceviewer.viewer.SliceViewerServer(port: int = 5007, address: str = 'localhost')#

Bases: object

A persistent Panel server. Create once, push content multiple times.

cigvis.sliceviewer.viewer.build_layout(nodes: List | List[List], title: str = '', cbar_label: str = 'Amplitude', grid: Tuple[int, int] | None = None, plot_width: int | None = None, plot_height: int = 430, xlim: Sequence[float] | None = None, ylim: Sequence[float] | None = None)#

Build the Panel layout without starting or updating a server.

plot_width and plot_height control each Plotly pane. xlim and ylim set the initial displayed sample range for the current X/Y axes; Y keeps image-style orientation with smaller samples at the top.

cigvis.sliceviewer.viewer.create_server(port: int = 5007, address: str = 'localhost') SliceViewerServer#

Create a persistent Panel server.

Explicitly link two node lists for comparison layouts.

cigvis.sliceviewer.viewer.show(nodes: List | List[List], server: SliceViewerServer | None = None, port: int = 5007, address: str = 'localhost', title: str = '', cbar_label: str = 'Amplitude', grid: Tuple[int, int] | None = None, plot_width: int | None = None, plot_height: int = 430, xlim: Sequence[float] | None = None, ylim: Sequence[float] | None = None, launch: bool = True, **kwargs)#

Build a Panel+Plotly interactive slice viewer.

plot_width and plot_height control each Plotly pane. xlim and ylim set the initial displayed sample range for the current X/Y axes; Y keeps image-style orientation with smaller samples at the top.