Skip to content

Commit

Permalink
Merge pull request #5984 from overdetermined/patch-1
Browse files Browse the repository at this point in the history
Suggestion for Rasterization to docs pgf-backend
  • Loading branch information
tacaswell committed Feb 22, 2016
2 parents 6922209 + 0591701 commit f555fec
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
7 changes: 4 additions & 3 deletions doc/users/artists.rst
Expand Up @@ -156,9 +156,9 @@ MATLAB, and is a 2D "patch" of color on the figure, e.g., rectangles,
circles and polygons). Every matplotlib ``Artist`` has the following
properties

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

Each of the properties is accessed with an old-fashioned setter or
getter (yes we know this irritates Pythonistas and we plan to support
Expand Down
12 changes: 11 additions & 1 deletion doc/users/pgf.rst
Expand Up @@ -160,7 +160,17 @@ Troubleshooting
in yout LaTeX document, the alignment of text elements in imported figures
may be off. Check the header of your ``.pgf`` file if you are unsure about
the fonts matplotlib used for the layout.


* Vector images and hence ``.pgf`` files can become bloated if there are a lot
of objects in the graph. This can be the case for image processing or very
big scatter graphs. In an extreme case this can cause TeX to run out of
memory: "TeX capacity exceeded, sorry" You can configure latex to increase
the amount of memory available to generate the ``.pdf`` image as discussed on
`tex.stackexchange.com <http://tex.stackexchange.com/questions/7953>`_.
Another way would be to "rasterize" parts of the graph causing problems
using either the ``rasterized=True`` keyword, or ``.set_rasterized(True)`` as per
`this example <http://matplotlib.org/examples/misc/rasterization_demo.html>`_.

* If you still need help, please see :ref:`reporting-problems`

.. _LaTeX: http://www.tug.org
Expand Down

0 comments on commit f555fec

Please sign in to comment.