Graph with Text as x-axis label?

I have entries;

char *name[4] = {"Joe","Mike","Mary","Richel"};
char *age[4] = {17,22,23,18};

I tried to plot age vs name with x-axis labeled by their name. I tried a lot but I coudn’t get x-axis labeled by name. Please help.

See hlabels*.C here:
https://root.cern/doc/master/group__tutorial__hist.html

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.