Skip to content

stdlib/plotView source ↗

plot

16 items · generated by scribe fromstdlib/plot.fd· synced 2026-11-15

stdlib/plot16 items

Contents

plot_debug_header

The SVG header alone (for testing and custom charts).

pub fn plot_debug_header(title: str) -> str {

Parameters:

  • title: str

Returns: str

Defined at line 112


plot_debug_frame

The axes and labels alone (for testing and custom charts).

pub fn plot_debug_frame(x_label: str, y_label: str) -> str {

Parameters:

  • x_label: str
  • y_label: str

Returns: str

Defined at line 117


plot_debug_combined

An empty chart: header, frame and closing tag.

pub fn plot_debug_combined(title: str, x_label: str, y_label: str) -> str {

Parameters:

  • title: str
  • x_label: str
  • y_label: str

Returns: str

Defined at line 122


plot_line

Generate an SVG line plot from two data series. data_x and data_y must be the same length (Vec).

pub fn plot_line(data_x: Vec<f64>, data_y: Vec<f64>, title: str, x_label: str, y_label: str) -> str {

Parameters:

  • data_x: Vec<f64>
  • data_y: Vec<f64>
  • title: str
  • x_label: str
  • y_label: str

Returns: str

Defined at line 158


plot_bar

Generate an SVG bar chart from values and labels. data is Vec, labels is Vec.

pub fn plot_bar(data: Vec<f64>, labels: Vec<str>, title: str) -> str {

Parameters:

  • data: Vec<f64>
  • labels: Vec<str>
  • title: str

Returns: str

Defined at line 214


plot_scatter

Generate an SVG scatter plot from two data series. data_x and data_y must be the same length (Vec).

pub fn plot_scatter(data_x: Vec<f64>, data_y: Vec<f64>, title: str) -> str {

Parameters:

  • data_x: Vec<f64>
  • data_y: Vec<f64>
  • title: str

Returns: str

Defined at line 271


plot_to_file

Write an SVG string to a file.

pub fn plot_to_file(svg: str, path: str) -> void {

Parameters:

  • svg: str
  • path: str

Returns: void

Defined at line 311


plot_html

Wrap an SVG string in a full HTML document.

pub fn plot_html(svg: str, title: str) -> str {

Parameters:

  • svg: str
  • title: str

Returns: str

Defined at line 316


plot_render_html

Wrap an SVG string in HTML and write it to a file.

pub fn plot_render_html(svg: str, title: str, path: str) -> void {

Parameters:

  • svg: str
  • title: str
  • path: str

Returns: void

Defined at line 329


Generated by scribe, the Fides documentation generator