Comments (8)
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.
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.
@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.
Ah, nifty! Good work :)
from pubplot.
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.
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.
@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.
Ha, thanks! Very good. Still using pubplot proudly 👍
from pubplot.
Related Issues (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 pubplot.