mirror of
https://github.com/nqrduck/nqrduck-spectrometer.git
synced 2024-12-22 16:27:48 +00:00
Updated pulse shape resolution
This commit is contained in:
parent
18e25155a3
commit
0b88fd8042
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ class Function:
|
||||||
def __init__(self, expr) -> None:
|
def __init__(self, expr) -> None:
|
||||||
self.parameters = []
|
self.parameters = []
|
||||||
self.expr = expr
|
self.expr = expr
|
||||||
self.resolution = 16/30.72e6
|
self.resolution = 1/30.72e6
|
||||||
self.start_x = -1
|
self.start_x = -1
|
||||||
self.end_x = 1
|
self.end_x = 1
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ class Function:
|
||||||
def time_domain_plot(self, pulse_length: float) -> MplWidget:
|
def time_domain_plot(self, pulse_length: float) -> MplWidget:
|
||||||
mpl_widget = MplWidget()
|
mpl_widget = MplWidget()
|
||||||
td = self.get_time_points(pulse_length)
|
td = self.get_time_points(pulse_length)
|
||||||
mpl_widget.canvas.ax.plot(td, self.evaluate(pulse_length))
|
mpl_widget.canvas.ax.plot(td, abs(self.evaluate(pulse_length)))
|
||||||
mpl_widget.canvas.ax.set_xlabel("Time in s")
|
mpl_widget.canvas.ax.set_xlabel("Time in s")
|
||||||
mpl_widget.canvas.ax.set_ylabel("Magnitude")
|
mpl_widget.canvas.ax.set_ylabel("Magnitude")
|
||||||
return mpl_widget
|
return mpl_widget
|
||||||
|
|
Loading…
Reference in a new issue