Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e1087b

Browse files
committed
Merge remote-tracking branch 'matplotlib/v1.5.1-doc' into v1.5.x
2 parents 512c8d0 + 4e3bf78 commit 4e1087b

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

doc/users/artists.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ MATLAB, and is a 2D "patch" of color on the figure, e.g., rectangles,
156156
circles and polygons). Every matplotlib ``Artist`` has the following
157157
properties
158158

159-
========== ======================================================================
159+
========== ================================================================================
160160
Property Description
161-
========== ======================================================================
161+
========== ================================================================================
162162
alpha The transparency - a scalar from 0-1
163163
animated A boolean that is used to facilitate animated drawing
164164
axes The axes that the Artist lives in, possibly None
@@ -172,7 +172,8 @@ picker A python object that controls object picking
172172
transform The transformation
173173
visible A boolean whether the artist should be drawn
174174
zorder A number which determines the drawing order
175-
========== ======================================================================
175+
rasterized Boolean; Turns vectors into rastergraphics: (for compression & eps transparency)
176+
========== ================================================================================
176177

177178
Each of the properties is accessed with an old-fashioned setter or
178179
getter (yes we know this irritates Pythonistas and we plan to support

doc/users/navigation_toolbar.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ depends on your UI, but we have examples for every supported UI in the
110110
example code for GTK::
111111

112112

113+
import gtk
114+
113115
from matplotlib.figure import Figure
114116
from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg as FigureCanvas
115117
from matplotlib.backends.backend_gtkagg import NavigationToolbar2GTKAgg as NavigationToolbar

doc/users/pgf.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,17 @@ Troubleshooting
160160
in yout LaTeX document, the alignment of text elements in imported figures
161161
may be off. Check the header of your ``.pgf`` file if you are unsure about
162162
the fonts matplotlib used for the layout.
163-
163+
164+
* Vector images and hence ``.pgf`` files can become bloated if there are a lot
165+
of objects in the graph. This can be the case for image processing or very
166+
big scatter graphs. In an extreme case this can cause TeX to run out of
167+
memory: "TeX capacity exceeded, sorry" You can configure latex to increase
168+
the amount of memory available to generate the ``.pdf`` image as discussed on
169+
`tex.stackexchange.com <http://tex.stackexchange.com/questions/7953>`_.
170+
Another way would be to "rasterize" parts of the graph causing problems
171+
using either the ``rasterized=True`` keyword, or ``.set_rasterized(True)`` as per
172+
`this example <http://matplotlib.org/examples/misc/rasterization_demo.html>`_.
173+
164174
* If you still need help, please see :ref:`reporting-problems`
165175

166176
.. _LaTeX: http://www.tug.org

0 commit comments

Comments
 (0)