Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f555fec

Browse filesBrowse files
committed
Merge pull request matplotlib#5984 from overdetermined/patch-1
Suggestion for Rasterization to docs pgf-backend
2 parents 6922209 + 0591701 commit f555fec
Copy full SHA for f555fec

File tree

Expand file treeCollapse file tree

2 files changed

+15
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+15
-4
lines changed

‎doc/users/artists.rst

Copy file name to clipboardExpand all lines: doc/users/artists.rst
+4-3Lines 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/pgf.rst

Copy file name to clipboardExpand all lines: doc/users/pgf.rst
+11-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.