Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit 13ed98d

Browse files
authored
Merge pull request #50 from nschloe/deprecate
Deprecate
2 parents fa94fcc + ec72fce commit 13ed98d

File tree

4 files changed

+34
-22
lines changed

4 files changed

+34
-22
lines changed

README.md

+25-20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Deprecation
2+
3+
dufte as a stand-alone module has been deprecated and merged into [mplx](https://github.com/nschloe/mplx).
4+
5+
---
6+
17
<p align="center">
28
<a href="https://github.com/nschloe/dufte"><img alt="dufte-logo" src="https://nschloe.github.io/dufte/logo.svg" width="40%"></a>
39
<p align="center"><a href="https://en.wikipedia.org/wiki/Berlin_German">Da kiekste, wa?</a></p>
@@ -7,7 +13,8 @@
713
[![Anaconda Cloud](https://anaconda.org/conda-forge/dufte/badges/version.svg?=style=flat-square)](https://anaconda.org/conda-forge/dufte/)
814
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/dufte.svg?style=flat-square)](https://pypi.org/project/dufte/)
915
[![GitHub stars](https://img.shields.io/github/stars/nschloe/dufte.svg?logo=github&label=Stars&logoColor=white&style=flat-square)](https://github.com/nschloe/dufte)
10-
[![PyPi downloads](https://img.shields.io/pypi/dm/dufte.svg?style=flat-square)](https://pypistats.org/packages/dufte)
16+
[![Downloads](https://pepy.tech/badge/dufte/month?style=flat-square)](https://pepy.tech/project/dufte)
17+
<!--[![PyPi downloads](https://img.shields.io/pypi/dm/dufte.svg?style=flat-square)](https://pypistats.org/packages/dufte)-->
1118

1219
[![gh-actions](https://img.shields.io/github/workflow/status/nschloe/dufte/ci?style=flat-square)](https://github.com/nschloe/dufte/actions?query=workflow%3Aci)
1320
[![codecov](https://img.shields.io/codecov/c/github/nschloe/dufte.svg?style=flat-square)](https://codecov.io/gh/nschloe/dufte)
@@ -17,7 +24,13 @@
1724
This package creates clean and beautiful plots that work on light and dark backgrounds.
1825
Inspired by the work of [Edward Tufte](https://en.wikipedia.org/wiki/Edward_Tufte).
1926

20-
To use, simply select the `dufte` style:
27+
To use, install with
28+
29+
```
30+
pip install dufte
31+
```
32+
33+
and simply select the `dufte` style:
2134

2235
```python
2336
import dufte
@@ -67,7 +80,7 @@ See [here](tests/create_comparison.py) for how to create the below plots.
6780
</table>
6881
</a>
6982

70-
Further reading:
83+
### Further reading and other styles
7184

7285
- [Remove to improve: data-ink ratio](https://www.darkhorseanalytics.com/blog/data-looks-better-naked)
7386

@@ -79,6 +92,15 @@ Further reading:
7992
- [prettyplotlib](https://github.com/olgabot/prettyplotlib)
8093
- [Wikipedia: Chartjunk](https://en.wikipedia.org/wiki/Chartjunk)
8194

95+
Other styles
96+
97+
- [John Garrett, _Science Plots_](https://github.com/garrettj403/SciencePlots)
98+
- [Dominik Haitz, _Cyberpunk style_](https://github.com/dhaitz/mplcyberpunk)
99+
- [Dominik Haitz, _Matplotlib stylesheets_](https://github.com/dhaitz/matplotlib-stylesheets)
100+
- [Carlos da Costa, _The Grand Budapest Hotel_](https://github.com/cako/mpl_grandbudapest)
101+
- [Danny Antaki, _vaporwave aesthetics_](https://github.com/dantaki/vapeplot)
102+
- [QuantumBlack Labs, _QuantumBlack_](https://github.com/quantumblacklabs/qbstyles)
103+
82104
Projects using dufte:
83105

84106
- [perfplot](https://github.com/nschloe/perfplot)
@@ -100,20 +122,3 @@ non-negative least-squares problem
100122

101123
where $`a`$ is the minimum distance between two entries and $`t_i`$ is the target
102124
position.
103-
104-
### Testing
105-
106-
To run the dufte unit tests, check out this repository and type
107-
108-
```
109-
pytest
110-
```
111-
112-
### Other style sheets and further reading
113-
114-
- [John Garrett, _Science Plots_](https://github.com/garrettj403/SciencePlots)
115-
- [Dominik Haitz, _Cyberpunk style_](https://github.com/dhaitz/mplcyberpunk)
116-
- [Dominik Haitz, _Matplotlib stylesheets_](https://github.com/dhaitz/matplotlib-stylesheets)
117-
- [Carlos da Costa, _The Grand Budapest Hotel_](https://github.com/cako/mpl_grandbudapest)
118-
- [Danny Antaki, _vaporwave aesthetics_](https://github.com/dantaki/vapeplot)
119-
- [QuantumBlack Labs, _QuantumBlack_](https://github.com/quantumblacklabs/qbstyles)

justfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ default:
77

88
tag:
99
@if [ "$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then exit 1; fi
10-
curl -H "Authorization: token `cat ~/.github-access-token`" -d '{"tag_name": "{{version}}"}' https://api.github.com/repos/nschloe/{{name}}/releases
10+
curl -H "Authorization: token `cat ~/.github-access-token`" -d '{"tag_name": "v{{version}}"}' https://api.github.com/repos/nschloe/{{name}}/releases
1111

1212
upload: clean
1313
@if [ "$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then exit 1; fi

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = dufte
3-
version = 0.2.28
3+
version = 0.2.29
44
author = Nico Schlömer
55
author_email = [email protected]
66
description = Clean matplotlib plots

src/dufte/__init__.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
import warnings
2+
13
from .main import legend, show_bar_values, style, style_bar, ylabel
24

35
__all__ = ["legend", "style", "style_bar", "ylabel", "show_bar_values"]
6+
7+
warnings.warn(
8+
"dufte has been merged into mplx, <https://github.com/nschloe/mplx>",
9+
DeprecationWarning,
10+
)

0 commit comments

Comments
 (0)