From 3bf6a62a67af07b46ebe58de5416cef2d6ab39b0 Mon Sep 17 00:00:00 2001 From: Tal Wrii Date: Sun, 27 Apr 2025 02:24:06 +0200 Subject: [PATCH] Add k-nine plotting tool to the integrations documentation --- docs/integrations.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/integrations.rst b/docs/integrations.rst index 7b726ac11..1f9ffceae 100644 --- a/docs/integrations.rst +++ b/docs/integrations.rst @@ -209,6 +209,20 @@ Add this to bashrc and then to plot a function, simply do: iplot 'sin(x*3)*exp(x*.2)' +.. _tool_k-nine: + +`k-nine `_ +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +A wrapper around the :code:`plotnine` library which lets you plot data from the command-line with bash one-liners by reading data from stdin in CSV, JSONL, or space-separated formats. :code:`plotnine` implements the Graphics of Grammar. + +The following bash command plots the number of downloads of the PyPI library :code:`kitkat` over time: + +.. code-block:: sh + + curl https://pypistats.org/api/packages/kitcat/python_major | jq '.data | .[]' -rc | k-nine 'aes(x="date", y="downloads", group="category", color="category") + geom_line()' + + .. tool_tgutui: `tgutui `_