You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`physics-plot` is a lightweight python package shipping a [Matplotlib style sheet](https://matplotlib.org/stable/gallery/style_sheets/style_sheets_reference.html) called [`pp_base.mplstyle`](https://github.com/c0rychu/physics-plot/blob/main/src/physics_plot/pp_base.mplstyle) and a few helper functions to create publication-quality plots with minimal effort.
6
7
@@ -20,10 +21,30 @@ pip install physics-plot
20
21
21
22
## Quick Start
22
23
24
+
`physics-plot` can be installed via pip:
25
+
```bash
26
+
pip install physics-plot
27
+
```
28
+
29
+
There are basically two ways to use the `physics-plot` stylesheet. You can set it globally at the start of your script/notebook:
23
30
```python
24
31
import matplotlib.pyplot as plt
25
32
26
33
plt.style.use("physics_plot.pp_base")
34
+
35
+
# ======================= #
36
+
# Your plotting code here #
37
+
# ======================= #
38
+
```
39
+
40
+
Or you can apply it to individual figures using a context manager:
0 commit comments