I plotted a histogram and I used AxesLabel for labeling X axis and Y axis But it went wrong. How to do it?.
Xarray = A @@@ Tuples[Range[0, 9], 3];
M = RandomSample[Xarray, 7]
Table[energies = RandomVariate[ExponentialDistribution[1.5], {Length@M}];
Total[energies/7], {i, 1000}];
Histogram[%, AxesLabel \[RightArrow] {"Average energy", "Number of times"}]
AxesLabel
works fine, BTW.) $\endgroup$Histogram[%, AxesLabel -> {"Average energy", "Number of times"}]
. $\endgroup$\[RightArrow]
with->
or\[Rule]
. $\endgroup$