use core::quantities use core::strings fn _unit_name(x: A) -> String = str_replace("{unit_of(x)}", "1 ", "") fn _is_scalar(x: A) -> Bool = "{unit_of(x)}" == "1" # TODO: this function is overly generic, but we don't have bounded # polymorphism yet. fn show(plot: Plot) -> String