124 def Plot(cat, obj, parent, id):
126 if (
not obj.storeTrend()
and not obj.storeSample):
129 from mpl_toolkits.mplot3d
import Axes3D
130 import matplotlib.ticker
as ticker
131 from matplotlib
import cm
132 import matplotlib
as mpl
133 import matplotlib.pyplot
as plt
139 title =
'Acquisition - Channel(s) ' 141 channels=obj.channels()
148 fig.suptitle(title, fontsize=14, fontweight=
'bold')
152 if obj.storeSample() : row+=1
153 if obj.storeTrend() : row+=2
157 if obj.storeTrend() :
158 for c
in range(0,col):
159 pl=fig.add_subplot(row,col,c+1)
161 pl.plot(obj.hist1d(index).xbins(),obj.hist1d(index).bins(),
'ro',color=
'blue')
162 pl.xaxis.set_ticks([0,obj.depth()/2,obj.depth()-1])
165 pl=fig.add_subplot(row,col,c+col+1)
167 pl.plot(obj.hist1d(index).xbins(),obj.hist1d(index).bins(),
'ro',color=
'green')
168 pl.xaxis.set_ticks([0,obj.depth()/2,obj.depth()-1])
171 if (row==3): index+=1
173 if obj.storeSample() :
175 for c
in range(0,col):
176 pl=fig.add_subplot(row,col,c+(row-1)*col+1)
177 h=
h1d(pl,obj.hist1d(index), facecolor=
'red',linestyle=
'dashed')
178 pl.xaxis.set_ticks([obj.hist1d(index).minX(),(obj.hist1d(index).maxX()+obj.hist1d(index).minX())/2.,obj.hist1d(index).maxX()])
181 if (row==3): index+=2
184 def Plot(cat, obj, parent, id)
def h1d(fig, histo, alpha=0.5, facecolor='green', edgecolor='yellow', linestyle='dashed')