[Top][All Lists]

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

Re: Error to put a title on my pie chart

From: Markus Mützel
Subject: Re: Error to put a title on my pie chart
Date: Sat, 14 Mar 2020 10:31:26 +0100

Am 14. März 2020 um 09:13 Uhr schrieb "Fernando Cerda":
> Dear all,
> I am using Octave 5.2.
> I tried to create a pied chart from health data.  This is the command for the 
> plotting:
> figure 1
>  pie ([sum(B(:,4)), sum(B(:,5)), (sum(B(:,8))-sum(B(:,6)))], [0, 0, 1]);​
>  colormap ([1,0,0;0,1,0;0,0,1;1,1,0;1,0,1;0,1,1]);​
>  labels = {'No de Mulheres','No Voluntarios','No Beneficiados'};​
>  legend(labels,'Location','southoutside','Orientation','horizontal')​
> title('1 Número total de pessoas envolvidas no distrito')
> This is the error
> error: title(195): out of bound 28 (note: variable 'title' shadows function)
> once you get the error, you cannot use the command "title" anymore.  You have 
> to exit Octave and load it again.
> I would greatly appreciate if you can help me to fix the error,

You seem to have created a variable named "title" before you issued the above 
commands. The error message seems to be quite explicit about that.
Try "clear title" before executing your commands again.


reply via email to

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