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 in python #65

Open
gpwood opened this issue Feb 16, 2018 · 0 comments
Open

matplotlib in python #65

gpwood opened this issue Feb 16, 2018 · 0 comments

Comments

@gpwood
Copy link

gpwood commented Feb 16, 2018

Recently I have started using matplotlib for plotting figures in python through some inline functions. If you want to save the figures without viewing them through an X11 session you would usually set an option in a .matplotlibrc file or use the directive matplotlib.use('Agg') at the start of the code. However, I'm finding that when used inline this is ignored and the code tries to display the image. This is a problem when computing on a server which is headless as the code falls over complaining with TclError: couldn't connect to display. Does anyone know how to force the inline code to be headless?

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