I'm trying to plot a signal that lasts 20-30min with 62 samples per second. For visual and research purposes I want the timestamps to scale and change just like the index values do with matplotlib but didn't find a solution to that. After ditching that idea I'm settling for timestamps on the 5 second marks and minor ticks on the second.
I've tried to use .set_minor_locator() but the max ticks it can make is 1000 and I'm dealing with data that would make more than 1000. I saw that plt.xticks() has 'minor=Flase' which should do what I want when True, but no matter my label type this error comes up : AttributeError: 'Text' object has no property 'minor'. I can't find anywhere else where someone has used minor=True. Has anyone else encountered this?
That limit is more of a suggestion than an actual rule. It will warn you if you go above 1K ticks, but it won't stop you.
Here's an example which makes 10000 ticks:
This shows the following warning:
But if you also want it to not show a warning, you can silence it like this.
This overrides the value used for the
MAXTICKScheck. You can do this for anyLocator.