[Top][All Lists]

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

stem3 plot error.

From: stripe
Subject: stem3 plot error.
Date: Fri, 14 Dec 2012 04:56:00 -0800 (PST)

    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
#low spin
qa = [453,594];
la = [2,5];
ta = [13.10312652,11.07656846];
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 =
title('Partial half-lives, Q-values and spin change');
xlabel('Qp (keV)');
ylabel('delta l');

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:
Sent from the Octave - General mailing list archive at

reply via email to

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