Skip to main content

lab74

Apollo 17 subsurface heat-flow temperatures

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.12
  • matplotlib>=3.8
  • numpy>=1.26

Basic use

lab74 colour reproduction standard

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/.

Apollo 17 orange and gray soil grain-size distributions

Lunar landing-site soil composition by terrain type

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lab74-1.0.0.tar.gz (357.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lab74-1.0.0-py3-none-any.whl (360.2 kB view details)

Uploaded Python 3

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

Hashes for lab74-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3eab335bebf04d1540205d1eba0e280744cdb04be342ce0b02ce38a9484d4802
MD5 29025671e70aafd79ea7177088739e24
BLAKE2b-256 4c0efb1c76eb06318b916a4a0fe9aad4ece59a13c5e2b073cfa1ab0f52ab8633

See more details on using hashes here.

Provenance

The following attestation bundles were made for lab74-1.0.0.tar.gz:

Publisher: publish.yml on KarstenEconomou/lab74

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for lab74-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab773f174828445c72e44bd28e7242122444e321f7eea2e664502aed840caa68
MD5 c3665da87f25cda6a6b8a5780c8db880
BLAKE2b-256 a48321e08182190f09caf73df0d19c466ae59b1bd8a44fc5998a30772a4d39f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for lab74-1.0.0-py3-none-any.whl:

Publisher: publish.yml on KarstenEconomou/lab74

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

2.0.0

2 files

This release

1.0.0 This release

2 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