| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
The hatch buffer was created at 72 pixels, with the assumption that that is the "unit square" (1in*1in). However, with default DPI increased to 100, that buffer is actually too small, causing hatching to be denser than it should be. On test images where the DPI was set really low, the hatching was less dense than it should be. Fixes matplotlib#4108.
Doesn't change anything; just makes it consistent with what it actually is. Also, remove comment about DPI-dependence, because hatching should not be DPI dependent.
Also, clean up some redundancies; 72 -> sidelen and the setpattern operator simplifies setting the pattern.
Agg uses top-left as origin, while PDF/PS use bottom-left. A vertical shift by the page height fixes that. See example in matplotlib#4108.
This matches behaviour with the Agg backend. Fixes matplotlib#3023. Fixes matplotlib#6228.
|
I've fixed the hatching origin in the PDF and PS backends, and also made a few other improvements in the PS backend. See the description for an updated explanation. Note, a lot of the PS and PDF backends don't really seem to be tested... Could add the test based on the related issues, but not sure where the best place is. |
Sorry, something went wrong.
|
Thanks for the patch! |
Sorry, something went wrong.
|
How can I set the hatch line color when using fill_between? I am only able to set the background color using the color kwarg. edgecolor doesn't appear to do anything... |
Sorry, something went wrong.
|
thanks! |
Sorry, something went wrong.
|
Hi, Sorry I am a bit new to Python but I am having the same problems as in: #3023 I have re-installed Matplotlib and updated it but my hatches still do not show up when I save my plot as .pdf |
Sorry, something went wrong.
|
@andres0l1 Can you please open a new issue with a minimal example of what is not working for you? |
Sorry, something went wrong.
|
Sure I will! |
Sorry, something went wrong.
| self._convert_path(Path.hatch(hatch), Affine2D().scale(sidelen), | ||
| simplify=False)) | ||
| self._pswriter.write("""\ | ||
| fill |
There was a problem hiding this comment.
Anyone knows whether it is okay to write "fill" here? I deleted the "fill" and the hatch works on v3.0.2. The issue is described in #8289.
Sorry, something went wrong.
There was a problem hiding this comment.
Or shell we use the shfill command?
Sorry, something went wrong.
There was a problem hiding this comment.
What is the difference between fill and shfill?
Sorry, something went wrong.
There was a problem hiding this comment.
@tacaswell sorry, I just skimmed the spec of EPS and found that shfill (shading fill, which "paints the shape and color shading described by a shading dictionary, subject to the current clipping path") seems not related.
But I do have tried multiple manual fixes on the generated eps file and had the following findings:
I'm not familiar with the eps format, but hope the information is helpful.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This produces some more consistency for hatches across multiple backends.