mulit-group histogram

37 views
Skip to first unread message

Brent Pedersen

unread,
Sep 21, 2016, 11:10:18 AM9/21/16
to gonum-dev
Hi, following the examples wiki, I was able to get something going for a histogram with multiple groups by extracting the weights calculated by
a plot.Histogram and then plotting them as BarChart with Offset. This works fine expect that the labels for the X-axis are off.

So, questions are:
1) is there an obvious better way to have a multi-group histogram? It seems like if the plotter.Histogram had something like an Offset attribute,
I would be able to have multiple actual histograms.
2) If not, how would I set the X-axis labels to reflect the actual data range?


thanks,
-Brent

Ethan Burns

unread,
Oct 25, 2016, 12:11:19 PM10/25/16
to gonum-dev
Sorry for the late response. I don't check this list regularly.

As far as I can recall, there is no supported way to do grouped histograms on a single plot. You would have to create multiple plots.
Reply all
Reply to author
Forward
0 new messages