Skip to content
Snippets Groups Projects
Commit 7a2044f2 authored by Mr. SQUID's avatar Mr. SQUID
Browse files

added meag awesome scaling based on ref too!

parent 59ddfc8d
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -219,7 +219,7 @@ print("Live view done")
# IV Live Display
```python hide_input=true
```python hide_input=false
I = []
V = []
t = []
......@@ -243,8 +243,12 @@ def update_display():
# Update scaling
if scale_mode.value == "Autoscale":
auto_scale(p1.x_range,I)
auto_scale(p1.y_range,V)
if plot_ref_button.value:
auto_scale(p1.x_range,np.concatenate(I,np.array(source3.data['x'])))
auto_scale(p1.y_range,np.concatenate(V,np.array(source3.data['y']))
else:
auto_scale(p1.x_range,I)
auto_scale(p1.y_range,V)
elif scale_mode.value == "Full range":
p1.x_range.start = -x_full_scale
p1.x_range.end = x_full_scale
......
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