Mplscience 0.0.7 | GitLocker.com Product

mplscience 0.0.7

Last updated:

0 purchases

mplscience 0.0.7 Image
mplscience 0.0.7 Images

Free

Languages

Categories

Add to Cart

Description:

mplscience 0.0.7

mplscience


Matplotlib style for scientific publications. This style keeps things pretty simple and aims to make moderate improvements to the base matplotlib style. It also sets things like the PDF font type to make it easier to interact with figures in Adobe Illustrator. Open the tutorial in Colab to see examples. mplscience is compatible with all Matplotlib-based packages, including Seaborn.
Usage
To install:
pip install mplscience

To use:
import mplscience
import seaborn as sns
mplscience.available_styles()
mplscience.set_style()
df = sns.load_dataset("anscombe")
sns.scatterplot(x="x", y="y", hue="dataset", data=df)


If you're using Seaborn, you may want to run sns.reset_orig() first to clear Seaborn-specific styling. You can also use the reset_current parameter of mplscience functions to reset any custom styling like this:
mplscience.set_style(reset_current=True)

The style can also be using in a context like this:
import mplscience
with mplscience.style_context():
plt.plot(x, y)

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.