File: README.debian

package info (click to toggle)
matplotlib2 2.2.3-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 77,560 kB
  • sloc: python: 127,114; cpp: 58,988; ansic: 29,698; objc: 2,809; makefile: 147; sh: 54
file content (57 lines) | stat: -rw-r--r-- 1,639 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
MatplotLib Data Directory
-------------------------

For various functions to work, for example 

  help() -> modules

you need to set the environmental variable:

  $ export MATPLOTLIBDATA=/usr/share/matplotlib/


Change the backend
------------------

From matplotlib version 0.98.3-6 the default backend in Debian is 'TkAgg', the
simplest backend available in most context.

If you want to change it, you have two ways: system wide, changing the file

  /etc/matplotlibrc

or on a user basis, changing the file

  $HOME/.config/matplotlib/matplotlibrc

to add or modify a line like this:

  backend : <backend>

  # You can also deploy your own backend outside of matplotlib by
  # referring to the module name (which must be in the PYTHONPATH) as
  # 'module://my_backend'.

  # The Agg, Ps, Pdf and SVG backends do not require external
  # dependencies. Do not choose GTK, GTKAgg, GTKCairo, TkAgg or WXAgg if
  # you have disabled the relevant extension modules.

so usually, you can have a backend if you have the Python bindings installed:

  GTK is no longer available for Debian, so use GTK3
  Tk   -> python-tk
  QT   -> python-qt4, python-sip
  WX   -> python-wxgtk2.6 or python-wxgtk2.8
  GTK3 -> gir1.2-gtk-3.0, python-gi, python-gobject


Use MatplotLib with pkg_resources.require()
-------------------------------------------

If you want to use MatplotLib like this:

  python -c 'import pkg_resources; pkg_resources.require("matplotlib")'

(also in the Python3 flavour), you'll have to instal python-nose and
python-tornado (as specified in the Suggest field) or python3-nose and
python3-tornado if you're aiming at py3k.