I tried it but it still connects the two points before the nan and after the nan. Is there a way to make the plot disconnected?
On Thursday, March 6, 2014 at 3:21:33 AM UTC+2, Luke Campagnola wrote: > > On Wed, Mar 5, 2014 at 5:56 PM, Peter 'mash' Morgan <[email protected] > <javascript:>> wrote: > >> Is it possible to set "null" points, ie a symbol would not appear eg >> >> >> chartWidget = pg.PlotWidget() >> chartWidget.plot([None, None, 1 2], name="2012", symbol='o') >> chartWidget.plot([4, 5, 6, 7], name="2013", symbol='o') >> chartWidget.plot([8,9, None, None], name="2014", symbol='o') >> >> In this case the first and last plots, the line is trauncated with no >> data to preset >> >> Use np.nan; Qt will automatically omit these when drawing. > > -- 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/99eefa4e-05f8-4151-bc43-4a373a5ca123%40googlegroups.com.
