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

add minor ticks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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()) 
Note: See TracChangeset for help on using the changeset viewer.