Want to say their own "bumpy" experience, but also hope that there is a need to solve the needs of the basin friends do not go a little detour ...
Pyqtgraph Chinese information is very few, with Chinese Baidu had no fruit, with Bing search pyqtgraph time axis and other find some crooked country basin friends and I have the same problem, but he finally did not solve, and then I found that Pyqtgraph has an official example, You can open the cmd input python-m pyqtgraph.examples, where
This is similar to the axis I want to set the time type for, and it works like this:
Then migrated to my project, of course, direct migration and the coordinates in the above figure is the same, carefully studied the Axisitem this class found that the tickstring has another definition, so Baidu found this reference http://stackoverflow.com/questions/ 31775468/show-string-values-on-x-axis-in-pyqtgraph, I basically solved my problem here, haha >_<