Maybe it's just me, but I find the Qt graphics API extremely confusing. 
I've had no luck getting this to work.

Another task I have found no way to accomplish is to position a TextItem in 
a fixed location relative to the visible bounds of a PlotWidget. I tried to 
define a resizeEvent that applies setPos,, but that leads to infinite 
recursion:

File "/usr/lib/python3/dist-packages/pyqtgraph/widgets/PlotWidget.py", line 
75, in __getattr__

    if hasattr(self.plotItem, attr):

  [Previous line repeated 325 more times]

RecursionError: maximum recursion depth exceeded



On Saturday, May 12, 2018 at 7:28:02 PM UTC+2, Luke Campagnola wrote:
>
> Qt provides several lower-level drawing primitives. In this case, you 
> probably want QGraphicsPathItem: 
> http://doc.qt.io/archives/qt-4.8/qgraphicspathitem.html
>
> You could also use pg.arrayToQPath to generate the QPath: 
> http://www.pyqtgraph.org/documentation/functions.html#pyqtgraph.arrayToQPath
>
>
> On May 12, 2018 4:48 AM, "Robert Budzyński" <[email protected] 
> <javascript:>> wrote:
>
> I have a PlotDataItem that form a closed polygon, and I would like to fill 
> the interior area with some color other than the background, or perhaps 
> with some other QBrush. How to achieve this? FillBetweenItem does not seem 
> to cover this case.
>
> -- 
> 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] <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pyqtgraph/86fe0a56-85cc-4d19-9149-3b69bedc0081%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/pyqtgraph/86fe0a56-85cc-4d19-9149-3b69bedc0081%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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/d83ec869-340c-4b85-9325-6d207b0f3bea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to