Skip to main content

A Matplotlib wrapper with more convenience and pretty plots with a style common in physics papers.

Project description

pyescher 🎨✨

A Python plotting library for elegant and physics-inspired visualizations

📌 Overview

pyescher is a convenient wrapper for Matplotlib, designed to create beautiful, publication-ready plots with minimal effort. It includes built-in styling, marker cycling, and support for mathematical functions.

🚀 Installation

Install pyescher using pip:

pip install pyescher

📜 Quick Example: Bessel and Hankel Functions

The following example demonstrates how to plot Bessel and Hankel functions using pyescher:

import pyescher as pe
from scipy.special import jn, hankel1
import numpy as np

# Define x-values
x = np.linspace(0, 20, 1000)

# Compute function values
y1 = jn(1, x)        # Bessel function J1
y2 = hankel1(2, x)   # Hankel function H2

# Create Line objects
l1 = pe.Line(x, y1, label='Bessel function of the first kind of order 1')
l2 = pe.Line(x, y2, label='Hankel function of the first kind of order 2')

# Plot using pyescher
pe.plot_lines(l1, l2, 
              xlabel='x', 
              ylabel='y', 
              title='Bessel and Hankel functions',
              show_marker=True,
              nmarkers=21,
              cycle_markers=True,
              cycle_linestyle=True,
              marker_size=5)

📊 Example Output

Example Plot


🎯 Features

Publication-Ready Styling – Easily generate beautiful plots.
Auto-Cycling Markers & Linestyles – Ensures unique styles per plot.
Convenient Plot Handling – Simplifies function-based plotting.
Customizable Annotations & Legends – Clean, well-labeled visuals.


🔧 API Overview

📈 pe.plot_lines(*lines, **kwargs)

Plot multiple Line objects with various styling options.
Common Parameters:

  • xlabel, ylabel, title – Axis labels and title.
  • show_marker=True – Adds markers automatically.
  • nmarkers=21 – Controls marker placement frequency.
  • cycle_markers=True – Cycles through different marker styles.
  • cycle_linestyle=True – Cycles through different line styles.
  • marker_size=5 – Adjusts marker size.

🎨 Why Use pyescher?

📌 Optimized for Scientific & Technical Plots
📌 Saves Time on Styling & Formatting
📌 Produces Aesthetic, Readable Visuals for Papers & Presentations


🛠️ Installation & Development

Clone the repository and install dependencies:

git clone https://github.com/fennisrobert/pyescher.git
cd pyescher
pip install -e .

🤝 Contributing

Contributions are welcome! Feel free to submit an issue or pull request.


🏆 Acknowledgments

Inspired by physics-style plots commonly found in academic papers.

📧 Contact: fennisrobert@gmail.com
📜 License: MIT


🚀 Get started with pyescher and create stunning plots effortlessly! 🎨

Project details


Download files

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

Source Distribution

pyescher-0.2.0.tar.gz (86.5 kB view details)

Uploaded Source

Built Distribution

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

pyescher-0.2.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file pyescher-0.2.0.tar.gz.

File metadata

  • Download URL: pyescher-0.2.0.tar.gz
  • Upload date:
  • Size: 86.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for pyescher-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c8f512c721b2ec7423a873b982a07a4ad69634ee464029b749255de38136ae96
MD5 2593d963f964eb096f043b28ff17edd3
BLAKE2b-256 5ad74e3c9ba938df4c960811da12686d8af5e9f87c8304ccc0b1529587a1946a

See more details on using hashes here.

File details

Details for the file pyescher-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pyescher-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for pyescher-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8d2df00e609505f053185ce111fe428411b8784ccc5c66613ded0f50dc5b96cd
MD5 cb84827ffd9fd4c89789605c3aeea70a
BLAKE2b-256 8e5e163839fd5a034de6961e5cdef39fa31a9441d7098e3028d8ba6861fdbff2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page