These days gnuplt comes with builtin KGP support
This commit is contained in:
parent
9be602f94f
commit
a9e71e5b5b
1 changed files with 2 additions and 22 deletions
|
|
@ -197,28 +197,8 @@ by kitty's graphics protocol for displaying plots
|
|||
`gnuplot <http://www.gnuplot.info/>`_
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
A graphing and data visualization tool that can be made to display its output in
|
||||
kitty with the following bash snippet:
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
function iplot {
|
||||
cat <<EOF | gnuplot
|
||||
set terminal pngcairo enhanced font 'Fira Sans,10'
|
||||
set autoscale
|
||||
set samples 1000
|
||||
set output '|kitten icat --stdin yes'
|
||||
set object 1 rectangle from screen 0,0 to screen 1,1 fillcolor rgb"#fdf6e3" behind
|
||||
plot $@
|
||||
set output '/dev/null'
|
||||
EOF
|
||||
}
|
||||
|
||||
Add this to bashrc and then to plot a function, simply do:
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
iplot 'sin(x*3)*exp(x*.2)'
|
||||
A graphing and data visualization tool that has support for the kitty graphics
|
||||
protocol, with its ``kittygd`` and ``kittycairo`` backends.
|
||||
|
||||
.. _tool_k-nine:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue