MCPcopy Create free account

hub / github.com/coder543/dataplotlib / functions

Functions40 in github.com/coder543/dataplotlib

↓ 12 callersFunctionpoint2window
(pt: f64, view: Range, window: Range, invert: bool)
src/draw.rs:88
↓ 6 callersMethodsize
(&self)
src/draw.rs:29
↓ 5 callersFunctionzip2
`zip2` will combine two `Vec<T>` into a single `Vec<(T, T)>` with a length equal to the length of the shorter input `Vec`. Rust has a built in `zip` f
src/util.rs:22
↓ 4 callersMethodset_color
Set color for various drawing actions
src/draw_sdl.rs:54
↓ 4 callersMethodset_view
Sets the visible range of worldspace
src/draw_sdl.rs:44
↓ 3 callersMethodadd_simple_xy
`add_simple_xy` adds an `PlotVals2D::XyColor` by taking the xy values
src/plotbuilder.rs:93
↓ 3 callersFunctionf32_4_to_color
(col: [f32; 4])
src/plot.rs:42
↓ 3 callersFunctionlinspace
`linspace` allows eases the creation a `Vec` of values to use as the x values on a plot. Once that is done, it is straightforward to map some function
src/util.rs:7
↓ 3 callersMethodplot2d
`plot2d` is currently the only supported plotting function. It takes a `PlotBuilder2D` containing all needed information.
src/plotter.rs:25
↓ 2 callersMethod_join
The internal version of `join` that only really takes a mutable reference to allow `join`ing during `Drop`.
src/plotter.rs:42
↓ 2 callersMethodadd_color_xy
`add_color_xy` is the same of `add_simple_xy`, but with the choice of a color
src/plotbuilder.rs:98
↓ 2 callersMethodcontains
(&self, pt: f64)
src/draw.rs:33
↓ 2 callersFunctionget_max
(user_max: Option<f64>, values: &Vec<f64>)
src/plot.rs:14
↓ 2 callersFunctionget_min
(user_min: Option<f64>, values: &Vec<f64>)
src/plot.rs:28
↓ 2 callersMethodget_view
Gets the visible range of worldspace
src/draw_sdl.rs:49
↓ 2 callersMethodthick_line
Draws a line from (x, y) -> (x, y) in worldspace
src/draw_sdl.rs:77
↓ 1 callersMethodclear
Clears the output surface
src/draw_sdl.rs:59
↓ 1 callersFunctionclip_line
(mut a: (f64, f64), mut b: (f64, f64), view: Range2d)
src/plot.rs:74
↓ 1 callersMethoddisown
The `disown` function allows the thread that owns the `Plotter` to keep going without either `join`ing manually or letting the `Drop` trait force a `j
src/plotter.rs:32
↓ 1 callersFunctiondraw_borders
(bordercol: [u8; 4], bgcol: [u8; 4], space: (f64, f64), m: (f64, f64), renderer: &mut Drawable)
src/plot.rs:51
↓ 1 callersFunctiondraw_plots
(renderer: &mut Drawable, xs: &Vec<Vec<f64>>, ys: &Vec<Vec<f64>>, colors: &Vec<[f32; 4]>, plot_bounds: [f64; 4
src/plot.rs:126
↓ 1 callersMethodget_events
Returns the next pending event
src/draw_sdl.rs:163
↓ 1 callersFunctionget_plot_bounds
(plot_builder: &PlotBuilder2D, xs: &Vec<Vec<f64>>, ys: &Vec<Vec<f64>>)
src/plot.rs:239
↓ 1 callersMethodjoin
The `join` function allows the thread that owns the `Plotter` to wait until the user has closed all open plot windows before continuing.
src/plotter.rs:37
↓ 1 callersMethodpresent
(&mut self)
src/draw_sdl.rs:152
↓ 1 callersMethodrectangle
Draws a rectangle bounded by two corners
src/draw_sdl.rs:99
↓ 1 callersFunctionset_xy
(xy: &Vec<(f64, f64)>, x_vector: &mut Vec<Vec<f64>>, y_vector: &mut Vec<Vec<f64>>)
src/plot.rs:62
↓ 1 callersMethodunfilled_rectangle
Draws a rectangle bounded by two corners
src/draw_sdl.rs:126
Methodadd_fun_xy
`add_fun_xy` adds a function (should not be used)
src/plotbuilder.rs:103
Methodclose
Asks that the Drawable stop any tasks and cleanup
src/draw.rs:85
Methoddrop
(&mut self)
src/plotter.rs:52
Methodfrom
((a, b): (Range, Range))
src/draw.rs:48
Methodline
Draws a line from (x, y) -> (x, y) in worldspace
src/draw_sdl.rs:72
Functionmain
()
examples/simplexy.rs:7
Functionmain
()
examples/coloredxy.rs:7
Methodnew
`new` creates a new `Plotter` object to manage asynchronous plots
src/plotter.rs:20
Methodnew
`new` reduces boilerplate by generating some basic defaults for the `PlotBuilder2D` struct. Once the struct is returned, it's easy enough to make adju
src/plotbuilder.rs:74
Methodnew
(sdlh: Sdl2Mt)
src/draw_sdl.rs:22
Methodnew2d
(mut plot_builder: PlotBuilder2D, mut renderer: Box<Drawable>)
src/plot.rs:267
Functionplot2d_test
()
src/plotter.rs:66