[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: labels in categorical bar graph
From: |
Markus Mützel |
Subject: |
Re: labels in categorical bar graph |
Date: |
Thu, 31 Oct 2019 16:58:25 +0100 |
Am 31. Oktober 2019 um 08:11 Uhr schrieb "Raag Saluja":
> Hi!
>
> I tried making a bar graph with categorical data. However, the labels of the
> categories are not coming below the bars. Can you please help?
>
> This is the code I used:
> P = -2,920,000 -2,936,000 -2,935,000 -2,937,000 -2,939,000 -2,938,000
> bar(P)
> set(gca,"xticklabel",{'1JFF','α1aβII', 'α1aβIII', 'α1bβII', 'α1bβIII',
> 'α8β8'});
Try also setting a tick at each x value:
set(gca,"xticklabel",{'1JFF','α1aβII', 'α1aβIII', 'α1bβII', 'α1bβIII', 'α8β8'},
"XTick", 1:numel(P));
Markus