Hi, the easiest way would be to unwrap your phase before plotting it. There is already a function for that in numpy: https://docs.scipy.org/doc/numpy/reference/generated/numpy.unwrap.html Per default it expects the data to be in radians, but it should be configurable to degrees or just convert it to radians before unwrapping.
Regards S Am Freitag, 17. März 2017 00:52:34 UTC+1 schrieb Rajab Legnain: > > Hello Every One > > I have a question, hoping someone has the answer. > > > > <https://lh3.googleusercontent.com/-nyNLCtC-QbY/WMskW2UnsRI/AAAAAAAACX8/Y5bG730UpIw4Y-04Xd0IVrM7IyOeK_bGgCLcB/s1600/plot.png> > > I am trying to create a graph for phase curves. This graph will wrap the > value if it is larger than 180 degree or smaller than -180. > > I have attached a photos shows what exactly I want to do. > > > Thanks for help in advance. > > > > I > > <https://lh3.googleusercontent.com/-nyNLCtC-QbY/WMskW2UnsRI/AAAAAAAACX8/Y5bG730UpIw4Y-04Xd0IVrM7IyOeK_bGgCLcB/s1600/plot.png> > > > <https://lh3.googleusercontent.com/-nyNLCtC-QbY/WMskW2UnsRI/AAAAAAAACX8/Y5bG730UpIw4Y-04Xd0IVrM7IyOeK_bGgCLcB/s1600/plot.png> > > > -- 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/d7383f46-e0b9-4d2d-9c5e-05baa5b1a07a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
