Skip to content
Snippets Groups Projects
Commit eae32af0 authored by Luke Campagnola's avatar Luke Campagnola
Browse files

Added symbol to Legend example

parent e5501b01
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ plt.addLegend() ...@@ -14,7 +14,7 @@ plt.addLegend()
#l = pg.LegendItem((100,60), offset=(70,30)) # args are (size, offset) #l = pg.LegendItem((100,60), offset=(70,30)) # args are (size, offset)
#l.setParentItem(plt.graphicsItem()) # Note we do NOT call plt.addItem in this case #l.setParentItem(plt.graphicsItem()) # Note we do NOT call plt.addItem in this case
c1 = plt.plot([1,3,2,4], pen='r', name='red plot') c1 = plt.plot([1,3,2,4], pen='r', symbol='o', symbolPen='r', symbolBrush=0.5, name='red plot')
c2 = plt.plot([2,1,4,3], pen='g', fillLevel=0, fillBrush=(255,255,255,30), name='green plot') c2 = plt.plot([2,1,4,3], pen='g', fillLevel=0, fillBrush=(255,255,255,30), name='green plot')
#l.addItem(c1, 'red plot') #l.addItem(c1, 'red plot')
#l.addItem(c2, 'green plot') #l.addItem(c2, 'green plot')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment