Hi Andreas, You can find an starting example in <pyqtgraph>/examples/customPlot.py
But IMHO, the implemented axis item there is too basic for real purposes (e.g., the tick values do not align with natural time units). We implemented a slightly more advanced DateAxisItem for our own project (Taurus) which you may find useful: https://gist.github.com/cpascual/cdcead6c166e63de2981bc23f5840a98 I hope it helps Carlos PS: The original code comes from: https://github.com/cpascual/taurus/blob/tep17/lib/taurus/qt/qtgui/tpg/ ... but the above gist is adapted by removing all Taurus-specific code so that it can be executed as-is. My intention is to submit this (and other similar stuff) with a PR to pyqtgraph if Luke is interested on it . On Wednesday, January 3, 2018 4:53:31 AM CET Ober Wallis wrote: > Dear Luke > > First many thanks to this cool and helpful tool. > > I stumbled over this thread during my search of examples and advice how to > plot data over timestamp. Currently I am using version 0.10.0 and since in > version 0.9.11 you guys have been playing around with the plotting over > time and therefore I was wondering wheter there is an easy way now to do > so... > > I tried this Thread > <https://groups.google.com/forum/#!topic/pyqtgraph/kGHogKpcZC0> but it > didn't solve my problems, as I have a GUI made with Qt Designer, so I > failed to implement the "CAxisTime"-class. > > Also in the documentation I couldn't find much, except of this hint that > something has been implemented working with time: Displaying images and > video <http://www.pyqtgraph.org/documentation/images.html?highlight=time> > > Best regards > > Andreas > > Am Sonntag, 1. Juni 2014 05:38:47 UTC+2 schrieb Luke Campagnola: > > On Sat, May 31, 2014 at 4:28 PM, shx2 <[email protected] <javascript:>> > > > > wrote: > >> 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? > > > > I am very interested; this is an often-requested feature. (but please do > > not be discouraged if it takes me some time to review your PR) > > > >> 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). > > > > Yes, that would be problematic. I imagine there is not too much code > > required for this.. is it possible to just copy or re-implement the > > relevant code from Pandas? If you do copy anything, please include a note > > about the original source and license of the code. > > > > > > Luke -- +----------------------------------------------------+ Carlos Pascual Izarra Scientific Software Coordinator Computing Division ALBA Synchrotron [http://www.albasynchrotron.es] Carrer de la Llum 2-26 E-08290 Cerdanyola del Valles (Barcelona), Spain E-mail: [email protected] Phone: +34 93 592 4428 +----------------------------------------------------+ -- You received this message because you are subscribed to the Google Groups "pyqtgraph" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/79762032.xEMugOJkeg%40pc218. For more options, visit https://groups.google.com/d/optout.
