1 个不稳定版本
0.1.0 | 2023 年 5 月 14 日 |
---|
#298 在 可视化
40KB
142 行
Croot-Gui
A Rust 包,用于绘制复数根和数字
上下文
此包旨在与 croot
配对
示例
创建图形
use croot_gui::prelude::*;
// Complex roots of a function
let roots = vec![ ... ];
// Name of file to generate
let filename = "graph.png";
// Size of image in pixels
let dimensions = (1000, 1000);
// Generate the graph with the selected parameters
generate_graph(roots, filename, dimensions).expect("Failed);
显示图形
use croot_gui::prelude::*;
// Complex roots of a function
let roots = vec![ ... ];
// Size of image and window in pixels
let dimensions = (1000, 1000);
// Open a window containing the graph generated from the selected parameters
show_graph(roots, dimensions).expect("Failed to ");
依赖关系
~14–32MB
~306K SLoC