masasin / latexipy Goto Github PK
View Code? Open in Web Editor NEWGenerate beautiful plots for LaTeX using your existing matplotlib-based code.
License: MIT License
Generate beautiful plots for LaTeX using your existing matplotlib-based code.
License: MIT License
Dear Jean Nassar,
Your package does the job well enough, but I'd much rather prefer a more "Pythonic" and a more "Coding Standardized" method of implementation of it. After looking over your code I could tell that
lp.latexify()
only changes pyplot's internal settings (like font size, style, etc.), which is to say that you modify global settings of the pyplot, which is not advisable for a user.
Would it not be better for your package to produce extra plots by necessity? For instance:
#my plot; plt.plot(x,y); plt.save("default_pyplot.png"); lp.make_latex_plot( plt.gcf() #(get current pyplot figure), "latex_friendly_plot.pgf" #(name of the output));
This way it would be more intuitive for a user and would not mess up global pyplot configs whilst keeping everything "pythonic"
Trying to use the base function of creating layout that matches Latex
import latexipy as lp
lp.latexify()
figure = shap.plots.bar(shap_values=shap_values,max_display=20,show=False) (figure element from the Shap package)
figure.
**Error**:
RuntimeError: No suitable pdf to png renderer found.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.