mjolnir.plotting.live_view#
This module provides several live-plotting classes that use
qutil.plotting.live_view.
Classes
|
Show a video of CCD live images. |
|
Monitor readings from the power meter. |
|
Show a video of CCD live spectra. |
|
- class mjolnir.plotting.live_view.ImageLiveView(station, exposure_time=0.1, subtract_background=True, data_rate=False, light_source='laser', horizontal_scale='wavelength', read_mode='image', read_mode_settings=None, update_interval_ms=1000, autoscale=True, autoscale_interval_ms=1000, show_fps=False, useblit=True, style=('dark_background', 'fast'), img_kw=None, fig_kw=None, log_level=None)[source]#
Bases:
_CcdMixin,BatchedLiveView2DShow a video of CCD live images.
- Parameters:
station (Station) – The logical station in which the
ExcitationPathinstrument lives.exposure_time (float) – The (maximum) exposure time.
subtract_background (bool) – Subtract a background image from the data before displaying.
data_rate (bool) – Plot the count rate instead of the total number of counts.
light_source (Literal['laser', 'white_light']) – Use the white light or the laser.
horizontal_scale (Literal['energy', 'wavelength']) – Show energy or wavelength on the bottom axis.
read_mode (Literal['image', 'random track', 'multi track']) – Use image, random track, or multi track mode.
read_mode_settings (Any | None) – Read mode settings to apply for data acquisition.
update_interval_ms (int)
autoscale (bool | None)
autoscale_interval_ms (int | None)
show_fps (bool)
useblit (bool)
style (StyleT | Sequence[StyleT])
img_kw (Mapping[str, Any] | None)
fig_kw (Mapping[str, Any] | None)
log_level (int | None)
- DEFAULT_FIGSIZE = (885, 630)#
- class mjolnir.plotting.live_view.PowerLiveView(station, display_duration=10.0, averaging_time=None, update_interval_ms=16, number_update_interval_ms=83, autoscale='y', autoscale_interval_ms=1000, show_fps=False, useblit=True, yscale='linear', ylim=None, style=('dark_background', 'fast'), fig_kw=None, log_level=None)[source]#
Bases:
_QcodesMixin,BatchedLiveView1DMonitor readings from the power meter.
- Parameters:
station (Station) – The logical station in which the
ExcitationPathinstrument lives.display_duration (float) – The time in seconds to display in total.
averaging_time (float | None) – The averaging time per point in seconds. Should be smaller than 498 ms, otherwise the instrument times out. Defaults to update_interval_ms.
update_interval_ms (int)
number_update_interval_ms (int)
autoscale (Literal['', 'y'] | None)
autoscale_interval_ms (int | None)
show_fps (bool)
useblit (bool)
yscale (str | ScaleT)
style (StyleT | Sequence[StyleT])
fig_kw (Mapping[str, Any] | None)
log_level (int | None)
- DEFAULT_FIGSIZE = (885, 388)#
- class mjolnir.plotting.live_view.SpectrumLiveView(station, exposure_time=0.1, subtract_background=True, data_rate=True, light_source='laser', horizontal_scale='wavelength', read_mode='full vertical binning', single_track_settings=None, update_interval_ms=16, autoscale='x', autoscale_interval_ms=1000, show_fps=False, useblit=True, yscale='linear', style=('dark_background', 'fast'), fig_kw=None, log_level=None)[source]#
Bases:
_CcdMixin,BatchedLiveView1DShow a video of CCD live spectra.
- Parameters:
station (Station) – The logical station in which the
ExcitationPathinstrument lives.exposure_time (float) – The (maximum) exposure time.
subtract_background (bool) – Subtract a background image from the data before displaying.
data_rate (bool) – Plot the count rate instead of the total number of counts.
light_source (Literal['laser', 'white_light']) – Use the white light or the laser.
horizontal_scale (Literal['energy', 'wavelength']) – Show energy or wavelength on the bottom axis.
read_mode (Literal['single track', 'full vertical binning']) – Use full vertical binning (default) or single track mode.
single_track_settings (tuple[int, int] | None) – Applies only if read_mode is single track.
update_interval_ms (int)
autoscale (bool | None)
autoscale_interval_ms (int | None)
show_fps (bool)
useblit (bool)
yscale (str | ScaleT)
style (StyleT | Sequence[StyleT])
fig_kw (Mapping[str, Any] | None)
log_level (int | None)
- DEFAULT_FIGSIZE = (885, 630)#
- class mjolnir.plotting.live_view.TimeTaggerLiveView(station, channels, data_rate=True, display_duration=60.0, averaging_time=0.1, update_interval_ms=16, autoscale='y', autoscale_interval_ms=1000, show_fps=False, useblit=True, yscale='linear', ylim=None, style=('dark_background', 'fast'), fig_kw=None, log_level=None)[source]#
Bases:
_QcodesMixin,BatchedLiveView1D- Parameters:
station (Station)
channels (Sequence[int])
data_rate (bool)
display_duration (float)
averaging_time (float)
update_interval_ms (int)
autoscale (Literal['', 'y'] | None)
autoscale_interval_ms (int | None)
show_fps (bool)
useblit (bool)
yscale (str | ScaleT)
style (StyleT | Sequence[StyleT])
fig_kw (Mapping[str, Any] | None)
log_level (int | None)
- DEFAULT_FIGSIZE = (885, 388)#
- counter: CounterMeasurement#
- tagger: TimeTagger#