Hi David, try this
d1 = RandomVariate[NormalDistribution[2, 0.5], 10^3]; d2 = RandomVariate[PowerDistribution[2, 0.5], 10^3]; PairedHistogram[d1, d2, ChartStyle -> {{Red, Green}}, ChartLegends -> {"d1", "d2"}]
Jack Calman
Excellent! Thanks! It is interesting that the structure of ChartStyle does not match the structure of ChartLegends, but they still get matched up.
Wolfies: How about adding some documentation on this?
Best, David
Which one is d1?
Hi David,
Histogram and PairedHistogram, and actually all other charts, have their own legend option, ChartLegends. You may want to see the individual documentation of functions as well as ChartLegends documentation. It is different from PlotLegends in the sense of that ChartLegends is tied with the depth of datasets while it is unnecessary for PlotLegends.