Wiki

Clone wiki

PyCA / Matplotlib_Setup

Matplotlib is required for many functions and examples in PyCA. The matplotlib library can use one of several 'backends' for displaying plot windows, one of which must be installed. The default backend can be set using the matplotlibrc file, see the details here. The short solution is to add/modify the following line in ~/.matplotlib/matplotlibrc (or create the file if it doesn't exist)

backend      : WX
where WX is replaced by your preferred installed backend (GTK GTKAgg GTKCairo GTK3Agg GTK3Cairo CocoaAgg FltkAgg MacOSX QtAgg Qt4Agg TkAgg WX WXAgg Cairo GDK). A matplotlibrc file can also be added to the current working directory to change settings for python scripts run in that directory only.

See IPython Notes for information on matplotlib and IPython.

Updated