MCPcopy Create free account

hub / github.com/Euphrasiologist/nu_plugin_plot / functions

Functions47 in github.com/Euphrasiologist/nu_plugin_plot

↓ 7 callersMethodline
Draws a line from `(x1, y1)` to `(x2, y2)` onto the `Canvas`.
src/color_plot/drawille.rs:195
↓ 7 callersMethodline_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 callersFunctionmin_max
Return the minimum and the maximum of a slice of `f32`.
src/lib.rs:134
↓ 5 callersFunctionchart_shape
The shape of the plot. Default is `Shape::Lines`, but also includes `Shape::Bars` and `Shape::Steps`.
src/lib.rs:101
↓ 5 callersMethodlinear
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 callersFunctionparse_cli_opts
Parse the command line options.
src/lib.rs:53
↓ 5 callersMethodto_string
(&mut self)
src/color_plot/textplots/mod.rs:224
↓ 4 callersMethodset
Sets a pixel at the specified coordinates.
src/color_plot/drawille.rs:67
↓ 3 callersFunctioncheck_equality_of_list
Check a list of values for equality of type, length. Return the type.
src/lib.rs:157
↓ 3 callersMethoddescription
(&self)
src/lib.rs:408
↓ 3 callersMethodhline
Draws horizontal line.
src/color_plot/textplots/mod.rs:213
↓ 3 callersMethodlineplot
(&'a mut self, shape: &'a Shape)
src/color_plot/textplots/mod.rs:412
↓ 3 callersMethodplot
( &self, call: &EvaluatedCall, input: &Value, )
src/lib.rs:231
↓ 3 callersMethodplot_nested
( &self, call: &EvaluatedCall, input: &Value, )
src/lib.rs:285
↓ 3 callersMethodvline
Draws vertical line.
src/color_plot/textplots/mod.rs:202
↓ 2 callersFunctioncheck_chart_shape
Check the chart shape is Okay. If not returns an error.
src/lib.rs:118
↓ 2 callersFunctionhistogram
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 callersMethodinv_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 callersMethodlinecolorplot
(&'a mut self, shape: &'a Shape, color: PixelColor)
src/color_plot/textplots/mod.rs:402
↓ 2 callersMethodrescale
(&mut self, shape: &Shape)
src/color_plot/textplots/mod.rs:359
↓ 1 callersMethodaxis
Show axis.
src/color_plot/textplots/mod.rs:254
↓ 1 callersMethodborders
Displays bounding rect.
src/color_plot/textplots/mod.rs:191
↓ 1 callersMethoddisplay
Prints canvas content.
src/color_plot/textplots/mod.rs:243
↓ 1 callersMethodfigures
Show figures.
src/color_plot/textplots/mod.rs:267
↓ 1 callersMethodframe
Return the frame.
src/color_plot/textplots/mod.rs:355
↓ 1 callersMethodget
Detects whether the pixel at the given coordinates is set.
src/color_plot/drawille.rs:138
↓ 1 callersFunctionget_value_type_or_list_length
Get the type of a `Value`, and its length if it's a list.
src/lib.rs:145
↓ 1 callersMethodrows
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 callersMethodset_char
Sets a letter at the specified coordinates.
src/color_plot/drawille.rs:94
↓ 1 callersMethodset_colored
Sets a pixel at the specified coordinates. specifying the color of the braille char
src/color_plot/drawille.rs:81
Methodclear
Clears the canvas.
src/color_plot/drawille.rs:62
Methodcommands
(&self)
src/lib.rs:210
Methoddefault
()
src/color_plot/textplots/mod.rs:123
Methodframe
Draws the canvas to a `String` and returns it.
src/color_plot/drawille.rs:190
Functionmain
()
src/main.rs:4
Methodname
(&self)
src/lib.rs:376
Methodnew
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
Methodnew
Creates a new `Chart` object. # Panics Panics if `width` or `height` is less than 32.
src/color_plot/textplots/mod.rs:134
Methodnew
(domain: Range<f32>, range: Range<f32>)
src/color_plot/textplots/scale.rs:34
Methodnew_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
Methodnice
Prints canvas content with some additional visual elements (like borders).
src/color_plot/textplots/mod.rs:248
Methodrun
( &self, _plugin: &Self::Plugin, _engine: &nu_plugin::EngineInterface, call: &
src/lib.rs:412
Methodsignature
(&self)
src/lib.rs:380
Methodtext
Draws text at the specified coordinates (top-left of the text) up to max_width length
src/color_plot/drawille.rs:107
Methodtoggle
Toggles a pixel at the specified coordinates.
src/color_plot/drawille.rs:128
Methodunset
Deletes a pixel at the specified coordinates.
src/color_plot/drawille.rs:118
Methodversion
(&self)
src/lib.rs:207