-
Notifications
You must be signed in to change notification settings - Fork 4
Fixing matplotlib bug #11
base: master
Are you sure you want to change the base?
Conversation
In the latest version of matplotlib, I need to set the backend explicitely to avoid crash. I have added this small call to fcmaker.py and fcmaker_plots.py. Additionally, my editor has remove trailing whitespaces.
|
Hi @jselsing ... backend troubles can be tricky. That's why I've avoided to set one directly inside the code, since I was not sure how this might affect users. In fact, the matplotlib docs suggest to avoid to hard-code a specific backend via I would rather give users the ability to specify the backend as an additional fcmaker argument. Still, before adding yet another parameters (I'm trying to keep their numbers low), I'm curious about the error you get, since it has not been reported before. Would you be able to create a new issue describing the error message you are getting, alongside the python/matplotlib version and operating system you are using ? I'd be keen to dig a bit in the code to see if doing things differently could improve things, and avoid having to force the backend upon the user. Having a dedicated issue open would also be useful for other users that might have the same problem. Thanks ! |
|
Awesome source, that makes sense! I guess in reality, this should be bug report for Matplotlib, not here. I will submit another issue to the Matplotlib people. I'm on a mac with macOS Mojave version 10.14.1 and I use python 3.6 with matplotlib 3.0.1 1 conda-forge installed through Conda. without setting the backend with import matplotlib; matplotlib.use('TkAgg'), the script crashes with the following error message. The error-message is really obscure, so it does not help me a lot. 2018-11-12 14:18:06.422 python[91048:1938705] -[NSApplication _setup:]: unrecognized selector sent to instance 0x7fbee7bc7350 |
In the latest version of matplotlib, I need to set the backend explicitely to avoid crash. I have added this small explicit backend call to fcmaker.py and fcmaker_plots.py. I don't know if this is a general problem, or something with my machine. Just ignore this, if it works for others. Additionally, my editor has removed trailing whitespaces, but that should not make a difference.