How get last used horizontal scrollbar coordinate (as variable) in raw_EEG.plot() to replot() at same point

Dear Sr.
Is that simple (but I can’t find it anywhere):

I need the last scrollbar coordinate used before closing raw.plot().
I need it to use in “start” when reopening plot(). I want to plot again in previous last location.
In fact I´m changing references (double banana, transverse, left-right referential, etc) and replotting but it restarts at 0.0 and I want to replot at the point where EEG was closed before.

fig = raw.plot(events=None, duration=10.0, start=0.0, )

Or a way to just update same plot with new montages, filters, etc

Thanks in advance
Paulo Kanda
University of Sao Paulo
Brazil

Figured it out if it is usefull for someone

       # prints mouse button coordinates
        def onclick(event):
            print('%s click: button=%d, x=%d, y=%d, xdata=%f, ydata=%f' %
                  ('double' if event.dblclick else 'single', event.button,
                   event.x, event.y, event.xdata, event.ydata))
        cid = fig.canvas.mpl_connect('button_press_event', onclick)



        # prints key coordenates when pressed
        def on_key(event):
            print('you pressed', event.key, event.x, event.y, event.xdata, event.ydata)
        cid = fig.canvas.mpl_connect('key_press_event', on_key)

if you do fig = raw.plot() then you can get the start time of the currently viewed window as fig.mne.t_start and the window width as fig.mne.duration

Thank you for your time Mr. McCloy, but I’ve tried a couple of times and fig.mne.t_start gives me 0.0 ever. I need the last scrolled page. It was possible using

def onclick(event)

or

def on_key(event):

the result was 

 print('you pressed', event.key, event.x, event.y,    event.xdata,         event.ydata)
           you pressed   right    401       179        184.9399797242498   16.60843373493976

the x coordinate is ----> event.xdata

in this example 184.9399797242498

best regards
Paulo Kanda

For me it works:

$ ipython
In [1]: import os
   ...: import mne
   ...: sample_data_folder = mne.datasets.sample.data_path()
   ...: sample_data_raw_file = os.path.join(sample_data_folder, 'MEG', 'sample',
   ...:                                     'sample_audvis_raw.fif')
   ...: raw = mne.io.read_raw_fif(sample_data_raw_file, verbose=False, preload=False)
   ...: fig = raw.plot()
   ...: # now press shift + →  3 times
In [2]: print(fig.mne.t_start)
30.0

Now I get it. Just what I needed!

Thank you very much!