Hi Luke and JLM,

I have the same issue! I set scatterItem.setGLOptions('translucent') with 
alphas set to the max, 255. Is there some reason for this behavior? 

BR,

Jamin Hu

On Tuesday, May 13, 2014 at 4:34:09 PM UTC+3 [email protected] wrote:

> Actually.... Another funny bug...
>
> When the points are fully opaque, the corners of the sprite are opaque as 
> well (I'm assuming you colored them with the background color).  This would 
> be fine if points didn't overlap from a given view angle, but it looks a 
> little funny when they do.  Is there a way to make the corners transparent, 
> and the circles opaque?  I looked through GLScatterPlotItem.py and didn't 
> see an obvious fix to me, but I have no openGL experience.
>
> Let me know what you think about this.. Screenshot is attached.
>
>
>
> On Tue, May 13, 2014 at 8:17 AM, Jeffery McGehee <[email protected]> 
> wrote:
>
>> Sorry for the delayed response, I got busy on another project...  Your 
>> fix is giving me the results I wanted! I really appreciate the dedicated 
>> support! 
>>
>> I simply changed the code in my currently installed package rather than 
>> pull down your branch and reinstall. Thanks a ton!
>>
>> Jeff
>>
>>
>> On Thu, May 8, 2014 at 9:39 PM, Luke Campagnola <[email protected]> 
>> wrote:
>>
>>> On Thu, May 8, 2014 at 4:35 PM, Jeffery McGehee <[email protected]> 
>>> wrote:
>>>
>>>> The datapoints are still translucent in 'translucent' mode.  Even with 
>>>> the alpha column of the RGBA matrix set to 1.0 . See attachment.  If I try 
>>>> low alpha values, it does make the points obviously more transparent.  So 
>>>> it's working to some extent.  If I 
>>>>
>>> try values larger than one, it looks the same as the image I have 
>>>> attached, but it does not throw an exception.
>>>>
>>>
>>> Right you are! In opengl/items/GLScatterPlotItem.py ~line 62, I see: 
>>>
>>>                 return 200 * (w/2. - np.clip(r, w/2.-1.0, w/2.))
>>>
>>> That constant should have been 255, not 200. I have pushed a fix to the 
>>> develop branch. 
>>> Thanks for the report!
>>>
>>> -- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "pyqtgraph" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/pyqtgraph/2M2hwIW-vgM/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> [email protected].
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/pyqtgraph/CACZXET9rTjiHE-c%2BZoXN54iuf1tdM4Vh43778rGYDFo8mbEVOA%40mail.gmail.com
>>>  
>>> <https://groups.google.com/d/msgid/pyqtgraph/CACZXET9rTjiHE-c%2BZoXN54iuf1tdM4Vh43778rGYDFo8mbEVOA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>

-- 
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/b03dd23b-1b6c-4514-8566-8ae4ea3329ebn%40googlegroups.com.

Reply via email to