Crate graplot

Source
Expand description

‘graplot’ is an experimental plotting library written in Rust that is based on [macroquad]. It creates a window displaying the graphs.

§Example

use graplot::Plot;


let plot = Plot::new(|x: f64| x.powf(2.));
plot.show();

Re-exports§

pub use graph::Graph;

Modules§

bar
graph
pie
plot
plot3d

Structs§

AxisDesc
Bar
BarDesc
Color
Desc
LineDesc
Pie
PieSegment
Plot
Plot3D
Polynomial
Use the Polynomial struct or polynomial() function to create a polynomial function that runs through all given points.
Scatter
XEnd
YEnd

Enums§

LineType
Marker

Constants§

BEIGE
BLACK
BLANK
BLUE
BROWN
DARKBLUE
DARKBROWN
DARKGRAY
DARKGREEN
DARKPURPLE
FONT_SIZE
GOLD
GRAY
GREEN
LIGHTGRAY
LIME
MAGENTA
MAROON
ORANGE
PINK
PURPLE
RED
SKYBLUE
VIOLET
WHITE
YELLOW

Traits§

BarDescArg
PieSegs
Plot3DArg
PlotArg

Functions§

count_inv_tens
count_tens
divs
get_font_size_x
get_font_size_y
get_steps
max
max_display
max_matrix
min
min_matrix
negative
polynomial
solve_lu
sub
x
sets the absolute max value for x

Type Aliases§

Matrix