comparison climate_stripes.py @ 1:c6f2435d680b draft

"planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/climate-stripes commit 78edbd356193b8a8701ff7a28b7979c7047c0c5b"
author climate
date Tue, 14 Apr 2020 15:08:10 -0400
parents fec3147b0206
children abdc27e01dca
comparison
equal deleted inserted replaced
0:fec3147b0206 1:c6f2435d680b
80 data[0, :] = self.data[self.valname] 80 data[0, :] = self.data[self.valname]
81 data[1, :] = self.data[self.valname] 81 data[1, :] = self.data[self.valname]
82 fig = plt.figure(figsize=(10, 2)) 82 fig = plt.figure(figsize=(10, 2))
83 ax = plt.subplot(111) 83 ax = plt.subplot(111)
84 plt.pcolor(data, cmap=self.cmap, 84 plt.pcolor(data, cmap=self.cmap,
85 vmin=self.data[self.valname].min(), 85 vmin=self.data[self.valname].quantile(q=0.01),
86 vmax=self.data[self.valname].max()) 86 vmax=self.data[self.valname].quantile(q=0.99))
87 if self.title: 87 if self.title:
88 plt.title(self.title) 88 plt.title(self.title)
89 if self.xname: 89 if self.xname:
90 nrange = self.data.index.values 90 nrange = self.data.index.values
91 n = int(np.floor((nrange.max() - nrange.min())/int(self.nxsplit))) 91 n = int(np.floor((nrange.max() - nrange.min())/int(self.nxsplit)))