Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webagg backend does not show figures due to JS error #3260

Closed
btel opened this issue Jul 14, 2014 · 1 comment
Closed

webagg backend does not show figures due to JS error #3260

btel opened this issue Jul 14, 2014 · 1 comment

Comments

@btel
Copy link

btel commented Jul 14, 2014

As already reported in #2975 webagg backend is non-functional in mpl installed from pip. The following script

import matplotlib
matplotlib.use('webagg')
import matplotlib.pyplot as plt

plt.plot([1,2])
plt.show()

opens a new window in a browser, but nothing appears under http://127.0.0.1:8988/1 because of a JS syntax error. The following line causes the error:

var fig = new figure('1', websocket_url_prefix);

The HTML entities code for apostrophe character.

Tested on FF 30 and Chrome 35.

@btel
Copy link
Author

btel commented Jul 14, 2014

Fixed on master.

@btel btel closed this as completed Jul 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant