I am having trouble adding minor tick marks to an auto-scaled axis on a linear plot. I hope someone can help.
I am drawing a plot where the X axis values are predictable, so I have the ability to define the desired major/minor intervals for tickmarks and gridlines. The scale of the X axis is automatically defined by matplotlib. I have manually specified the major and minor X axis tick/grid intervals using:
My Y axis values are not predictable, so I rely on matplotlib to autoscale the Y axis, automatically defining the total range of values plotted and the major tickmark & gridline intervals. I need more gridline resolution, so I would like to be able to add minor gridlines to the automatically scaled Y axis, but I'm having trouble doing it.
At present the autoscaled Y axis is only producing major ticks and major gridlines. I'd like to add minor ticks and gridlines, but I have not been successful so far. I'm hoping that someone can point out an obvious solution that I've just overlooked. TIA.