Replies: 4 comments 7 replies
-
Thanks for the note about this and sorry for the slow response! I'll see if I can replicate this today and better understand where this problem might be coming from. |
Beta Was this translation helpful? Give feedback.
-
@fys2045 Could you provide us with the sample code to create these graphics? |
Beta Was this translation helpful? Give feedback.
-
I think I missed part of your description earlier. It sounds like the issue you're seeing is happening following the export to PDF from an MS Word document. I'm guessing something is causing the figure to poorly rasterize in this conversion process from a Word document to PDF. This rasterization shouldn't need to happen, but might be occurring depending on what version of Word you have, how it's configured, and how you're exporting to PDF. These troubleshooting tips might help. I did try to replicate this issue (via saving a matplotlib figure with hatching using the SVG vector format, adding it to a Word document, and then exporting to PDF), but wasn't able to replicate the problem - it all seemed to work fine for me. I could very well have different versions though and/or things configured differently. I hope this helps. Please let us know if not and share a short example with a bit more info about your system (as mentioned by Julia). |
Beta Was this translation helpful? Give feedback.
-
I recently discovered an issue when using the contourf function with hatches to fill significant regions and exporting vector format images from Python to insert into Word. Initially, everything appears fine, but when I export this Word document to a PDF, the areas filled with hatches turn into pixelated blocks, while other parts remain clear. This problem also occurs with GeoCAT when using hatches for filling. (Of course, this issue does not arise when not using vector images, but many journal submissions require vector graphics.) I am quite certain that there is a flaw with the hatches in the contourf function. Fortunately, NCL does not have this problem.
I am wondering if the GeoCAT team could draw inspiration from NCL's filling logic to develop a function in Python that can achieve significant dot filling. If this can be implemented, it would be highly beneficial for conducting meteorological research and publishing papers using GeoCAT.
I look forward to your response.
Best regards,
Beta Was this translation helpful? Give feedback.
All reactions