Skip to main content

sacredfig

SacredFig is a Python library that provides opinionated styles for scientific figures in matplotlib.

Installation

Use the package manager pip to install SacredFig.

pip install sacredfig

Usage

import matplotlib.pyplot as plt

import seaborn as sns
sns.reset_orig()
iris = sns.load_dataset("iris")

import sacredfig
from sacredfig import cm2in

plt.style.use(sacredfig.style)

fig, ax = plt.subplots(figsize=(6 * cm2in, 6 * cm2in), dpi=150)
ax.grid(False, which='major', axis='x')

ax.boxplot([iris.sepal_length.values, iris.sepal_width.values],
           labels=['Sepal length', 'Sepal width'])

ax.set_box_aspect(1)
ax.set(xlabel="Attribute", ylabel="Empirical distribution", ylim=(0, 10));

Metadata

Release files for sacredfig 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sacredfig 0.1.1
File Size Uploaded
sacredfig-0.1.1.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sacredfig 0.1.1
File Interpreter ABI Platform
sacredfig-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.4 kB

Release files / sacredfig-0.1.1.tar.gz

Download URL sacredfig-0.1.1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
896768a37cd8cf62fb7d36a60217830730086f60d4751bc38b14f85eee8e047e
BLAKE2b-256 checksum
How to use checksums
ab4552627064b1a75768a6cb6dee5e1ac64a50cc0828fe364138512123b014b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.0

Release files / sacredfig-0.1.1-py3-none-any.whl

Download URL sacredfig-0.1.1-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c67902990bd8dd94f8cba9d97d8a0bceeca435d852157897f240479aae04556f
BLAKE2b-256 checksum
How to use checksums
71515743f9e2c26075f0bad9ad482917c9588aa40c38d5d9d07e2ab9cd1ae230
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page