navigate.controller.sub_controllers.histogram.HistogramController
- class navigate.controller.sub_controllers.histogram.HistogramController(histogram: HistogramFrame, parent_controller: Any)
Bases:
object
Histogram controller
- __init__(histogram: HistogramFrame, parent_controller: Any) → None
Initialize the histogram controller
- Parameters:
histogram (HistogramFrame) – Histogram view
parent_controller (Any) – Main controller.
Methods
__init__
(histogram, parent_controller)Initialize the histogram controller
histogram_popup
(event)Histogram popup menu
populate_histogram
(image)Populate the histogram in a dedicated thread.
Update the experiment.yaml file
Update the scale of the histogram
Attributes
Histogram view
Main controller
The histogram figure.
Histogram enabled
Logarithmic X-axis
Logarithmic Y-axis
Histogram popup menu
Histogram thread
Lock
- histogram_popup(event: Event) → None
Histogram popup menu
- Parameters:
event (tk.Event) – Event
- populate_histogram(image: SharedNDArray) → None
Populate the histogram in a dedicated thread.
- Parameters:
image (SharedNDArray) – Image data
- update_experiment() → None
Update the experiment.yaml file
- update_scale() → None
Update the scale of the histogram
- ax
The histogram figure.
- Type:
FigureBase
- histogram
Histogram view
- Type:
- histogram_enabled
Histogram enabled
- Type:
bool
- histogram_thread
Histogram thread
- Type:
threading.Thread
- lock
Lock
- Type:
threading.Lock
- log_x
Logarithmic X-axis
- Type:
bool
- log_y
Logarithmic Y-axis
- Type:
bool
- menu
Histogram popup menu
- Type:
tk.Menu
- parent_controller
Main controller
- Type:
MainController