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

Matplotlib Backends #177

Open
s2t2 opened this issue May 10, 2019 · 0 comments
Open

Matplotlib Backends #177

s2t2 opened this issue May 10, 2019 · 0 comments

Comments

@s2t2
Copy link
Member

s2t2 commented May 10, 2019

Matplotlib often throws an import error if a "backend" is not specified. Here's how to fix (using a backend that works on Mac OS):

import matplotlib as mpl # need to add this line
mpl.use("TkAgg") # need to add this line
import matplotlib.pyplot as plt 
import matplotlib.ticker as ticker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant