In [17]:
%matplotlib inline
from control_room import *
import numpy as np

In [6]:
from ipywidgets import interact, widgets
from control_room import signals, scope

In [71]:
pulses = [53693]#[53689, 53690, 53691, 53693, 53695,53696, ]
#pulses = [53677, 53678, 53679, 53680, 53681, 53683]


sigs_general = [signals['Ip'], 
    signals['nl'],
    signals['LH_P_tot'],
    #signals['IC_P_Q1'],
    signals['IC_P_Q2'],
    signals['Valve10'],
    #signals['IC_Rc_Q1_avg'],
    signals['IC_Rc_Q2_avg'],
    signals['IC_P_Q2_left_ref'],
    signals['IC_P_Q2_right_ref'],
               signals['Te2']]

In [72]:
fig, axes = scope(pulses, sigs_general, do_smooth=False)
axes[-1].set_xlim(6.5, 7)
axes[0].legend()
#fig.savefig('53693.png', dpi=150)


You're asking a lot of data, please wait
C:\Users\JH218595\AppData\Local\Continuum\anaconda3\lib\site-packages\matplotlib\figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
  % get_backend())
Out[72]:
<matplotlib.legend.Legend at 0x33b4af28>

In [50]:
@interact(pulse=widgets.SelectMultiple(
    options=[54105, 54106, 54106],
    value=[54105],
    #rows=10,
    description='Shot Number',
    disabled=False
))
def plot_sigs(pulse):
    fig, axes = scope(pulse, sigs_general, do_smooth=False)
    axes[-1].set_xlim(0, 10)
    axes[0].legend()


C:\Users\JH218595\AppData\Local\Continuum\anaconda3\lib\site-packages\matplotlib\figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
  % get_backend())

In [ ]: