0

enter image description here I am trying to plot the major ticks on the y-axis of the loglog plot in matplotlib. The plot has ticks ($10^{0}, 10^{-5}, 10^{-10},...$) on the y-axis but I want to indicate the tick marks in between the intervals like for $10^{-1}, 10^{-2}, 10^{-3}, 10^{-4}$ without actual display of ticks.

locmin = matplotlib.ticker.LogLocator(base=10.0,subs=(0.2,0.4,0.6,0.8),numticks=5)
ax.yaxis.set_major_locator(locmin)

I expect the output to include the major tick marks for each of the values ($10^{-1}, 10^{-2},...$) in the y-axis but with ticks display of only the values with a span of $10^{-5}$.

math123
  • 23
  • 1
  • 5

0 Answers0