You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: