public Canvas canvas() {
        Canvas canvas = new Canvas(getLowerBound(), getUpperBound());
        canvas.add(this);
        if (name != null) {
            canvas.setTitle(name);
        }
        return canvas;
    }
@Test
    public void testHistogram() throws Exception {
        System.out.println("Histogram");

        var cow = Read.csv(Paths.getTestData("stat/cow.txt")).column("V1").toDoubleArray();
        var data = Arrays.stream(cow).filter(w -> w <= 3500).toArray();
        var canvas = Histogram.of(data, 50, true).canvas();
        canvas.setAxisLabels("Weight", "Probability");
        canvas.window();
    }