I have a dataset with a large number of points, and would like to plot histograms which are costly to calculate. I would prefer if I could save the calculated histogram using `JLD2`

, then load it in a separate script for plotting. Eg (MWE, this is of course trivially fast)

```
using JLD2
x = randn(100)
f(x) = x^2
# is there a library which has a representation for a histogram,
# independently of its plot ...?
h = histogram(f.(x))
@save "data.jld2" h
```

then

```
using Plots; gr()
using JLD2
@load "data.jld2"
plot(h) # ... that I could then plot?
```