Scatter(
title: "Data From Two Csv Files Woweeeee",
canvas_pixel_size: (1920, 1080),
x_axis_label: "Time (ms)",
x_axis_resolution: 13, // Number of times the x-axis will be divided to show your data scale. Advised to make it a ratio of your largest x value
y_axis_label: "Current (mA)",
y_axis_resolution: 26, // Number of times the y-axis will be divided to show your data scale. Advised to make it a ratio of your largest y value
has_grid: true, // Should the graph have a light grey background grid
has_legend: true, // should a legend be generated? Only really useful with multiple data sets
data_sets: [
DataSet(
data_path: "scatter1.csv",
has_headers: true, // if your data has headers set to `true` so they can be ignored
x_axis_csv_column: 0, // which column contains the x values
x_axis_error_bar_csv_column: None, // which column contains x uncertainty Some(usize) or None
y_axis_csv_column: 1, // which column contains the y values
y_axis_error_bar_csv_column: None, // which column contains y uncertainty Some(usize) or None
name: "First csv", // legend will indicate which colour and symbol correspond to which data set
colour: Green, // the colour to render a data point
symbol: Triangle, // the shape a plotted data point should take
symbol_radius: 14, // The size of a drawn symbol in (1+ symbol_radius) pixels
symbol_thickness: 2, // The thinkness of a drawn symbol in (1 + symbol_thickness) pixels
best_fit: None, // A curve to fit to the axes. Some(BestFit) or None
),
DataSet(
data_path: "scatter2.csv",
has_headers: true, // if your data has headers set to `true` so they can be ignored
x_axis_csv_column: 0, // which column contains the x values
x_axis_error_bar_csv_column: None, // which column contains x uncertainty Some(usize) or None
y_axis_csv_column: 1, // which column contains the y values
y_axis_error_bar_csv_column: None, // which column contains y uncertainty Some(usize) or None
name: "Second csv", // legend will indicate which colour and symbol correspond to which data set
colour: Red, // the colour to render a data point
symbol: Square, // the shape a plotted data point should take
symbol_radius: 7, // The size of a drawn symbol in (1+ symbol_radius) pixels
symbol_thickness: 2, // The thinkness of a drawn symbol in (1 + symbol_thickness) pixels
best_fit: None, // A curve to fit to the axes. Some(BestFit) or None
),
],
)