You might have already solved the problem... but i tried it.

The simplest way that i think is to edit the line 122 and 123 of 
"C:\Python27\Lib\site-packages\pyqtgraph\graphicsItems\LegendItem.py" (in 
the case of windows) or, something equivalent to it
as shown in the following code,
p.setPen(fn.mkPen(0, 0, 0, 255)) #  original -> 
p.setPen(fn.mkPen(255,255,255,100))
p.setBrush(fn.mkBrush(255, 255, 255, 255)) # original -> 
p.setBrush(fn.mkBrush(100,100,100,50))
, and the saving it. Then the background color of your legendItem should 
changes(and the frame clor should be black).

2014年7月26日土曜日 1時55分07秒 UTC+9 Mitul Vekariya:
>
> Hey guys
>
> First of all, thank you for offering such great tool.
>
> Here's the problem: I am using pyqtgraph with white background. When I 
> added legend to my graph, it has opaque black color. I tried a lot to find 
> how to change the color property of legend, but all in vain. Is it possible 
> to change the background of legend to white? 
>
> Thanks
> Mitul Vekariya
>

-- 
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/93376f5e-0e0e-4a33-b4e4-f4a461700b90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to