On Fri, 2016-06-24 at 15:56 +0200, jerko wrote:
The default backend for python 3.5 in matplotlibrc is Agg (line 38). When I tried to print available backends, with print(matplotlib.rcsetup.all_backends), the output gave me this: ['GTK', 'GTKAgg', 'GTKCairo', 'MacOSX', 'Qt4Agg', 'Qt5Agg', 'TkAgg', 'WX', 'WXAgg', 'CocoaAgg', 'GTK3Cairo', 'GTK3Agg', 'WebAgg', 'nbAgg', 'agg', 'cairo', 'emf', 'gdk', 'pdf', 'pgf', 'ps', 'svg', 'template']
When I changed the abovementioned line (Ln 38 in matplotlibrc) to backend : TkAgg the example did show the figure. Is this a bug, or did I do something wrong?
Can be a half cooked package problem. Not sure. The issue is that Matplotlib have different backends for different widget libraries. The normal Python, that oneself compiles, contains by default the TkInter library, and that is usually the default for Matplotlib. The thing is that we split python3-tk as a different package. So Matplotlib can use Tk as default, because python3-tk is not installed by default (requires TCL/TK). A possible option is that python3-tk 'change' the default value in the matplotlibrc file, but this is can also be wrong, because if you install the QT or GTK libraries, witch one must be the default one? And also is not responsibility of the -tk package change the defaults of other packages. -- SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org