Changeset 2434
- Timestamp:
- 03/05/15 12:52:00 (10 years ago)
- Location:
- TOOLS/ConsoGENCMIP6/bin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/ConsoGENCMIP6/bin/plot_bilan.py
r2433 r2434 197 197 198 198 ######################################## 199 def plot_config(ax_conso, ax_theo, xcoord, xlabels, ymax, title ):199 def plot_config(ax_conso, ax_theo, xcoord, xlabels, ymax, title, conso_per_day): 200 200 """ 201 201 """ … … 216 216 xlabels[::inc_label], rotation="45", size="x-small" 217 217 ) 218 219 yticks = list(ax_conso.get_yticks()) 220 yticks.append(conso_per_day) 221 ax_conso.set_yticks(yticks) 218 222 219 223 # 3) Define axes title … … 394 398 ) 395 399 396 plot_config(ax_conso, ax_theo, xcoord, xlabels, ymax, title )400 plot_config(ax_conso, ax_theo, xcoord, xlabels, ymax, title, conso_per_day) 397 401 398 402 # ... Save figure ... -
TOOLS/ConsoGENCMIP6/bin/plot_jobs.py
r2433 r2434 181 181 182 182 ######################################## 183 def plot_config(ax, xcoord, xlabels, title ):183 def plot_config(ax, xcoord, xlabels, title, conso_per_day): 184 184 """ 185 185 """ … … 201 201 ax.set_xticks(xcoord_maj, minor=False) 202 202 ax.set_xticklabels(xlabels_maj, rotation="vertical", size="x-small") 203 204 yticks = list(ax.get_yticks()) 205 yticks.append(conso_per_day) 206 ax.set_yticks(yticks) 203 207 204 208 # 3) Define axes title … … 376 380 ) 377 381 378 plot_config(ax, xcoord, xlabels, title )382 plot_config(ax, xcoord, xlabels, title, conso_per_day) 379 383 380 384 # ... Save figure ...
Note: See TracChangeset
for help on using the changeset viewer.