pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
wip/py-joypy: import joypy version 0.2.5.
Module Name: pkgsrc-wip
Committed By: Brook Milligan <brook%nmsu.edu@localhost>
Pushed By: brook
Date: Mon Jun 7 18:11:58 2021 -0600
Changeset: eddf8435f1d5bfc1ebc61925b00d1f9aa77b307d
Modified Files:
Makefile
Added Files:
py-joypy/DESCR
py-joypy/Makefile
py-joypy/PLIST
py-joypy/distinfo
Log Message:
wip/py-joypy: import joypy version 0.2.5.
JoyPy is a one-function Python package based on matplotlib + pandas
with a single purpose: drawing joyplots (a.k.a. ridgeline plots).
Joyplots are stacked, partially overlapping density plots, simple as
that. They are a nice way to plot data to visually compare
distributions, especially those that change across one dimension
(e.g., over time). Though hardly a new technique, they have become
very popular lately thanks to the R package ggjoy
(https://github.com/clauswilke/ggjoy) (which is much better
developed/maintained than this one -- and I strongly suggest you use
that if you can use R and ggplot.) **Update**: the ggjoy package has
now been renamed ggridges (https://github.com/clauswilke/ggridges).
A minimal example is the following:
import joypy
import pandas as pd
iris = pd.read_csv("data/iris.csv")
fig, axes = joypy.joyplot(iris)
By default, `joypy.joyplot()` will draw joyplot with a density subplot
for each numeric column in the dataframe. The density is obtained with
the `gaussian_kde` function of scipy.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=eddf8435f1d5bfc1ebc61925b00d1f9aa77b307d
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
py-joypy/DESCR | 24 ++++++++++++++++++++++++
py-joypy/Makefile | 27 +++++++++++++++++++++++++++
py-joypy/PLIST | 13 +++++++++++++
py-joypy/distinfo | 6 ++++++
5 files changed, 71 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 9d0d2fbabf..b468f7ca30 100644
--- a/Makefile
+++ b/Makefile
@@ -3878,6 +3878,7 @@ SUBDIR+= py-jitcode
SUBDIR+= py-jitcxde-common
SUBDIR+= py-jokosher
SUBDIR+= py-jose
+SUBDIR+= py-joypy
SUBDIR+= py-json-logger
SUBDIR+= py-jsonpath
SUBDIR+= py-jsonrequester
diff --git a/py-joypy/DESCR b/py-joypy/DESCR
new file mode 100644
index 0000000000..e003319e47
--- /dev/null
+++ b/py-joypy/DESCR
@@ -0,0 +1,24 @@
+JoyPy is a one-function Python package based on matplotlib + pandas
+with a single purpose: drawing joyplots (a.k.a. ridgeline plots).
+
+Joyplots are stacked, partially overlapping density plots, simple as
+that. They are a nice way to plot data to visually compare
+distributions, especially those that change across one dimension
+(e.g., over time). Though hardly a new technique, they have become
+very popular lately thanks to the R package ggjoy
+(https://github.com/clauswilke/ggjoy) (which is much better
+developed/maintained than this one -- and I strongly suggest you use
+that if you can use R and ggplot.) **Update**: the ggjoy package has
+now been renamed ggridges (https://github.com/clauswilke/ggridges).
+
+A minimal example is the following:
+
+import joypy
+import pandas as pd
+
+iris = pd.read_csv("data/iris.csv")
+fig, axes = joypy.joyplot(iris)
+
+By default, `joypy.joyplot()` will draw joyplot with a density subplot
+for each numeric column in the dataframe. The density is obtained with
+the `gaussian_kde` function of scipy.
diff --git a/py-joypy/Makefile b/py-joypy/Makefile
new file mode 100644
index 0000000000..f619912dfa
--- /dev/null
+++ b/py-joypy/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD$
+
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+GITHUB_PROJECT= joypy
+GITHUB_TAG= 4273358
+DISTNAME= joypy-0.2.5
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_GITHUB:=sbebo/}
+EXTRACT_SUFX= .zip
+DIST_SUBDIR= ${GITHUB_PROJECT}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/sbebo/joypy
+COMMENT= Draw ridgeline plots in Python
+LICENSE= mit
+
+DEPENDS+= ${PYPKGPREFIX}-matplotlib>=3.4.2:../../graphics/py-matplotlib
+DEPENDS+= ${PYPKGPREFIX}-pandas>=0.20.0:../../math/py-pandas
+DEPENDS+= ${PYPKGPREFIX}-scipy>=0.11.0:../../math/py-scipy
+
+WRKSRC= ${WRKDIR}/joypy-4273358b7dc601a762c44ee8e09b67b90d6a0afb
+USE_LANGUAGES= # none
+
+BUILDLINK_API_DEPENDS.py-numpy+= ${PYPKGPREFIX}-numpy>=1.20.3
+.include "../../math/py-numpy/buildlink3.mk"
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-joypy/PLIST b/py-joypy/PLIST
new file mode 100644
index 0000000000..0cdf6e55c3
--- /dev/null
+++ b/py-joypy/PLIST
@@ -0,0 +1,13 @@
+@comment $NetBSD$
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/joypy/__init__.py
+${PYSITELIB}/joypy/__init__.pyc
+${PYSITELIB}/joypy/__init__.pyo
+${PYSITELIB}/joypy/joyplot.py
+${PYSITELIB}/joypy/joyplot.pyc
+${PYSITELIB}/joypy/joyplot.pyo
diff --git a/py-joypy/distinfo b/py-joypy/distinfo
new file mode 100644
index 0000000000..7de8dc0145
--- /dev/null
+++ b/py-joypy/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (joypy/joypy-0.2.5-4273358.zip) = 186b640ffe78e63143f92a25f6978fbdbecee1f1
+RMD160 (joypy/joypy-0.2.5-4273358.zip) = 4f06d12f5c6166fa4f799f6b5744232750c44eeb
+SHA512 (joypy/joypy-0.2.5-4273358.zip) = e7aa6d9ef6d58138b5f8abc2656face263228133f467bb630a07017a8d82cff66c9edbce93efeff7a324e5e3d78fb995d8a5a95782b021cbfd96c695073a2fc0
+Size (joypy/joypy-0.2.5-4273358.zip) = 3637268 bytes
Home |
Main Index |
Thread Index |
Old Index