Plot

Represents a Plot object. Internally, this would correspond to a Matplotlib Figure.
Imports
import Array;
Table of Contents

Types

Plot

(type)
Represents a Plot object. Internally, this would correspond to a Matplotlib Figure.
type Plot

Functions

plt

def plt : Unit

new

Creates a new, empty plot.
def new : Plot

add_line

Adds a line plot to an existing plot object.
def add_line (p_old : Plot) (1 x_values : Array Float) (1 y_values : Array Float) (color : String) (linestyle : String) : Plot

add_scatter

Adds a scatter plot to an existing plot object.
def add_scatter (p_old : Plot) (1 x_values : Array Float) (1 y_values : Array Float) (color : String) (marker : String) : Plot

set_title

Sets the title of the plot.
def set_title (p_old : Plot) (title_text : String) : Plot

set_xlabel

Sets the X-axis label of the plot.
def set_xlabel (p_old : Plot) (label_text : String) : Plot

set_ylabel

Sets the Y-axis label of the plot.
def set_ylabel (p_old : Plot) (label_text : String) : Plot

show

Displays the plot.
def show (p : Plot) : Unit

save

Saves the plot to a file.
def save (p : Plot) (filename : String) : Unit