attempting to fix graphics glitch in PlotWidget