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

javascript - How to process users in one specific order using map o each function? -

java - Two interface have same method name with different return type -

javascript - Linking from page A to a specific iframe on page B -