fix windowed plotting method