help-octave
[Top][All Lists]
Advanced

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

Re: stem3 plot error.


From: Juan Pablo Carbajal
Subject: Re: stem3 plot error.
Date: Fri, 14 Dec 2012 15:07:33 +0100

On Fri, Dec 14, 2012 at 1:56 PM, stripe <address@hidden> wrote:
> Hi,
>     I've been using Octave to make 3d scatter plots. The stem3 function
> achieves what I need so I've been using that. It was working fine, until I
> received the following error:
>
> error: invalid use of script in index expression
> error: called from:
> error:   /usr/share/octave/3.2.3/m/plot/__stem__.m at line 159, column 5
> error:   /usr/share/octave/3.2.3/m/plot/stem3.m at line 46, column 7
> error:   /home/rob/analysis/3d_t_q_l_plot/plot.m at line 7, column 1
>
> As I understand it, this is a standard error message, so it's been difficult
> to search for similar cases to solve my problem.
>
> The stem3 function worked fine, and now it doesn't. The line the error
> messages refer to in __stem__.m is:
>
> axes (oldax);
>
> I'm wondering whether I have inadvertently changed something that this line
> no longer likes as my octave code previously worked.
>
> Here is the code that causes the error,
>
> #plotting 3d functions
> clf;
> #low spin
> qa = [453,594];
> la = [2,5];
> ta = [13.10312652,11.07656846];
> stem3(qa,la,ta);
> #scatter3(qa,la,ta);
> hold on;
> #high spin
> qb = [3261,3261,3150,2306.9,1671.1,1401.3,966.6,555.2,455.9,385.6];
> lb = [16,16,14,12,10,8,8,6,6,5];
> tb =
> [19.22534117,19.22534117,12.0502105,8.856632918,6.619658288,3.740037072,8.781491379,13.99372784,17.94266647,19.95134835];
> stem3(qb,lb,tb);
> #scatter3(qb,lb,tb);
> title('Partial half-lives, Q-values and spin change');
> xlabel('Qp (keV)');
> ylabel('delta l');
> zlabel('log(t1/2)');
>
> Thanks in advance. Sorry if this has been answered already, however, as the
> error message is so common, the range of problems it represents has made it
> hard to find a similar case to mine.
>
>
>
> --
> View this message in context: 
> http://octave.1599824.n4.nabble.com/stem3-plot-error-tp4647911.html
> Sent from the Octave - General mailing list archive at Nabble.com.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave

I cannot reproduce here:
GNU/Linux, Debian 7.0
Octave 3.6.2

The script works fine.


reply via email to

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