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: Pantxo
Subject: Re: labels in categorical bar graph
Date: Thu, 31 Oct 2019 11:37:43 -0500 (CDT)

mmuetzel 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

I think this question was asked and answered twice
(https://octave.1599824.n4.nabble.com/xticklables-td4694366.html). OP,
please try to not do multiple posts for the same question.

Pantxo 



--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

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