@@ -204,10 +204,11 def pline(iplot, x, y, xlabel='', ylabel='', title=''): | |||||
204 |
|
204 | |||
205 | def createPcolor(ax, x, y, z, xmin, xmax, ymin, ymax, zmin, zmax, |
|
205 | def createPcolor(ax, x, y, z, xmin, xmax, ymin, ymax, zmin, zmax, | |
206 | xlabel='', ylabel='', title='', ticksize = 9, |
|
206 | xlabel='', ylabel='', title='', ticksize = 9, | |
207 |
cblabel='', |
|
207 | cblabel='', cbsize="5%", | |
|
208 | XAxisAsTime=False): | |||
208 |
|
209 | |||
209 | divider = make_axes_locatable(ax) |
|
210 | divider = make_axes_locatable(ax) | |
210 |
ax_cb = divider.new_horizontal(size= |
|
211 | ax_cb = divider.new_horizontal(size=cbsize, pad=0.05) | |
211 | fig = ax.get_figure() |
|
212 | fig = ax.get_figure() | |
212 | fig.add_axes(ax_cb) |
|
213 | fig.add_axes(ax_cb) | |
213 |
|
214 | |||
@@ -220,8 +221,6 def createPcolor(ax, x, y, z, xmin, xmax, ymin, ymax, zmin, zmax, | |||||
220 | cb = matplotlib.pyplot.colorbar(imesh, cax=ax_cb) |
|
221 | cb = matplotlib.pyplot.colorbar(imesh, cax=ax_cb) | |
221 | cb.set_label(cblabel) |
|
222 | cb.set_label(cblabel) | |
222 |
|
223 | |||
223 | ax_cb.yaxis.tick_right() |
|
|||
224 |
|
||||
225 | # for tl in ax_cb.get_yticklabels(): |
|
224 | # for tl in ax_cb.get_yticklabels(): | |
226 | # tl.set_visible(True) |
|
225 | # tl.set_visible(True) | |
227 |
|
226 |
@@ -162,7 +162,7 class RTIPlot(Figure): | |||||
162 | axes.pcolor(x, y, z, |
|
162 | axes.pcolor(x, y, z, | |
163 | xmin=tmin, xmax=tmax, ymin=ymin, ymax=ymax, zmin=zmin, zmax=zmax, |
|
163 | xmin=tmin, xmax=tmax, ymin=ymin, ymax=ymax, zmin=zmin, zmax=zmax, | |
164 | xlabel=xlabel, ylabel=ylabel, title=title, rti=True, XAxisAsTime=True, |
|
164 | xlabel=xlabel, ylabel=ylabel, title=title, rti=True, XAxisAsTime=True, | |
165 | ticksize=9, cblabel='') |
|
165 | ticksize=9, cblabel='', cbsize="1%") | |
166 |
|
166 | |||
167 | if self.__showprofile: |
|
167 | if self.__showprofile: | |
168 | axes = self.axesList[i*self.__nsubplots +1] |
|
168 | axes = self.axesList[i*self.__nsubplots +1] |
General Comments 0
You need to be logged in to leave comments.
Login now