I figured out how to remove the unwanted two lines. I used the param called "connect" in plotDataItem. for more info read the PlotDataItem
Regards On Friday, 17 March 2017 19:00:20 UTC-4, Rajab Legnain wrote: > > > Thanks Sebastian for help. > When I did what you told me, I got this. please look at the new photo. > The issue is that I don't want a connecting line between the > discontinuous points. how to remove the line that marked by arrow. > > > > > > On Friday, 17 March 2017 08:05:13 UTC-4, Sebastian Höfer wrote: >> >> 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/9c71012d-09be-49c1-8a08-28dddadbd600%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
