bland 0.2.1

Pure-Rust library for paper-ready, monochrome, hatch-patterned technical plots in the visual tradition of 1960s-80s engineering reports.
Documentation
use bland::{Basemap, Figure, Hatch, PaperSize, Projection, Stroke};

fn main() {
    let fig = Figure::new()
        .size(PaperSize::Square)
        .title("Lunar near side — major maria")
        .projection(Projection::Equirect)
        .xlim(-90.0, 90.0)
        .ylim(-60.0, 60.0)
        .basemap(Basemap::MoonMaria, |b| {
            b.stroke(Stroke::Solid)
                .stroke_width(0.6)
                .hatch(Hatch::DotsSparse)
        });

    std::fs::create_dir_all("out").expect("create out/");
    std::fs::write("out/moon_map.svg", fig.to_svg()).expect("write svg");
    println!("wrote out/moon_map.svg");
}