0

I'm using matplotlib to make some plots, and I was wondering if you have any idea about adding smaller ticks in between the main ones, like in this image:

enter image description here

Primusa
  • 13,136
  • 3
  • 33
  • 53
  • 3
    The larger ticks are called major ticks, the smaller ones are called minor ticks. Those notions should allow you to search for soltutions. – ImportanceOfBeingErnest Mar 14 '19 at 00:24
  • Let me get you started by referring [this](https://stackoverflow.com/questions/12711202/how-to-turn-on-minor-ticks-only-on-y-axis-matplotlib) and [this](https://matplotlib.org/gallery/ticks_and_spines/major_minor_demo.html) – Sheldore Mar 14 '19 at 00:28
  • thank you! problem solved. I just set ax.tick_params(axis='x', which='minor') –  Mar 14 '19 at 00:32
  • 1
    @jorafb you can answer your own question and accept your answer so people know it's solved :) – c2huc2hu Mar 14 '19 at 02:02

0 Answers0