##// END OF EJS Templates
jroplot_voltage.py: New feature added. Support for plotting voltages when getByBlock is set.
Miguel Valdez -
r742:888768c1e762
parent child
Show More
@@ -137,38 +137,70 class Scope(Figure):
137 137 raise ValueError, "Channel %d is not in dataOut.channelList"
138 138 channelIndexList.append(dataOut.channelList.index(channel))
139 139
140 x = dataOut.heightList
141 y = dataOut.data[channelIndexList,:] * numpy.conjugate(dataOut.data[channelIndexList,:])
142 y = y.real
143
144 140 thisDatetime = datetime.datetime.utcfromtimestamp(dataOut.getTimeRange()[0])
145 141
146 if type == "power":
147 self.plot_power(dataOut.heightList,
148 dataOut.data,
149 id,
150 channelIndexList,
151 thisDatetime,
152 wintitle,
153 show,
154 xmin,
155 xmax,
156 ymin,
157 ymax)
158
159 if type == "iq":
160 self.plot_iq(dataOut.heightList,
161 dataOut.data,
162 id,
163 channelIndexList,
164 thisDatetime,
165 wintitle,
166 show,
167 xmin,
168 xmax,
169 ymin,
170 ymax)
142 if dataOut.flagDataAsBlock:
143
144 for i in range(dataOut.nProfiles):
145
146 wintitle1 = wintitle + " [Profile = %d] " %i
147
148 if type == "power":
149 self.plot_power(dataOut.heightList,
150 dataOut.data[:,i,:],
151 id,
152 channelIndexList,
153 thisDatetime,
154 wintitle1,
155 show,
156 xmin,
157 xmax,
158 ymin,
159 ymax)
160
161 if type == "iq":
162 self.plot_iq(dataOut.heightList,
163 dataOut.data[:,i,:],
164 id,
165 channelIndexList,
166 thisDatetime,
167 wintitle1,
168 show,
169 xmin,
170 xmax,
171 ymin,
172 ymax)
173
174 self.draw()
171 175
176 else:
177 wintitle += " [Profile = %d] " %dataOut.profileIndex
178
179 if type == "power":
180 self.plot_power(dataOut.heightList,
181 dataOut.data,
182 id,
183 channelIndexList,
184 thisDatetime,
185 wintitle,
186 show,
187 xmin,
188 xmax,
189 ymin,
190 ymax)
191
192 if type == "iq":
193 self.plot_iq(dataOut.heightList,
194 dataOut.data,
195 id,
196 channelIndexList,
197 thisDatetime,
198 wintitle,
199 show,
200 xmin,
201 xmax,
202 ymin,
203 ymax)
172 204
173 205 self.draw()
174 206
General Comments 0
You need to be logged in to leave comments. Login now