diff --git a/schainpy/model/graphics/mpldriver.py b/schainpy/model/graphics/mpldriver.py index d46a27c..763be9c 100644 --- a/schainpy/model/graphics/mpldriver.py +++ b/schainpy/model/graphics/mpldriver.py @@ -302,7 +302,7 @@ def pmultiline(iplot, x, y, xlabel='', ylabel='', title=''): def createPmultilineYAxis(ax, x, y, xmin, xmax, ymin, ymax, xlabel='', ylabel='', title='', legendlabels=None, ticksize=9, xtick_visible=True, ytick_visible=True, - nxticks=4, nyticks=10, marker='+', markersize=8, linestyle="solid", + nxticks=4, nyticks=10, marker='.', markersize=10, linestyle="None", grid=None, XAxisAsTime=False): """ @@ -314,7 +314,7 @@ def createPmultilineYAxis(ax, x, y, xmin, xmax, ymin, ymax, xlabel='', ylabel='' matplotlib.pyplot.ioff() # lines = ax.plot(x, y.T, marker=marker,markersize=markersize,linestyle=linestyle) - lines = ax.plot(x, y.T, 'o', markersize=5) + lines = ax.plot(x, y.T, linestyle='None', marker='.', markersize=markersize) leg = ax.legend(lines, legendlabels, loc='upper left', bbox_to_anchor=(1.01, 1.00), numpoints=1, handlelength=1.5, \ handletextpad=0.5, borderpad=0.5, labelspacing=0.5, borderaxespad=0.) diff --git a/schainpy/model/jroplot.py b/schainpy/model/jroplot.py index 75b2538..f4a8c53 100644 --- a/schainpy/model/jroplot.py +++ b/schainpy/model/jroplot.py @@ -1242,7 +1242,7 @@ class RTIfromSpectraHeis(Figure): def run(self, dataOut, idfigure, wintitle="", channelList=None, showprofile='True', xmin=None, xmax=None, ymin=None, ymax=None, timerange=None, - save=False, figpath='./', figfile=None, ftp=False, ftpratio=1, show=True): + save=False, figpath='./', figfile=None, ftp=False, ftpratio=1, show=True, useLocalTime=False, timezone=0): if channelList == None: channelIndexList = dataOut.channelIndexList @@ -1272,6 +1272,13 @@ class RTIfromSpectraHeis(Figure): # noisedB = 10*numpy.log10(noise) thisDatetime = dataOut.datatime + if useLocalTime: + first_timezone = dataOut.timeZone + first_useLocalTime = dataOut.useLocalTime + dataOut.timeZone = timezone + dataOut.useLocalTime = useLocalTime + thisDatetime = datetime.datetime.utcfromtimestamp(dataOut.ltctime) + title = "RTI: %s" %(thisDatetime.strftime("%d-%b-%Y")) xlabel = "Local Time" ylabel = "Intensity (dB)" @@ -1339,5 +1346,6 @@ class RTIfromSpectraHeis(Figure): del self.xdata del self.ydata - + dataOut.timeZone = first_timezone + dataOut.useLocalTime = first_useLocalTime \ No newline at end of file