Cat
Functions
UsbFTInterfaceTest Namespace Reference

Functions

def Edit (cat, obj, panel, path)
 
def Plot (cat, obj, parent, id)
 

Function Documentation

◆ Edit()

def UsbFTInterfaceTest.Edit (   cat,
  obj,
  panel,
  path 
)

Definition at line 43 of file UsbFTInterfaceTest.py.

43 def Edit (cat, obj, panel, path):
44  return UsbFTInterfaceTest(cat, obj, panel, path)
45 
46 #----------------------------------------------------------------------
47 
def Edit(cat, obj, panel, path)

◆ Plot()

def UsbFTInterfaceTest.Plot (   cat,
  obj,
  parent,
  id 
)

Definition at line 48 of file UsbFTInterfaceTest.py.

References Object.title().

48 def Plot(cat, obj, parent, id):
49  from mpl_toolkits.mplot3d import Axes3D
50  from matplotlib import cm
51  import matplotlib as mpl
52  import matplotlib.pyplot as plt
53  import numpy as np
54 
55  plot=plotter(parent,id)
56 
57  fig=plot.current()
58  fig.suptitle('UsbFT Interface - Test Program', fontsize=14, fontweight='bold')
59 
60  p=obj
61 
62  p1=fig.add_subplot(2,2,1)
63  p1.plot(p.data(0), 'bo')
64  p1.set_title(r'$\sigma='+str(p.sigma())+'\ \mu='+str(p.mean())+'$')
65  p1.set_ylabel('Values')
66 
67  plt.subplot(2,2,2)
68  plt.hist(p.data().vector(0), 20)
69  plt.title(p.data().title(0))
70  plt.grid(True)
71 
72  p3=fig.add_subplot(2,2,3)
73  p3.plot(p.data(3), 'bs', p.data(4), 'g^')
74  p3.set_title(r'Time (Write/Read)')
75  p3.set_ylabel('Values')
76 
77  p4=fig.add_subplot(2,2,4)
78  p4.plot(p.data(1), 'k')
79  p4.set_title(r'Errors (Write)')
80  p4.set_ylabel('Values')
81 
82  return plot
83 
def Plot(cat, obj, parent, id)