You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pyqt...@googlegroups.com
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
Message has been deleted
Yusuke Yoshihara
unread,
Oct 11, 2016, 9:52:15 AM10/11/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pyqtgraph
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).