help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: labels in categorical bar graph


From: Raag Saluja
Subject: Re: labels in categorical bar graph
Date: Fri, 1 Nov 2019 12:08:13 +0530

Thank you so much! Can you please help me with one more thing?
I was making a subplots. How do I get the (a), (b), (c).... labels of the various subplots? So later I can refer to them as Fig X (a) etc.

Thank you and sorry for the bother!
Regards,
Raag

On Thu, Oct 31, 2019 at 9:28 PM "Markus Mützel" <address@hidden> wrote:
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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]