Comments (7)
Installing pycairo and adding
matplotlib.use('cairo')
before plotting the figure solved the problem.
from pywaffle.
Are you using the latest version, 0.4.1?
I have tested the code above while I can't reproduce this issue.
from pywaffle.
Yes, I use 0.4.1. Maybe some other package should be updated?!
from pywaffle.
Since I can't reproduce the issue, it's kind of tricky to figure out what goes wrong with your result. But it would be great if we can answer the following questions:
- Does it only happen to pdf files, or is it the same result when showing in a pop window or save with other image format?
- Could you check
fig._pa
to make sure it is the right parameters being passed? - Could you please find a shareable notebook, such as Azure Notebooks, which can also produce the same result, so that I can take a look and maybe start debugging?
from pywaffle.
- yes, it only happens when saving to pdf. Not in interactive mode, nor when saving to scg or png.
- The value associated to 'characters' in fig._pa is correct.
- It might take some time. I'll try.
from pywaffle.
Interesting. If so, I’m thinking if it’s not the code or package related, but more related to the font or pdf reader. Since you are using a custom font, which might not be included or supported by something.
from pywaffle.
Good to know that works for you! It does remind me that I have cairo installed on my mac while I didn't switch matplotlib's backend manually.
from pywaffle.
Related Issues (20)
- block present when value is 0 HOT 1
- Vertical orientation? HOT 1
- cant specify columns HOT 3
- Font awesome license HOT 2
- width problems with a thousand blocks HOT 2
- Blocks of a single colour are not always contiguous HOT 11
- missing corner squares with automatic scaling HOT 3
- How to arrange the filling order as from top to bottom when using new-line? HOT 1
- Request: ability to use system-packaged Fontawesome if found? HOT 3
- Fractional blocks HOT 1
- Add the ability to create chart on axis HOT 1
- Add Font Awesome through Python package
- Problem with Font awesome on VsCode HOT 8
- Feature request
- Feature request
- Font file not found when using FontAwesome icons HOT 2
- ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). HOT 3
- KeyError: 'rows' in waffle.py HOT 2
- Update to FontAwesome v5 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pywaffle.