New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion for Rasterization to docs pgf-backend #5984
Conversation
Attn: @pwuertz |
This advice is universal for any kind of vector file format for any environment, i.e. it isn't exactly a problem specific to PGF. I don't object to adding it to the documentation, I'm just wondering if there is a suitable place upwards in the hierarchy to indicate matplotlibs selective rasterization solution for high geometry count in vector graphics. On the other hand, TeX probably isn't particularly optimized for such situations, so if it breaks down magnitudes earlier than your typical SVG or PDF renderer please go ahead. |
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 ``rasterize=True`` keyword, or ``.set_rasterized(True)`` as per |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the keyword arg is rasterized
.
I agree with @pwuertz that this info should be highlighted more generally for the vector backends. Maybe it could become an entry in the FAQ, something like "how to make smaller, faster-rendering files in ps, pdf, pgf and svg formats". I'm not sure whether that is the best place. This ability of mpl to rasterize on a per-artist basis is an important feature that can make the difference between an excellent file and an unusable one. |
@QuLogic good spot! I changed it accordingly. Even though i feel a little like I am commit-spamming at this point... Until now I was just using githubs editor to make the changes. To edit two files at once I actually downloaded the source; but as I am on holiday with a slow internet connection it took a while and it's getting late. |
In that case, please be sure you configured your Also, if you wish to squash the commits, then you may do a rebase. |
@QuLogic, I'm pretty sure a rebase will not squash the commits.... a --squash commit would, but I think i'd just leave it at this to be honest. My two other options are changing the branch history: dunno what would happend to this thread, make a new branch with a single commit and a new pull request: seems too much effort for something minor. |
@overdetermined The travis failure is a random fluke in a test that depends on timing and is somewhat unstable |
The pull request tracks the branch, not the commits. So, squashing won't In your case, I am meh on whether or not to squash your commits. It would On Wed, Feb 10, 2016 at 4:37 AM, Jens Hedegaard Nielsen <
|
-includes links to tex.stackexchange and .set_rasterized(True) example
96f42ad
to
0591701
Compare
@WeatherGod Squashed the commits. @QuLogic you can indeed use rebase to squash the commits sorry for doubting you ;-). I used "git reset --soft HEAD~5" though. |
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>`_. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For rst reasons I only half understand, using 2 __
for the link is safer. Ditto 3 lines down.
Suggestion for Rasterization to docs pgf-backend
Suggestion for Rasterization to docs pgf-backend
backported to v1.5.1-doc as 851f25c |
As per discussion on issue:
#5983