Is there any example that shows how to display datetime format on the axis?
Hi Luke,
First off, pyqtgraph has been great to the project I'm working on. Thanks a bunch!
Second. I too am trying to implement a plot with datetime on the x axis. Right now the x axis is in Unix time in microseconds. I need to keep the data within this order of magnitude, but I'd really like it to have it display in a more natural format. I've tried playing around with the DateAxis class in the customPlot.py that you suggested above but can't get it to come out correctly. Is there anything other examples I can go off of? Any help would be greatly appreciated.
Hi everybody,
I've implemented my own DateAxis, which seems to be working nicely. Is this of any interest to anybody? Should I submit a pull request?
One thing about my implementation is that it is using pandas for timestamp manipulation, which might cause an undesirable external dependency... The reason I decided to use pandas is that it provides the best tools I konw for manipulating timestamps and time frequencies (by far, IMO).
--
You received this message because you are subscribed to a topic in the Google Groups "pyqtgraph" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyqtgraph/pSIn0xNGodA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyqtgraph+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/affaa055-cdde-4852-9040-2743c3668553%40googlegroups.com.
git clone https://github.com/pyqtgraph/pyqtgraphRegards,
cd pyqtgraph
sudo python setup.py install
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/ab541635-c700-49c6-b946-d44e00b76588%40googlegroups.com.
import pandas as pdTypeError Traceback (most recent call last)
C:\Users\Petr\Anaconda\lib\site-packages\pyqtgraph\graphicsItems\AxisItem.pyc in paint(self, p, opt, widget)
523 picture = QtGui.QPicture()
524 painter = QtGui.QPainter(picture)
--> 525 specs = self.generateDrawSpecs(painter)
526 profiler('generate specs')
527 if specs is not None:
C:\Users\Petr\Anaconda\lib\site-packages\pyqtgraph\graphicsItems\AxisItem.pyc in generateDrawSpecs(self, p)
928 strings = tickStrings[i]
929
--> 930 if len(strings) == 0:
931 continue
932
TypeError: object of type 'NoneType' has no len()
Hi Andreas
Here’s another one I implemented years ago: https://github.com/3rdcycle/pyqtgraph/tree/date-axis-item
It never got merged for some reason and I haven’t pulled upstream for almost a year but should still work with the latest version of pyqtgraph I guess.
Lukas
--
You received this message because you are subscribed to a topic in the Google Groups "pyqtgraph" group.
To unsubscribe from this topic, visit
To unsubscribe from this group and all its topics, send an email to
pyqtgraph+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/a862b502-829a-445a-8b46-8e6405e1c266%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
.
To unsubscribe from this group and all its topics, send an email to pyqtgraph+unsubscribe@googlegroups.com.
To view this discussion on the web visit