@@ -11,11 +11,40 @@ How do I report a compilation problem?
1111
1212See :ref: `reporting-problems `.
1313
14+ matplotlib compiled fine, but I can't get anything to plot
15+ ==========================================================
16+
17+ The first thing to try is a :ref: `clean install <clean-install >` and see if
18+ that helps. If not, the best way to test your install is by running a script,
19+ rather than working interactively from a python shell or an integrated
20+ development environment such as :program: `IDLE ` which add additional
21+ complexities. Open up a UNIX shell or a DOS command prompt and cd into a
22+ directory containing a minimal example in a file. Something like
23+ :file: `simple_plot.py `, or for example::
24+
25+ from pylab import *
26+ plot([1,2,3])
27+ show()
28+
29+ and run it with::
30+
31+ python simple_plot.py --verbose-helpful
32+
33+ This will give you additional information about which backends matplotlib is
34+ loading, version information, and more. At this point you might want to make
35+ sure you understand matplotlib's :ref: `configuration <customizing-matplotlib >`
36+ process, governed by the :file: `matplotlibrc ` configuration file which contains
37+ instructions within and the concept of the matplotlib backend.
38+
39+ If you are still having trouble, see :ref: `reporting-problems `.
40+
1441.. _clean-install :
1542
1643How do I cleanly rebuild and reinstall everything?
1744==================================================
1845
46+ # TODO: include for binary installs
47+
1948Unfortunately::
2049
2150 python setup.py clean
@@ -46,10 +75,13 @@ install directory. To cleanly rebuild:
4675 rm -rf ~/.matplotlib/tex.cache
4776 rm -rf ~/.matplotlib/fontManager.cache
4877
78+ Backends
79+ ========
80+
4981.. _what-is-a-backend :
5082
5183What is a backend?
52- ==================
84+ ------------------
5385
5486A lot of documentation on the website and in the mailing lists refers
5587to the "backend" and many new users are confused by this term.
@@ -154,6 +186,21 @@ FLTKAgg Agg rendering to a FLTK canvas (requires pyFLTK_)
154186.. _pyFLTK : http://pyfltk.sourceforge.net
155187
156188
189+ .. _pygtk-2.4 :
190+
191+ How do I compile matplotlib with PyGTK-2.4?
192+ -------------------------------------------
193+
194+ There is a `bug <pygtk-2.4-bug >`_ in PyGTK-2.4. You need to edit
195+ :file: `pygobject.h ` to add the :cmacro: `G_BEGIN_DECLS ` and :cmacro: `G_END_DECLS `
196+ macros, and rename :cdata: `typename ` parameter to :cdata: `typename_ `::
197+
198+ - const char *typename,
199+ + const char *typename_,
200+
201+ .. _`bug <pygtk-2.4-bug>` : http://bugzilla.gnome.org/show_bug.cgi?id=155304
202+
203+
157204OS-X questions
158205==============
159206
0 commit comments