@@ -302,7 +302,7 def pmultiline(iplot, x, y, xlabel='', ylabel='', title=''): | |||||
302 |
|
302 | |||
303 | def createPmultilineYAxis(ax, x, y, xmin, xmax, ymin, ymax, xlabel='', ylabel='', title='', legendlabels=None, |
|
303 | def createPmultilineYAxis(ax, x, y, xmin, xmax, ymin, ymax, xlabel='', ylabel='', title='', legendlabels=None, | |
304 | ticksize=9, xtick_visible=True, ytick_visible=True, |
|
304 | ticksize=9, xtick_visible=True, ytick_visible=True, | |
305 |
nxticks=4, nyticks=10, marker=' |
|
305 | nxticks=4, nyticks=10, marker='.', markersize=10, linestyle="None", | |
306 | grid=None, XAxisAsTime=False): |
|
306 | grid=None, XAxisAsTime=False): | |
307 |
|
307 | |||
308 | """ |
|
308 | """ | |
@@ -314,7 +314,7 def createPmultilineYAxis(ax, x, y, xmin, xmax, ymin, ymax, xlabel='', ylabel='' | |||||
314 | matplotlib.pyplot.ioff() |
|
314 | matplotlib.pyplot.ioff() | |
315 |
|
315 | |||
316 | # lines = ax.plot(x, y.T, marker=marker,markersize=markersize,linestyle=linestyle) |
|
316 | # lines = ax.plot(x, y.T, marker=marker,markersize=markersize,linestyle=linestyle) | |
317 |
lines = ax.plot(x, y.T, 'o', markersize= |
|
317 | lines = ax.plot(x, y.T, linestyle='None', marker='.', markersize=markersize) | |
318 | leg = ax.legend(lines, legendlabels, loc='upper left', bbox_to_anchor=(1.01, 1.00), numpoints=1, handlelength=1.5, \ |
|
318 | leg = ax.legend(lines, legendlabels, loc='upper left', bbox_to_anchor=(1.01, 1.00), numpoints=1, handlelength=1.5, \ | |
319 | handletextpad=0.5, borderpad=0.5, labelspacing=0.5, borderaxespad=0.) |
|
319 | handletextpad=0.5, borderpad=0.5, labelspacing=0.5, borderaxespad=0.) | |
320 |
|
320 |
@@ -1242,7 +1242,7 class RTIfromSpectraHeis(Figure): | |||||
1242 | def run(self, dataOut, idfigure, wintitle="", channelList=None, showprofile='True', |
|
1242 | def run(self, dataOut, idfigure, wintitle="", channelList=None, showprofile='True', | |
1243 | xmin=None, xmax=None, ymin=None, ymax=None, |
|
1243 | xmin=None, xmax=None, ymin=None, ymax=None, | |
1244 | timerange=None, |
|
1244 | timerange=None, | |
1245 | save=False, figpath='./', figfile=None, ftp=False, ftpratio=1, show=True): |
|
1245 | save=False, figpath='./', figfile=None, ftp=False, ftpratio=1, show=True, useLocalTime=False, timezone=0): | |
1246 |
|
1246 | |||
1247 | if channelList == None: |
|
1247 | if channelList == None: | |
1248 | channelIndexList = dataOut.channelIndexList |
|
1248 | channelIndexList = dataOut.channelIndexList | |
@@ -1272,6 +1272,13 class RTIfromSpectraHeis(Figure): | |||||
1272 | # noisedB = 10*numpy.log10(noise) |
|
1272 | # noisedB = 10*numpy.log10(noise) | |
1273 |
|
1273 | |||
1274 | thisDatetime = dataOut.datatime |
|
1274 | thisDatetime = dataOut.datatime | |
|
1275 | if useLocalTime: | |||
|
1276 | first_timezone = dataOut.timeZone | |||
|
1277 | first_useLocalTime = dataOut.useLocalTime | |||
|
1278 | dataOut.timeZone = timezone | |||
|
1279 | dataOut.useLocalTime = useLocalTime | |||
|
1280 | thisDatetime = datetime.datetime.utcfromtimestamp(dataOut.ltctime) | |||
|
1281 | ||||
1275 | title = "RTI: %s" %(thisDatetime.strftime("%d-%b-%Y")) |
|
1282 | title = "RTI: %s" %(thisDatetime.strftime("%d-%b-%Y")) | |
1276 | xlabel = "Local Time" |
|
1283 | xlabel = "Local Time" | |
1277 | ylabel = "Intensity (dB)" |
|
1284 | ylabel = "Intensity (dB)" | |
@@ -1339,5 +1346,6 class RTIfromSpectraHeis(Figure): | |||||
1339 | del self.xdata |
|
1346 | del self.xdata | |
1340 | del self.ydata |
|
1347 | del self.ydata | |
1341 |
|
1348 | |||
1342 |
|
1349 | dataOut.timeZone = first_timezone | ||
|
1350 | dataOut.useLocalTime = first_useLocalTime | |||
1343 | No newline at end of file |
|
1351 |
General Comments 0
You need to be logged in to leave comments.
Login now