Why doesn't fill between work for you? What I do is create several PlotDataItems. I set PlotDataItem2 to be the same as PlotDataItem1 when y < 70. When y > 70, I set the y values PlotDataItem2 to be equal to 70. The result is that the FillBetweenItem only appears to color in the area between the curves when y > 70.
You can then do the same thing with a FillBetweenItem for PlotDataItem3 and PlotDataItem1 when y < 30. On Thursday, August 4, 2016 at 11:56:02 PM UTC-7, [email protected] wrote: > > Please see the attachment. I want to create a plot like the RSI indicator > on the top of the picture. > > How can i fill some of the data with colors. say, when y > 70 or y < 30 , > fill them with read brush. > > > I have tried fillbetween, the result doesn't fit my need, what can i do? > > > Do i have to calculate each join point and caculate each individual region > to fill? > > > is there any easy solution? > > > > > <https://lh3.googleusercontent.com/-8Zx9ROCtx7E/V6Q3OREdYLI/AAAAAAAAAAM/7zGZlO2OdvI5S9U3nYI4dPre8y30-ISlwCLcB/s1600/aapl.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/3351ad1e-adc7-4c04-aed1-ef70d134c9af%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
