# Time scrollbar does not work as desired when using raw.plot

**URL:** <https://mne.discourse.group/t/time-scrollbar-does-not-work-as-desired-when-using-raw-plot/5704>\
**Category:** Support & Discussions\
**Tags:** visualization\
**Created:** [October 9, 2022, 2:04pm UTC](https://mne.discourse.group/t/time-scrollbar-does-not-work-as-desired-when-using-raw-plot/5704 "2022-10-09T14:04:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaulF](https://avatars.discourse-cdn.com/v4/letter/p/eb9ed0/32.png) [@PaulF](https://mne.discourse.group/u/PaulF)\
**Post date:** [October 9, 2022, 2:04pm UTC](https://mne.discourse.group/t/time-scrollbar-does-not-work-as-desired-when-using-raw-plot/5704/1 "2022-10-09T14:04:15Z")

</div>

- MNE version: 1.0.dev0 (yes–I realize this is not up to date, but my issue goes back several versions)
- macOS 12.5.1

For a simple raw data plot, I have no problems using the keyboard to scroll through data, adjust scaling, etc. However, when I select the scrollbar box at the bottom of my plot, I cannot drag it to advance through my signal as one might expect. Clicking just to the right or left of the box works fine. I realize this is a small aesthetic detail, but I’m wondering if there’s a way to remedy this.

```python
import mne
file='my_file.edf'
raw=mne.io.read_raw_edf(file, preload=True)
raw.plot(duration=20,bgcolor='w',color='b', bad_color='r')

```

---

<div class="post-metadata">

**Author:** ![mscheltienne](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/mscheltienne/32/827_2.png) [@mscheltienne](https://mne.discourse.group/u/mscheltienne)\
**Post date:** [October 10, 2022, 2:52pm UTC](https://mne.discourse.group/t/time-scrollbar-does-not-work-as-desired-when-using-raw-plot/5704/2 "2022-10-10T14:52:57Z")

</div>

It’s a bit difficult to visualize the problem, could you create and upload a short screen capture of this issue?  
On macOS, this can be done super easily by using the default screenshot tool (Applications/Utilities/Screenshot).

---

<div class="post-metadata">

**Author:** ![richard](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/richard/32/15_2.png) [@richard](https://mne.discourse.group/u/richard)\
**Post date:** [October 10, 2022, 5:06pm UTC](https://mne.discourse.group/t/time-scrollbar-does-not-work-as-desired-when-using-raw-plot/5704/3 "2022-10-10T17:06:08Z")

</div>

Also you may wish to try out the `mne-qt-browser`, a new and modern interface for Raw and Epochs plots

---

<div class="post-metadata">

**Author:** ![PaulF](https://avatars.discourse-cdn.com/v4/letter/p/eb9ed0/32.png) [@PaulF](https://mne.discourse.group/u/PaulF)\
**Post date:** [October 10, 2022, 5:15pm UTC](https://mne.discourse.group/t/time-scrollbar-does-not-work-as-desired-when-using-raw-plot/5704/4 "2022-10-10T17:15:56Z")

</div>

Here’s an image. I’ve inserted a black arrow at the slider location that I wish to simply drag from left to right with my mouse in order to advance the time. Clicking the mouse where I’ve drawn the red arrow does advance the slider though.

 ![Screen Shot 2022-10-10 at 12.58.13 PM](https://global.discourse-cdn.com/free1/uploads/mne/original/2X/0/0f485a3519238c6d9233f299e550e9dd4699284f.jpeg)

---

<div class="post-metadata">

**Author:** ![mscheltienne](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/mscheltienne/32/827_2.png) [@mscheltienne](https://mne.discourse.group/u/mscheltienne)\
**Post date:** [October 10, 2022, 6:38pm UTC](https://mne.discourse.group/t/time-scrollbar-does-not-work-as-desired-when-using-raw-plot/5704/5 "2022-10-10T18:38:01Z")

</div>

Oh, I did not notice you were using the old matplotlib browser.  
Indeed, I think the slider can not be dragged on this one. Honestly, you should give a shot to the new `mne-qt-browser`, which is available as of version 1.0. I think you will find the experience way more pleasant 🙂

To use the `mne-qt-browser`, make sure it’s installed in your environment. You can check with:

```python
import mne
print (mne.sys_info())

```

And then, I think you need to enable it in version 1.0 and it became the default in 1.1 (don’t quote me on that). You can enable the browser by setting the `qt` backend before plotting (e.g. at the top of your script):

```python
from mne.viz import set_browser_backend
set_browser_backend("qt")

```

---

<div class="post-metadata">

**Author:** ![PaulF](https://avatars.discourse-cdn.com/v4/letter/p/eb9ed0/32.png) [@PaulF](https://mne.discourse.group/u/PaulF)\
**Post date:** [October 12, 2022, 10:48pm UTC](https://mne.discourse.group/t/time-scrollbar-does-not-work-as-desired-when-using-raw-plot/5704/6 "2022-10-12T22:48:24Z")

</div>

Update: I was able to resolve my issue by settin block=True in my raw.plot()
