Merge pull request #1706 from ntjess/update-mkPen

promote use of '#' in mkPen
This commit is contained in:
Ogi Moore 2021-04-10 20:21:53 -07:00 committed by GitHub
commit a3443571f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -331,7 +331,7 @@ def mkPen(*args, **kargs):
mkPen(color)
mkPen(color, width=2)
mkPen(cosmetic=False, width=4.5, color='r')
mkPen({'color': "FF0", width: 2})
mkPen({'color': "#FF0", width: 2})
mkPen(None) # (no pen)
In these examples, *color* may be replaced with any arguments accepted by :func:`mkColor() <pyqtgraph.mkColor>` """