help-octave
[Top][All Lists]
Advanced

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

Re: howto plot data in 3D


From: Martin Helm
Subject: Re: howto plot data in 3D
Date: Mon, 18 Oct 2010 23:48:31 +0200
User-agent: KMail/1.13.5 (Linux/2.6.34.7-0.4-desktop; KDE/4.5.2; x86_64; ; )

Am Montag, 18. Oktober 2010, 23:44:49 schrieb Martin Helm:
> Am Montag, 18. Oktober 2010, 23:26:58 schrieb pathematica:
> > Ben
> > 
> > bpabbott wrote:
> > > Both mesh and surf accept a fourth argument which is mapped to the
> > > colormap.
> > > 
> > >   mesh (x, y, z, c)
> > > 
> > > Unfortunately the documentation doesn't mention it. I'll add it to the
> > > bug tracker.
> > 
> > (Octave 3.2.3; Gnuplot 4.4; Ubuntu 10.04)
> > 
> > Inspired by these comments, I have been trying (unsuccessfully) to change
> > the color of the mesh plot. I have tried a variety of ways to pass the
> > fourth parameter without success.
> > 
> > For example, I have tried (attempting "green" - I have also tried without
> > quotes and small integers):
> > mesh(tx, ty, tz, "g")
> > 
> > This provokes a typical error message of the form:
> > error: surface: z and c must have same size
> > 
> > I would be grateful for any comments.
> > 
> > Thanks
> 
> Its is more a workaround, but you can set the color to constant 1 for the
> whole mesh and redefine the colormap to the value green
> 
> mesh (x, y, z, ones(size(z)))
> colormap([0 1 0])

Addendum:

It seems for gnuplot backend the colormap with one entry is not allowed use

colormap([0 1 0; 0 1 0])

instead.


reply via email to

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