Metadata-Version: 2.4
Name: pyescher
Version: 0.2.2
Summary: A Matplotlib wrapper with more convenience and pretty plots with a style common in physics papers.
Project-URL: Homepage, https://github.com/FennisRobert/pyescher
Project-URL: Issues, https://github.com/FennisRobert/pyescher/issues
Author-email: Robert Fennis <fennisrobert@gmail.com>
License: MIT
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Requires-Dist: loguru>=0.7.3
Requires-Dist: matplotlib<=3.9
Requires-Dist: numpy>=2.2
Requires-Dist: pip-tools>=7.4.1
Requires-Dist: twine>=6.1.0
Description-Content-Type: text/markdown

# 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:  
```sh
pip install pyescher
```

## 📜 Quick Example: Bessel and Hankel Functions  
The following example demonstrates how to plot **Bessel** and **Hankel functions** using `pyescher`:

```python
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](assets/bessel_hankel_plot.png)

---

## 🎯 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:  
```sh
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](mailto:fennisrobert@gmail.com)  
📜 **License:** MIT  

---

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