radioviz.views.canvas_widget
Matplotlib canvas widgets for Qt applications.
This module provides specialized canvas widgets that integrate Matplotlib figures with Qt for displaying TIFF images and intensity profiles.
Classes
|
coordinates: should we show the coordinates on the right? |
|
|
|
Canvas for displaying intensity profiles. |
|
Canvas for displaying TIFF images with a colorbar. |
- class radioviz.views.canvas_widget.AdvancedToolbar(canvas: FigureCanvasQTAgg, parent: QWidget | None = None)[source]
Bases:
NavigationToolbar2QTcoordinates: should we show the coordinates on the right?
- class radioviz.views.canvas_widget.SimpleCanvas(parent: QWidget | None = None, width: float = 5, height: float = 4, dpi: int = 100)[source]
Bases:
MPLCanvasCanvas for displaying intensity profiles.
This class creates a Matplotlib figure with a single axis for plotting intensity profiles or similar data.
- Parameters:
parent (QWidget or None) – The parent widget
width (float) – Width of the figure in inches
height (float) – Height of the figure in inches
dpi (int) – Resolution in dots per inch
Initialize the profile canvas with one single axis
- class radioviz.views.canvas_widget.TiffCanvas(parent: QWidget | None = None, width: float = 8, height: float = 6, dpi: int = 100)[source]
Bases:
MPLCanvasCanvas for displaying TIFF images with a colorbar.
This class creates a Matplotlib figure with two axes - one for the image and one for the corresponding colorbar.
- Parameters:
parent (QWidget or None) – The parent widget
width (float) – Width of the figure in inches
height (float) – Height of the figure in inches
dpi (int) – Resolution in dots per inch
Initialize the TIFF canvas with image and colorbar axes.