MCPcopy Create free account
hub / github.com/Euphrasiologist/nu_plugin_plot / signature

Method signature

src/lib.rs:380–406  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

378 }
379
380 fn signature(&self) -> nu_protocol::Signature {
381 Signature::build("plot")
382 .description("Render an ASCII plot from a list of values.")
383 .named(
384 "width",
385 SyntaxShape::Number,
386 "The maximum width of the plot.",
387 None,
388 )
389 .named(
390 "height",
391 SyntaxShape::Number,
392 "The maximum height of the plot.",
393 None,
394 )
395 .named(
396 "title",
397 SyntaxShape::String,
398 "Provide a title to the plot.",
399 Some('t'),
400 )
401 .switch("legend", "Plot a tiny, maybe useful legend.", Some('l'))
402 .switch("bars", "Change lines to bars.", Some('b'))
403 .switch("steps", "Change lines to steps.", Some('s'))
404 .switch("points", "Change lines to points.", Some('p'))
405 .category(Category::Experimental)
406 }
407
408 fn description(&self) -> &str {
409 "Render an ASCII plot from a list of values."

Callers

nothing calls this directly

Calls 1

descriptionMethod · 0.80

Tested by

no test coverage detected