Skip to content
Snippets Groups Projects
Commit 48c49526 authored by Michal Maciejewski's avatar Michal Maciejewski
Browse files

Changed the axis limit for plot_leads_voltage_zoom

parent 7656113f
No related branches found
Tags 1.4.105
No related merge requests found
Pipeline #2353287 passed with warnings
name = "lhcsmapi"
__version__ = "1.4.104"
__version__ = "1.4.105"
def get_lhcsmapi_version() -> None:
......
......@@ -211,8 +211,8 @@ class DfbAnalysis(CircuitAnalysis):
@staticmethod
def plot_leads_voltage_zoom(u_hts_dfs: List[pd.DataFrame], circuit_name: str, timestamp_fgc: int,
timestamp_qps: int, timestamp_ee_odd: int, timestamp_ee_even: int, *, signal='U_HTS'
) -> None:
timestamp_qps: int, timestamp_ee_odd: int, timestamp_ee_even: int, *, signal='U_HTS',
value_range=(-0.001, 0.001)) -> None:
""" Method plotting a DFB voltage. In addition, the first QPS trigger, both EE triggers are indicated.
:param u_hts_dfs: list of DFB voltages
......@@ -228,6 +228,7 @@ class DfbAnalysis(CircuitAnalysis):
title = '%s, %s: %s(t)' % (Time.to_string_short(timestamp_fgc), circuit_name, signal)
ax = PlotBuilder().with_signal(u_hts_dfs, grid=True, title=title, style='x-') \
.with_xlim((-1, 2)).with_ylabel(ylabel='%s, [V]' % signal) \
.with_ylim(value_range) \
.plot(show_plot=False) \
.get_axes()[0]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment