I'm trying to use the webagg backend for the first time, and seem to
be bumping into a common problem - nothing appears. The first time I
tried, I got a complaint that tornado was missing, so I installed it.
After that, I get to try plotting. Here's my example:

>>> import matplotlib
>>> matplotlib.use('webagg')
>>> import matplotlib.pyplot as plt
>>> plt.plot(range(10))
[<matplotlib.lines.Line2D object at 0x2f56690>]
>>> plt.show()
Created new window in existing browser session.
Press Ctrl+C to stop server
^CServer stopped

When I execute plt.show(), a new tab opens in my browser (Chrome, on
Linux) with this URL: http://127.0.0.1:8988. That page has a single
link (text: "Figure 1"). If I click that link, I get this URL:
http://127.0.0.1:8988/1, but nothing appears. The page source contains
a bunch of JavaScript references. For instance:

<script src="/_static/jquery/js/jquery-1.7.1.min.js"></script>
<script src="/_static/jquery/js/jquery-ui.min.js"></script>
<script src="/_static/mpl.js"></script>
<script src="/1/mpl_interface.js"></script>

I see those JavaScript files at appropriate places in the
.../backends/web_backend directory. What am I missing?

Thx,

Skip

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to