Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Euphrasiologist/nu_plugin_plot
/ functions
Functions
47 in github.com/Euphrasiologist/nu_plugin_plot
⨍
Functions
47
◇
Types & classes
13
↓ 7 callers
Method
line
Draws a line from `(x1, y1)` to `(x2, y2)` onto the `Canvas`.
src/color_plot/drawille.rs:195
↓ 7 callers
Method
line_colored
Draws a line from `(x1, y1)` to `(x2, y2)` onto the `Canvas` specifying the color of the line
src/color_plot/drawille.rs:220
↓ 7 callers
Function
min_max
Return the minimum and the maximum of a slice of `f32`.
src/lib.rs:134
↓ 5 callers
Function
chart_shape
The shape of the plot. Default is `Shape::Lines`, but also includes `Shape::Bars` and `Shape::Steps`.
src/lib.rs:101
↓ 5 callers
Method
linear
Translates value from domain to range scale. ``` # use textplots::scale::Scale; assert_eq!(-0.8, Scale::new(0_f32..10_f32, -1_f32..1_f32).linear(1.0))
src/color_plot/textplots/scale.rs:17
↓ 5 callers
Function
parse_cli_opts
Parse the command line options.
src/lib.rs:53
↓ 5 callers
Method
to_string
(&mut self)
src/color_plot/textplots/mod.rs:224
↓ 4 callers
Method
set
Sets a pixel at the specified coordinates.
src/color_plot/drawille.rs:67
↓ 3 callers
Function
check_equality_of_list
Check a list of values for equality of type, length. Return the type.
src/lib.rs:157
↓ 3 callers
Method
description
(&self)
src/lib.rs:408
↓ 3 callers
Method
hline
Draws horizontal line.
src/color_plot/textplots/mod.rs:213
↓ 3 callers
Method
lineplot
(&'a mut self, shape: &'a Shape)
src/color_plot/textplots/mod.rs:412
↓ 3 callers
Method
plot
( &self, call: &EvaluatedCall, input: &Value, )
src/lib.rs:231
↓ 3 callers
Method
plot_nested
( &self, call: &EvaluatedCall, input: &Value, )
src/lib.rs:285
↓ 3 callers
Method
vline
Draws vertical line.
src/color_plot/textplots/mod.rs:202
↓ 2 callers
Function
check_chart_shape
Check the chart shape is Okay. If not returns an error.
src/lib.rs:118
↓ 2 callers
Function
histogram
Helpers for passing the data into plots. Merely a bunch of functions hanging around while the library API is taking shape. Transforms points into fre
src/color_plot/textplots/utils.rs:13
↓ 2 callers
Method
inv_linear
Translates value from range to domain scale. ``` # use textplots::scale::Scale; assert_eq!(5.5, Scale::new(0_f32..10_f32, -1_f32..1_f32).inv_linear(0.
src/color_plot/textplots/scale.rs:28
↓ 2 callers
Method
linecolorplot
(&'a mut self, shape: &'a Shape, color: PixelColor)
src/color_plot/textplots/mod.rs:402
↓ 2 callers
Method
rescale
(&mut self, shape: &Shape)
src/color_plot/textplots/mod.rs:359
↓ 1 callers
Method
axis
Show axis.
src/color_plot/textplots/mod.rs:254
↓ 1 callers
Method
borders
Displays bounding rect.
src/color_plot/textplots/mod.rs:191
↓ 1 callers
Method
display
Prints canvas content.
src/color_plot/textplots/mod.rs:243
↓ 1 callers
Method
figures
Show figures.
src/color_plot/textplots/mod.rs:267
↓ 1 callers
Method
frame
Return the frame.
src/color_plot/textplots/mod.rs:355
↓ 1 callers
Method
get
Detects whether the pixel at the given coordinates is set.
src/color_plot/drawille.rs:138
↓ 1 callers
Function
get_value_type_or_list_length
Get the type of a `Value`, and its length if it's a list.
src/lib.rs:145
↓ 1 callers
Method
rows
Returns a `Vec` of each row of the `Canvas`. Note that each row is actually four pixels high due to the fact that a single Braille character spans tw
src/color_plot/drawille.rs:150
↓ 1 callers
Method
set_char
Sets a letter at the specified coordinates.
src/color_plot/drawille.rs:94
↓ 1 callers
Method
set_colored
Sets a pixel at the specified coordinates. specifying the color of the braille char
src/color_plot/drawille.rs:81
Method
clear
Clears the canvas.
src/color_plot/drawille.rs:62
Method
commands
(&self)
src/lib.rs:210
Method
default
()
src/color_plot/textplots/mod.rs:123
Method
frame
Draws the canvas to a `String` and returns it.
src/color_plot/drawille.rs:190
Function
main
()
src/main.rs:4
Method
name
(&self)
src/lib.rs:376
Method
new
Creates a new `Canvas` with the given width and height. Note that the `Canvas` can still draw outside the given dimensions (expanding the canvas) if
src/color_plot/drawille.rs:53
Method
new
Creates a new `Chart` object. # Panics Panics if `width` or `height` is less than 32.
src/color_plot/textplots/mod.rs:134
Method
new
(domain: Range<f32>, range: Range<f32>)
src/color_plot/textplots/scale.rs:34
Method
new_with_y_range
Creates a new `Chart` object with fixed y axis range. # Panics Panics if `width` or `height` is less than 32.
src/color_plot/textplots/mod.rs:161
Method
nice
Prints canvas content with some additional visual elements (like borders).
src/color_plot/textplots/mod.rs:248
Method
run
( &self, _plugin: &Self::Plugin, _engine: &nu_plugin::EngineInterface, call: &
src/lib.rs:412
Method
signature
(&self)
src/lib.rs:380
Method
text
Draws text at the specified coordinates (top-left of the text) up to max_width length
src/color_plot/drawille.rs:107
Method
toggle
Toggles a pixel at the specified coordinates.
src/color_plot/drawille.rs:128
Method
unset
Deletes a pixel at the specified coordinates.
src/color_plot/drawille.rs:118
Method
version
(&self)
src/lib.rs:207