help-octave
[Top][All Lists]
Advanced

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

Re: Plotting problem again


From: asha g
Subject: Re: Plotting problem again
Date: Sun, 1 Jun 2008 16:30:23 -0700 (PDT)

Hi everyone,
Thanks for looking into my problem. I am resending the code so that the problem 
becomes clear. I hope it is a bug that can be fixed soon so I can start 
plotting correctly again. I also have problems with mesh as I said before.

N = 10; l = 0.6; niter = 10; deltaT = 0.0017778;
t= (niter)*deltaT;
x =linspace(0,l,N);
y= linspace(0,t,niter);
vvvv =
 Columns 1 through 6:

  -6.9978e+01  -6.9978e+01  -6.9978e+01  -6.9978e+01  -6.9978e+01  -6.9978e+01
  -6.9956e+01  -6.9956e+01  -6.9956e+01  -6.9956e+01  -6.9956e+01  -6.9956e+01
  -6.9934e+01  -6.9934e+01  -6.9934e+01  -6.9934e+01  -6.9934e+01  -6.9934e+01
  -6.9913e+01  -6.9913e+01  -6.9909e+01  -6.9915e+01  -6.9912e+01  -6.9913e+01
  -6.9878e+01  -6.9878e+01  -7.0015e+01  -6.9764e+01  -6.9961e+01  -6.9863e+01
  -7.0162e+01  -7.0162e+01  -6.4295e+01  -7.6717e+01  -6.4997e+01  -7.2335e+01
  -6.3341e+01  -6.3341e+01  -3.3817e+02   3.0088e+02  -3.7816e+02   1.1724e+02
  -1.5800e+02  -1.5800e+02   1.3585e+04  -2.0477e+04   1.8784e+04  -1.3063e+04
  -3.9643e+03  -3.9643e+03  -7.4331e+05          NaN  -1.1647e+06          NaN
          NaN          NaN          NaN          NaN          NaN          NaN

 Columns 7 through 10:

  -6.9978e+01  -6.9978e+01  -6.9978e+01  -6.9978e+01
  -6.9956e+01  -6.9956e+01  -6.9956e+01  -6.9956e+01
  -6.9934e+01  -6.9934e+01  -6.9934e+01  -6.9934e+01
  -6.9912e+01  -6.9912e+01  -6.9912e+01  -6.9912e+01
  -6.9900e+01  -6.9888e+01  -6.9890e+01  -6.9891e+01
  -6.8879e+01  -7.0176e+01  -6.9907e+01  -6.9817e+01
  -1.5895e+02  -3.8642e+01  -6.5889e+01  -7.4971e+01
   6.9798e+03  -2.8032e+03  -4.0468e+02   3.9483e+02   -5.2204e+05   2.1534e+05 
  2.5020e+04  -3.8420e+04
          NaN          NaN          NaN          NaN
~
~
~

I hope you can figure out what is happening now.
Thanks
Asha 



            Goals too clearly defined can become blinkers.   Mary Catherine 
Bateson 


--- On Sun, 6/1/08, Ben Abbott <address@hidden> wrote:

> From: Ben Abbott <address@hidden>
> Subject: Re: Plotting problem again
> To: "Thomas Weber" <address@hidden>
> Cc: "asha g" <address@hidden>, address@hidden, address@hidden
> Date: Sunday, June 1, 2008, 10:14 PM
> On Jun 1, 2008, at 8:07 AM, Thomas Weber wrote:
> 
> > On 01/06/08 03:58 -0700, asha g wrote:
> >> I am plotting the same data as before vvvv is a fn
> of x and y.
> >> size(vvvv) = 10 10
> >> length(x) = 10
> >> length(y) = 10
> >>
> >> When I give a plot3(x,y,vvvv) command I get the
> following error:
> >>
> >> ans =
> >>
> >>   10   10
> >>
> >> error: plot3: [length(x), length(y)] must match
> size(z)
> >> error: evaluating if command near line 159, column
> 2
> >> error: evaluating if command near line 158, column
> 7
> >> error: evaluating if command near line 113, column
> 5
> >> error: evaluating while command near line 103,
> column 3
> >> error: called from `plot3' in file
> `/usr/local/share/octave/3.0.0/m/ 
> >> plot/plot3.m'
> >> error: near line 109 of file
> `/home/proj/08/cesasha/aseasha/ 
> >> cabunbactoct.
> >
> > [cc'ing bugs, this looks like a bug]
> >
> > I think the order of the elseif and else branches
> should be reverted,
> > see attached patch. No hg changeset, as I want to
> discuss this first.
> 
> >
> >     Thomas
> 
> I'll take a quick look at your patch ... it does look
> like you've  
> found the problem. I'll do some tests to confirm.
> 
> Speaking of tests, who might test scripts be properly
> included in such  
> cases? May be assume a graphics backend is alive and well
> during "make  
> check".
> 
> Ben


      


reply via email to

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