Commit f30c1a59 authored by Luke Campagnola's avatar Luke Campagnola
Browse files

Fixed GLScatterPlotItem to allow opaque spots

parent 89b0a91c
......@@ -18,6 +18,8 @@ pyqtgraph-0.9.9 [unreleased]
- GLViewWidget.itemsAt() now measures y from top of widget to match mouse
event position.
- Made setPen() methods consistent throughout the package
- Fix in GLScatterPlotItem requires that points will appear slightly more opaque
(so you may need to adjust to lower alpha to achieve the same results)
New Features:
- Added ViewBox.setLimits() method
......@@ -88,6 +90,7 @@ pyqtgraph-0.9.9 [unreleased]
- Fixed AxisItem not resizing text area when setTicks() is used
- Removed a few cyclic references
- Fixed Parameter 'readonly' option for bool, color, and text parameter types
- Fixed alpha on GLScatterPlotItem spots (formerly maxed out at alpha=200)
pyqtgraph-0.9.8 2013-11-24
......
......@@ -59,7 +59,7 @@ class GLScatterPlotItem(GLGraphicsItem):
w = 64
def fn(x,y):
r = ((x-w/2.)**2 + (y-w/2.)**2) ** 0.5
return 200 * (w/2. - np.clip(r, w/2.-1.0, w/2.))
return 255 * (w/2. - np.clip(r, w/2.-1.0, w/2.))
pData = np.empty((w, w, 4))
pData[:] = 255
pData[:,:,3] = np.fromfunction(fn, pData.shape[:2])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment