Giter Site home page Giter Site logo

characters argument and plt.savefig about pywaffle HOT 7 OPEN

gyli avatar gyli commented on July 18, 2024
characters argument and plt.savefig

from pywaffle.

Comments (7)

SG-phimeca avatar SG-phimeca commented on July 18, 2024 1

Installing pycairo and adding
matplotlib.use('cairo')
before plotting the figure solved the problem.

from pywaffle.

gyli avatar gyli commented on July 18, 2024

Are you using the latest version, 0.4.1?
I have tested the code above while I can't reproduce this issue.
Screen Shot 2019-10-28 at 10 27 11 AM

from pywaffle.

SG-phimeca avatar SG-phimeca commented on July 18, 2024

Yes, I use 0.4.1. Maybe some other package should be updated?!

from pywaffle.

gyli avatar gyli commented on July 18, 2024

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.

SG-phimeca avatar SG-phimeca commented on July 18, 2024
  • 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.

gyli avatar gyli commented on July 18, 2024

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.

gyli avatar gyli commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.