diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-15 08:50:51 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 08:50:51 +0000 |
commit | b021c4951095bba7faa6c43927f77d41b812bf14 (patch) | |
tree | 5352adfcbefebd87401b307e937daeed383f7af2 | |
parent | 8f24264f87238d9ccd97b5c5f72b7c64775e015b (diff) |
automatic import of python-dufte
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-dufte.spec | 344 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 346 insertions, 0 deletions
@@ -0,0 +1 @@ +/dufte-0.2.29.tar.gz diff --git a/python-dufte.spec b/python-dufte.spec new file mode 100644 index 0000000..efe9d79 --- /dev/null +++ b/python-dufte.spec @@ -0,0 +1,344 @@ +%global _empty_manifest_terminate_build 0 +Name: python-dufte +Version: 0.2.29 +Release: 1 +Summary: Clean matplotlib plots +License: MIT +URL: https://github.com/nschloe/dufte +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3f/dc/81f41060445a319f24c9771e66b8a935fb435b1ca13fecf8cb4b9310a39f/dufte-0.2.29.tar.gz +BuildArch: noarch + +Requires: python3-matplotlib +Requires: python3-numpy + +%description +<p align="center"> + <a href="https://github.com/nschloe/dufte"><img alt="dufte-logo" src="https://nschloe.github.io/dufte/logo.svg" width="40%"></a> + <p align="center"><a href="https://en.wikipedia.org/wiki/Berlin_German">Da kiekste, wa?</a></p> +</p> +[](https://pypi.org/project/dufte/) +[](https://anaconda.org/conda-forge/dufte/) +[](https://pypi.org/project/dufte/) +[](https://github.com/nschloe/dufte) +[](https://pepy.tech/project/dufte) +<!--[](https://pypistats.org/packages/dufte)--> +[](https://github.com/nschloe/dufte/actions?query=workflow%3Aci) +[](https://codecov.io/gh/nschloe/dufte) +[](https://lgtm.com/projects/g/nschloe/dufte) +[](https://github.com/psf/black) +This package creates clean and beautiful plots that work on light and dark backgrounds. +Inspired by the work of [Edward Tufte](https://en.wikipedia.org/wiki/Edward_Tufte). +To use, install with +``` +pip install dufte +``` +and simply select the `dufte` style: +```python +import dufte +import matplotlib.pyplot as plt +# global setting: +plt.style.use(dufte.style) +# with a context manager: +with plt.style.context(dufte.style_bar): + # ... + pass +``` +Check out `dufte.legend()`, `dufte.ylabel()`, and `dufte.show_bar_values()` for more +duftiness. +#### Comparison with default Matplotlib +See [here](tests/create_comparison.py) for how to create the below plots. +<a href="tests/create_comparison.py"> +<table width="100%"> + <tr> + <td width="50%"><img src="https://nschloe.github.io/dufte/ex1-mpl.svg"/></td> + <td width="50%"><img src="https://nschloe.github.io/dufte/ex1-dufte.svg"/></td> + </tr> + <tr> + <td>matplotlib</td> + <td>dufte with <code>dufte.legend()</code></td> + </tr> +</table> +</a> +<a href="tests/create_comparison.py"> +<table width="100%"> + <tr> + <td width="33%"><img src="https://nschloe.github.io/dufte/bars-mpl.svg"/></td> + <td width="33%"><img src="https://nschloe.github.io/dufte/bars-dufte1.svg"/></td> + <td width="33%"><img src="https://nschloe.github.io/dufte/bars-dufte2.svg"/></td> + </tr> + <tr> + <td>matplotlib</td> + <td>dufte</td> + <td>dufte with <code>dufte.show_bar_values()</code></td> + </tr> +</table> +</a> +### Further reading and other styles +- [Remove to improve: data-ink ratio](https://www.darkhorseanalytics.com/blog/data-looks-better-naked) + <img src="https://nschloe.github.io/dufte/data-ink.webp" width="50%"/> +- [Remove to improve: Line Graph Edition](https://youtu.be/bDbJBWvonVI) +- [Show the Data - Maximize the Data Ink Ratio](https://youtu.be/pCp0a5_YIWE) +- [Randal S. Olson's blog entry](http://www.randalolson.com/2014/06/28/how-to-make-beautiful-data-visualizations-in-python-with-matplotlib/) +- [prettyplotlib](https://github.com/olgabot/prettyplotlib) +- [Wikipedia: Chartjunk](https://en.wikipedia.org/wiki/Chartjunk) +Other styles +- [John Garrett, _Science Plots_](https://github.com/garrettj403/SciencePlots) +- [Dominik Haitz, _Cyberpunk style_](https://github.com/dhaitz/mplcyberpunk) +- [Dominik Haitz, _Matplotlib stylesheets_](https://github.com/dhaitz/matplotlib-stylesheets) +- [Carlos da Costa, _The Grand Budapest Hotel_](https://github.com/cako/mpl_grandbudapest) +- [Danny Antaki, _vaporwave aesthetics_](https://github.com/dantaki/vapeplot) +- [QuantumBlack Labs, _QuantumBlack_](https://github.com/quantumblacklabs/qbstyles) +Projects using dufte: +- [perfplot](https://github.com/nschloe/perfplot) +- [stargraph](https://github.com/nschloe/stargraph) +### Background +[](https://chrome.google.com/webstore/detail/xdoc/anidddebgkllnnnnjfkmjcaallemhjee) +The position $`x_i`$ of the line annotations is computed as the solution of a +non-negative least-squares problem +```math +\begin{align} +\frac{1}{2}\sum_i (x_i - t_i)^2 \to \min_x,\\ +(x_i - x_j)^2 \ge a^2 \quad \forall i,j. +\end{align} +``` +where $`a`$ is the minimum distance between two entries and $`t_i`$ is the target +position. + +%package -n python3-dufte +Summary: Clean matplotlib plots +Provides: python-dufte +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-dufte +<p align="center"> + <a href="https://github.com/nschloe/dufte"><img alt="dufte-logo" src="https://nschloe.github.io/dufte/logo.svg" width="40%"></a> + <p align="center"><a href="https://en.wikipedia.org/wiki/Berlin_German">Da kiekste, wa?</a></p> +</p> +[](https://pypi.org/project/dufte/) +[](https://anaconda.org/conda-forge/dufte/) +[](https://pypi.org/project/dufte/) +[](https://github.com/nschloe/dufte) +[](https://pepy.tech/project/dufte) +<!--[](https://pypistats.org/packages/dufte)--> +[](https://github.com/nschloe/dufte/actions?query=workflow%3Aci) +[](https://codecov.io/gh/nschloe/dufte) +[](https://lgtm.com/projects/g/nschloe/dufte) +[](https://github.com/psf/black) +This package creates clean and beautiful plots that work on light and dark backgrounds. +Inspired by the work of [Edward Tufte](https://en.wikipedia.org/wiki/Edward_Tufte). +To use, install with +``` +pip install dufte +``` +and simply select the `dufte` style: +```python +import dufte +import matplotlib.pyplot as plt +# global setting: +plt.style.use(dufte.style) +# with a context manager: +with plt.style.context(dufte.style_bar): + # ... + pass +``` +Check out `dufte.legend()`, `dufte.ylabel()`, and `dufte.show_bar_values()` for more +duftiness. +#### Comparison with default Matplotlib +See [here](tests/create_comparison.py) for how to create the below plots. +<a href="tests/create_comparison.py"> +<table width="100%"> + <tr> + <td width="50%"><img src="https://nschloe.github.io/dufte/ex1-mpl.svg"/></td> + <td width="50%"><img src="https://nschloe.github.io/dufte/ex1-dufte.svg"/></td> + </tr> + <tr> + <td>matplotlib</td> + <td>dufte with <code>dufte.legend()</code></td> + </tr> +</table> +</a> +<a href="tests/create_comparison.py"> +<table width="100%"> + <tr> + <td width="33%"><img src="https://nschloe.github.io/dufte/bars-mpl.svg"/></td> + <td width="33%"><img src="https://nschloe.github.io/dufte/bars-dufte1.svg"/></td> + <td width="33%"><img src="https://nschloe.github.io/dufte/bars-dufte2.svg"/></td> + </tr> + <tr> + <td>matplotlib</td> + <td>dufte</td> + <td>dufte with <code>dufte.show_bar_values()</code></td> + </tr> +</table> +</a> +### Further reading and other styles +- [Remove to improve: data-ink ratio](https://www.darkhorseanalytics.com/blog/data-looks-better-naked) + <img src="https://nschloe.github.io/dufte/data-ink.webp" width="50%"/> +- [Remove to improve: Line Graph Edition](https://youtu.be/bDbJBWvonVI) +- [Show the Data - Maximize the Data Ink Ratio](https://youtu.be/pCp0a5_YIWE) +- [Randal S. Olson's blog entry](http://www.randalolson.com/2014/06/28/how-to-make-beautiful-data-visualizations-in-python-with-matplotlib/) +- [prettyplotlib](https://github.com/olgabot/prettyplotlib) +- [Wikipedia: Chartjunk](https://en.wikipedia.org/wiki/Chartjunk) +Other styles +- [John Garrett, _Science Plots_](https://github.com/garrettj403/SciencePlots) +- [Dominik Haitz, _Cyberpunk style_](https://github.com/dhaitz/mplcyberpunk) +- [Dominik Haitz, _Matplotlib stylesheets_](https://github.com/dhaitz/matplotlib-stylesheets) +- [Carlos da Costa, _The Grand Budapest Hotel_](https://github.com/cako/mpl_grandbudapest) +- [Danny Antaki, _vaporwave aesthetics_](https://github.com/dantaki/vapeplot) +- [QuantumBlack Labs, _QuantumBlack_](https://github.com/quantumblacklabs/qbstyles) +Projects using dufte: +- [perfplot](https://github.com/nschloe/perfplot) +- [stargraph](https://github.com/nschloe/stargraph) +### Background +[](https://chrome.google.com/webstore/detail/xdoc/anidddebgkllnnnnjfkmjcaallemhjee) +The position $`x_i`$ of the line annotations is computed as the solution of a +non-negative least-squares problem +```math +\begin{align} +\frac{1}{2}\sum_i (x_i - t_i)^2 \to \min_x,\\ +(x_i - x_j)^2 \ge a^2 \quad \forall i,j. +\end{align} +``` +where $`a`$ is the minimum distance between two entries and $`t_i`$ is the target +position. + +%package help +Summary: Development documents and examples for dufte +Provides: python3-dufte-doc +%description help +<p align="center"> + <a href="https://github.com/nschloe/dufte"><img alt="dufte-logo" src="https://nschloe.github.io/dufte/logo.svg" width="40%"></a> + <p align="center"><a href="https://en.wikipedia.org/wiki/Berlin_German">Da kiekste, wa?</a></p> +</p> +[](https://pypi.org/project/dufte/) +[](https://anaconda.org/conda-forge/dufte/) +[](https://pypi.org/project/dufte/) +[](https://github.com/nschloe/dufte) +[](https://pepy.tech/project/dufte) +<!--[](https://pypistats.org/packages/dufte)--> +[](https://github.com/nschloe/dufte/actions?query=workflow%3Aci) +[](https://codecov.io/gh/nschloe/dufte) +[](https://lgtm.com/projects/g/nschloe/dufte) +[](https://github.com/psf/black) +This package creates clean and beautiful plots that work on light and dark backgrounds. +Inspired by the work of [Edward Tufte](https://en.wikipedia.org/wiki/Edward_Tufte). +To use, install with +``` +pip install dufte +``` +and simply select the `dufte` style: +```python +import dufte +import matplotlib.pyplot as plt +# global setting: +plt.style.use(dufte.style) +# with a context manager: +with plt.style.context(dufte.style_bar): + # ... + pass +``` +Check out `dufte.legend()`, `dufte.ylabel()`, and `dufte.show_bar_values()` for more +duftiness. +#### Comparison with default Matplotlib +See [here](tests/create_comparison.py) for how to create the below plots. +<a href="tests/create_comparison.py"> +<table width="100%"> + <tr> + <td width="50%"><img src="https://nschloe.github.io/dufte/ex1-mpl.svg"/></td> + <td width="50%"><img src="https://nschloe.github.io/dufte/ex1-dufte.svg"/></td> + </tr> + <tr> + <td>matplotlib</td> + <td>dufte with <code>dufte.legend()</code></td> + </tr> +</table> +</a> +<a href="tests/create_comparison.py"> +<table width="100%"> + <tr> + <td width="33%"><img src="https://nschloe.github.io/dufte/bars-mpl.svg"/></td> + <td width="33%"><img src="https://nschloe.github.io/dufte/bars-dufte1.svg"/></td> + <td width="33%"><img src="https://nschloe.github.io/dufte/bars-dufte2.svg"/></td> + </tr> + <tr> + <td>matplotlib</td> + <td>dufte</td> + <td>dufte with <code>dufte.show_bar_values()</code></td> + </tr> +</table> +</a> +### Further reading and other styles +- [Remove to improve: data-ink ratio](https://www.darkhorseanalytics.com/blog/data-looks-better-naked) + <img src="https://nschloe.github.io/dufte/data-ink.webp" width="50%"/> +- [Remove to improve: Line Graph Edition](https://youtu.be/bDbJBWvonVI) +- [Show the Data - Maximize the Data Ink Ratio](https://youtu.be/pCp0a5_YIWE) +- [Randal S. Olson's blog entry](http://www.randalolson.com/2014/06/28/how-to-make-beautiful-data-visualizations-in-python-with-matplotlib/) +- [prettyplotlib](https://github.com/olgabot/prettyplotlib) +- [Wikipedia: Chartjunk](https://en.wikipedia.org/wiki/Chartjunk) +Other styles +- [John Garrett, _Science Plots_](https://github.com/garrettj403/SciencePlots) +- [Dominik Haitz, _Cyberpunk style_](https://github.com/dhaitz/mplcyberpunk) +- [Dominik Haitz, _Matplotlib stylesheets_](https://github.com/dhaitz/matplotlib-stylesheets) +- [Carlos da Costa, _The Grand Budapest Hotel_](https://github.com/cako/mpl_grandbudapest) +- [Danny Antaki, _vaporwave aesthetics_](https://github.com/dantaki/vapeplot) +- [QuantumBlack Labs, _QuantumBlack_](https://github.com/quantumblacklabs/qbstyles) +Projects using dufte: +- [perfplot](https://github.com/nschloe/perfplot) +- [stargraph](https://github.com/nschloe/stargraph) +### Background +[](https://chrome.google.com/webstore/detail/xdoc/anidddebgkllnnnnjfkmjcaallemhjee) +The position $`x_i`$ of the line annotations is computed as the solution of a +non-negative least-squares problem +```math +\begin{align} +\frac{1}{2}\sum_i (x_i - t_i)^2 \to \min_x,\\ +(x_i - x_j)^2 \ge a^2 \quad \forall i,j. +\end{align} +``` +where $`a`$ is the minimum distance between two entries and $`t_i`$ is the target +position. + +%prep +%autosetup -n dufte-0.2.29 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-dufte -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.29-1 +- Package Spec generated @@ -0,0 +1 @@ +70aaf860d324a28810343ea4ab51a280 dufte-0.2.29.tar.gz |