Changeset 2632 for TOOLS


Ignore:
Timestamp:
08/26/15 11:56:43 (9 years ago)
Author:
labetoulle
Message:

add minor ticks

Location:
TOOLS/ConsoGENCMIP6/bin
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/ConsoGENCMIP6/bin/plot_bilan.py

    r2631 r2632  
    240240  """ 
    241241  """ 
     242  from matplotlib.ticker import AutoMinorLocator 
     243 
    242244  # ... Config axes ... 
    243245  # ------------------- 
     
    292294    maj_xlabs, rotation="vertical", size="x-small" 
    293295  ) 
     296 
     297  minor_locator = AutoMinorLocator() 
     298  ax.yaxis.set_minor_locator(minor_locator) 
    294299 
    295300  yticks = list(ax_conso.get_yticks()) 
  • TOOLS/ConsoGENCMIP6/bin/plot_bilan_jobs.py

    r2631 r2632  
    262262  """ 
    263263  """ 
     264  from matplotlib.ticker import AutoMinorLocator 
     265 
    264266  # ... Config axes ... 
    265267  # ------------------- 
     
    320322    (ax_jobs, conso_per_day / 24., "cœurs"), 
    321323  ): 
     324    minor_locator = AutoMinorLocator() 
     325    ax.yaxis.set_minor_locator(minor_locator) 
     326 
    322327    yticks = list(ax.get_yticks()) 
    323328    yticks.append(y) 
  • TOOLS/ConsoGENCMIP6/bin/plot_jobs.py

    r2631 r2632  
    216216  """ 
    217217  """ 
     218  from matplotlib.ticker import AutoMinorLocator 
     219 
    218220  # ... Config axes ... 
    219221  # ------------------- 
     
    241243  ax.set_xticks(maj_xticks, minor=False) 
    242244  ax.set_xticklabels(maj_xlabs, rotation="vertical", size="x-small") 
     245 
     246  minor_locator = AutoMinorLocator() 
     247  ax.yaxis.set_minor_locator(minor_locator) 
    243248 
    244249  yticks = list(ax.get_yticks()) 
  • TOOLS/ConsoGENCMIP6/bin/plot_login.py

    r2526 r2632  
    100100  """ 
    101101  """ 
     102  from matplotlib.ticker import AutoMinorLocator 
     103 
    102104  # ... Config axes ... 
    103105  # ------------------- 
     
    111113  ax.set_yticklabels(ylabels, size="x-small", fontweight="bold") 
    112114  ax.invert_yaxis() 
     115 
     116  minor_locator = AutoMinorLocator() 
     117  ax.xaxis.set_minor_locator(minor_locator) 
    113118 
    114119  # 3) Define axes title 
  • TOOLS/ConsoGENCMIP6/bin/plot_store.py

    r2526 r2632  
    169169  """ 
    170170  """ 
     171  from matplotlib.ticker import AutoMinorLocator 
     172 
    171173  # ... Config axes ... 
    172174  # ------------------- 
     
    180182  ax.set_yticklabels(ylabels, size="x-small", fontweight="bold") 
    181183  ax.invert_yaxis() 
     184 
     185  minor_locator = AutoMinorLocator() 
     186  ax.xaxis.set_minor_locator(minor_locator) 
    182187 
    183188  xmin, xmax = ax.get_xlim() 
Note: See TracChangeset for help on using the changeset viewer.