python - Issue in setting the background color in pyqtgraph -


i've got issue when using pyqtgraph module in python. when put white background color glscatterplot, scatter dots vanish. if color of background added color of scatterplot therefore white. here piece of code use:

w = gl.glviewwidget() w.setbackgroundcolor('w') w.show() sp3 = gl.glscatterplotitem(pos=np.transpose(pos3), color=rgba_img, size=1, pxmode=false) w.additem(sp3) 

if replace ('w') ('k') in setbackgroundcolor method color of scatter fine , background black. did else ever issue?

i think reason haven't set foreground colour. try:

import pyqtgraph pg  pg.setconfigoption('background', 'w') pg.setconfigoption('foreground', 'k') 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -