@@ -7,7 +7,7 if 'linux' in sys.platform: | |||
|
7 | 7 | matplotlib.use("TKAgg") |
|
8 | 8 | |
|
9 | 9 | if 'darwin' in sys.platform: |
|
10 | matplotlib.use("TKAgg") | |
|
10 | matplotlib.use("GTKAgg") | |
|
11 | 11 | |
|
12 | 12 | import matplotlib.pyplot |
|
13 | 13 | |
@@ -103,7 +103,8 def createPline(ax, x, y, xmin, xmax, ymin, ymax, xlabel='', ylabel='', title='' | |||
|
103 | 103 | xtickspos = numpy.array([float("%.1f"%i) for i in xtickspos]) |
|
104 | 104 | ax.set_xticks(xtickspos) |
|
105 | 105 | else: |
|
106 | xtickspos = numpy.arange(nxticks)*int((xmax-xmin)/(nxticks)) + int(xmin) | |
|
106 | # xtickspos = numpy.arange(nxticks)*int((xmax-xmin)/(nxticks)) + int(xmin) | |
|
107 | xtickspos = numpy.arange(nxticks)*float(xmax-xmin)/float(nxticks) + int(xmin) | |
|
107 | 108 | ax.set_xticks(xtickspos) |
|
108 | 109 | |
|
109 | 110 | for tick in ax.get_xticklabels(): |
@@ -821,6 +821,8 class CoherenceMap(Figure): | |||
|
821 | 821 | tmin, tmax = self.getTimeLim(x, xmin, xmax) |
|
822 | 822 | if ymin == None: ymin = numpy.nanmin(y) |
|
823 | 823 | if ymax == None: ymax = numpy.nanmax(y) |
|
824 | if zmin == None: zmin = 0. | |
|
825 | if zmax == None: zmax = 1. | |
|
824 | 826 | |
|
825 | 827 | self.name = thisDatetime.strftime("%Y%m%d_%H%M%S") |
|
826 | 828 | |
@@ -844,7 +846,7 class CoherenceMap(Figure): | |||
|
844 | 846 | title = "Coherence %d%d: %s" %(pair[0], pair[1], thisDatetime.strftime("%d-%b-%Y %H:%M:%S")) |
|
845 | 847 | axes = self.axesList[i*self.__nsubplots*2] |
|
846 | 848 | axes.pcolorbuffer(x, y, z, |
|
847 |
xmin=tmin, xmax=tmax, ymin=ymin, ymax=ymax, zmin= |
|
|
849 | xmin=tmin, xmax=tmax, ymin=ymin, ymax=ymax, zmin=zmin, zmax=zmax, | |
|
848 | 850 | xlabel=xlabel, ylabel=ylabel, title=title, rti=True, XAxisAsTime=True, |
|
849 | 851 | ticksize=9, cblabel='', colormap=coherence_cmap, cbsize="1%") |
|
850 | 852 | |
@@ -852,7 +854,7 class CoherenceMap(Figure): | |||
|
852 | 854 | counter += 1 |
|
853 | 855 | axes = self.axesList[i*self.__nsubplots*2 + counter] |
|
854 | 856 | axes.pline(coherence, y, |
|
855 |
xmin= |
|
|
857 | xmin=zmin, xmax=zmax, ymin=ymin, ymax=ymax, | |
|
856 | 858 | xlabel='', ylabel='', title='', ticksize=7, |
|
857 | 859 | ytick_visible=False, nxticks=5, |
|
858 | 860 | grid='x') |
General Comments 0
You need to be logged in to leave comments.
Login now