# For more infor, https://github.com/cover-me/qtplotter
# Make sure qtplotter.py is in the same folder as the notebook, or copy-run here.
# use "%matplotlib inline" if "%matplotlib widget" doesn't work.
#If Colab:
# "%matplotlib widget" doesn't work.
# Uncomment two lines below to dump qtplotter.py (and others) to Colab's temporary runtime
#!git clone https://github.com/cover-me/qtplotter
#%cd qtplotter
from qtplotter import *
%matplotlib widget
import re
url = 'https://arxiv.org/src/1912.06071v1/anc/'
_ = urlopen(url).read().decode()
_ = re.findall('>([^"]+mtx)<',_)
url_list = [url+i for i in _]
name_list = [i.replace('.mtx','').lower() for i in _]
flist = dict(zip(name_list,url_list))
dd_flist = widgets.Dropdown(options=name_list,value=name_list[0],description='')
print('Data source: ' + url)
print('Please select a data file:')
dd_flist
Data source: https://arxiv.org/src/1912.06071v1/anc/ Please select a data file:
Dropdown(options=('fig1d', 'fig2b', 'fig2c_1', 'fig2c_2', 'fig3b', 'fig3c', 'fig3d', 'fig3e', 'fig3f', 'figs1_…
url_or_path = flist[dd_flist.value]
play(url_or_path)
You are in widget mode. If you don't like it, use "%matplotlib widget" and "%matplotlib inline" to switch between backends
Tab(children=(VBox(children=(FloatSlider(value=2.0, description='x', max=4.0, step=0.03333333333333333), Float…
Canvas(toolbar=Toolbar(toolitems=[('Home', 'Reset original view', 'home', 'home'), ('Back', 'Back to previous …
%matplotlib inline
# More examples can be find in example.ipynb
for i in flist:
print(i)
plot(flist[i])
plt.show()