GithubHelp home page GithubHelp logo

Various Fixes / Improvements about pubplot HOT 8 CLOSED

wwoods avatar wwoods commented on July 19, 2024
Various Fixes / Improvements

from pubplot.

Comments (8)

hsadok avatar hsadok commented on July 19, 2024

This idea of using the font size from the captions as default is really cool. When I started to implement pubplot this was what I had in mind. However, I still could not figure out how to do it...

from pubplot.

wwoods avatar wwoods commented on July 19, 2024

Right - I think the way to do it would be to put a figure with a caption in the demo page, and print the current font size.

from pubplot.

hsadok avatar hsadok commented on July 19, 2024

@wwoods I managed to implement it! (see ba529cf)

Previously, my solution to retrieve sizes from the LaTeX document was to store them in LaTeX lengths and then save all these lengths to an auxiliary file. However, I simply could not store the font size when inside a figure caption. So instead, I decided to write all these sizes right to the LaTeX compilation log and use a pattern to be able to detect them. Long story short, now pubplot can detect caption sizes and defaults all sizes to the caption size.

from pubplot.

wwoods avatar wwoods commented on July 19, 2024

Ah, nifty! Good work :)

from pubplot.

wwoods avatar wwoods commented on July 19, 2024

PS - any idea when you plan on merging dev -> master and pushing a new release? One of my undergraduates is looking into using this package, and I suspect it would be good to have him working off of the caption sizing / other fixes we've applied in your original repository rather than my fork.

from pubplot.

hsadok avatar hsadok commented on July 19, 2024

I looked at the issue with Python 2.7 and I am almost convinced it is a bug in matplotlib. Since we are likely the only two using this library at the moment, and you seem to be using Python3, I will merge this right away. I plan to later try to isolate the bug and submit an issue to matplotlib. Hopefully, if they still care about python2, they will fix it.

from pubplot.

hsadok avatar hsadok commented on July 19, 2024

@wwoods I noticed travis was having trouble to deploy to PyPI but I think I have finally fixed it. You or you undergraduate can now use pip install to use pubplot :-)

from pubplot.

wwoods avatar wwoods commented on July 19, 2024

Ha, thanks! Very good. Still using pubplot proudly 👍

from pubplot.

Related Issues (2)

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.