lab74
lab74 is a Matplotlib style layer for scientific and institutional
figures in the technical print style of ca. 1965–1980.
The style uses fine rules, compact type, direct labels, monochrome textures, and one optional accent color. It does not add old-paper, film-grain, or other retro effects.
Installation
Install lab74 from PyPI:
pip install lab74
Requirements:
python>=3.12matplotlib>=3.8numpy>=1.26
Basic use
import matplotlib.pyplot as plt
import lab74
lab74.use()
fig, ax = plt.subplots()
ax.plot(x, y)
ax.set(xlabel="Energy (GeV)", ylabel=r"$\sigma$ (nb)")
The use() function applies the style. The default style uses
the instrument accent and proportional technical text.
Use these options to change the color or the typeface:
lab74.use(accent="aerospace") # Use a different accent.
lab74.use(accent=None) # Use the monochrome line-series palette.
lab74.use(accent=None, face="mono") # Use monospaced text.
You can also apply the packaged Matplotlib style sheet:
plt.style.use(lab74.STYLE_PATH)
This method uses the default instrument accent.
Plot tools
lab74 includes small tools for annotations, error bars, grouped bars, hatched
regions, contours, maps, tables, ticks, frames, and multipanel layouts. These
tools return normal Matplotlib artists. Thus, you can change the result with
the Matplotlib API.
See src/lab74/ for all available tools and their docstrings.
Gallery
Executable notebooks are in the examples/.
They use scientific data from SILSO, the NASA archives, and the NOAA/NCEP–NCAR
Reanalysis 1 project. Rendered images are in examples/output/.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lab74-1.0.0.tar.gz.
File metadata
- Download URL: lab74-1.0.0.tar.gz
- Upload date:
- Size: 357.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3eab335bebf04d1540205d1eba0e280744cdb04be342ce0b02ce38a9484d4802
|
|
| MD5 |
29025671e70aafd79ea7177088739e24
|
|
| BLAKE2b-256 |
4c0efb1c76eb06318b916a4a0fe9aad4ece59a13c5e2b073cfa1ab0f52ab8633
|
Provenance
The following attestation bundles were made for lab74-1.0.0.tar.gz:
Publisher:
publish.yml on KarstenEconomou/lab74
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lab74-1.0.0.tar.gz -
Subject digest:
3eab335bebf04d1540205d1eba0e280744cdb04be342ce0b02ce38a9484d4802 - Sigstore transparency entry: 2692527971
- Sigstore integration time:
-
Permalink:
KarstenEconomou/lab74@97fbc5395cae9a834ab26023ded09d068897187a -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/KarstenEconomou
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@97fbc5395cae9a834ab26023ded09d068897187a -
Trigger Event:
release
-
Statement type:
File details
Details for the file lab74-1.0.0-py3-none-any.whl.
File metadata
- Download URL: lab74-1.0.0-py3-none-any.whl
- Upload date:
- Size: 360.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab773f174828445c72e44bd28e7242122444e321f7eea2e664502aed840caa68
|
|
| MD5 |
c3665da87f25cda6a6b8a5780c8db880
|
|
| BLAKE2b-256 |
a48321e08182190f09caf73df0d19c466ae59b1bd8a44fc5998a30772a4d39f9
|
Provenance
The following attestation bundles were made for lab74-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on KarstenEconomou/lab74
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lab74-1.0.0-py3-none-any.whl -
Subject digest:
ab773f174828445c72e44bd28e7242122444e321f7eea2e664502aed840caa68 - Sigstore transparency entry: 2692527998
- Sigstore integration time:
-
Permalink:
KarstenEconomou/lab74@97fbc5395cae9a834ab26023ded09d068897187a -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/KarstenEconomou
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@97fbc5395cae9a834ab26023ded09d068897187a -
Trigger Event:
release
-
Statement type: