cgrustplot 1.2.2

Plotting utility for Rust, with a variety of plot types and capabilities.
Documentation
#[allow(unused_imports)]
use crate::plots::region_plot::region_plot;

#[test]
fn region_plot_test_1() {
    let p = |x: f64, y: f64| (x.powi(2) + y.powi(2)).sqrt() <= 0.7;

    let o = region_plot(&p)
        .set_domain_and_range(((-1., 1.), (-1., 1.)))
        .set_size((30, 10))
        .set_axes(false)
        .as_string();

    let e = 
"                              
                              
            ▄▄▄▄▄▖            
        ▄▟██████████▄▖        
      ▗███████████████▙       
      ▐████████████████       
       ▀█████████████▛▘       
         ▝▀▀█████▛▀▀          
                              
                              ";

    println!("{}", o);

    assert_eq!(o, e);
}