Crates.io | nu_plugin_plotters |
lib.rs | nu_plugin_plotters |
version | |
source | src |
created_at | 2024-09-19 23:51:20.228749 |
updated_at | 2024-12-01 16:33:24.400826 |
description | A nushell plugin for for plotting charts |
homepage | |
repository | https://github.com/cptpiepmatz/nu-jupyter-kernel |
max_upload_size | |
id | 1380786 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
A nushell plugin for plotting charts.
nu_plugin_plotters
is a plugin for Nushell that
provides easy plotting of data using
plotters
.
The plugin provides three main commands:
series
:
Use this command to create a dataset from a list of data points.
You can pass in:
x
and y
columns.x
and y
coordinates.x
value.You can also apply custom styling to the series.
chart
:
This command creates a chart from one or more series.
You can either pipe the series into the command or pass them as arguments.
Charts can also be extended by adding more series, and you have options to
customize the chart's appearance.
draw
:
This renders the chart onto a canvas.
You can output to an SVG file (using the save
command) or display directly
in the terminal (if it supports Sixel graphics).
Check terminal Sixel support here.
These commands are modular, allowing you to build and inspect charts step by step. Each command's output is a custom value that can be converted into standard Nu values for further inspection or manipulation.
nu-jupyter-kernel
IntegrationThis plugin is directly integrated into the
nu-jupyter-kernel
and
therefore doesn't need to installed separately in order to create charts for the
notebook.
Also charts are automatically "drawn" and don't need to be called via draw svg
.
Just output the chart and the kernel will execute the draw svg
command
automatically (you may need to enforce this using nuju display svg
).
This plugin is integrated directly into the
nu-jupyter-kernel
, so
there's no need for separate installation to create charts within Jupyter
notebooks.
Charts are automatically rendered without the need to explicitly call draw svg
.
Simply output the chart, and the kernel will handle the draw svg
command
behind the scenes.
If necessary, you can enforce this behavior by using the
nuju display svg
command.
This crate follows the semantic versioning scheme as required by the
Rust documentation.
The version number is represented as x.y.z+a.b.c
, where x.y.z
is the version
of the crate and a.b.c
is the version of the nu-plugin
that this crate is
built with.
The +
symbol is used to separate the two version numbers.