|
From: Thomas S. <t.s...@fz...> - 2009-10-24 08:55:52
|
change the 'fence plot' example a little bit:
reset
sinc(u,v) = sin(sqrt(u**2+v**2)) / sqrt(u**2+v**2)
set zrange [-1:1]
set xrange [-5:5]; set yrange [-5:5]
set parametric
set isosamples 2,33
xx=-5; dx=(4.99-(-4.99))/9
x0=xx; xx=xx+dx
x1=xx; xx=xx+dx
x2=xx; xx=xx+dx
x3=xx; xx=xx+dx
x4=xx; xx=xx+dx
x5=xx; xx=xx+dx
x6=xx; xx=xx+dx
x7=xx; xx=xx+dx
x8=xx; xx=xx+dx
x9=xx; xx=xx+dx
splot [][v=-4.99:4.99] \
x0, v, sinc(x0,v) with lines lw 5 palette notitle, \
x1, v, sinc(x1,v) with lines lw 5 palette notitle, \
x2, v, sinc(x2,v) with lines lw 5 palette notitle, \
x3, v, sinc(x3,v) with lines lw 5 palette notitle, \
x4, v, sinc(x4,v) with lines lw 5 palette notitle, \
x5, v, sinc(x5,v) with lines lw 5 palette notitle, \
x6, v, sinc(x6,v) with lines lw 5 palette notitle, \
x7, v, sinc(x7,v) with lines lw 5 palette notitle, \
x8, v, sinc(x8,v) with lines lw 5 palette notitle, \
x9, v, sinc(x9,v) with lines lw 5 palette notitle
pause -1
set view map
replot
Charlton Galvarino wrote:
>
> Hi, list.
>
> I am looking at http://gnuplot.sourceforge.net/demo_4.2/surface1.html,
> specifically the 'fence plot'. I'd like to apply that to some chlorophyll
> traces.
>
> I've been beating my head and scouring the net to see how I could take
> something like that and turn it into a 2d image but not lose the data.
> I've gone through many hands on iterations, and nothing turns out quite
> right.
>
> In the case of that example, I would want to drag the image down such that
> the X and Y axes would appear normally as a 2d chart, but the -1 to 1 Z
> axis data would be color-coded by a smooth gradient that I might see had I
> splot-ted w/ a palette.
>
> In other words, I'd end up w/ 10 vertical lines on a 2d chart, but these
> vertical lines would each have multiple colors within each one to
> represent the Z value. Each line would be like a variably colored
> gummyworm.
>
> Ha, leave it to google images to give me an example
> http://tinyurl.com/yfml25m.
>
> I hope that description makes some sense.
>
> Many thanks,
>
> Charlton
>
>
>
>
>
> Charlton Galvarino
> 1 (803) 233-6205 : voice
> 1 (803) 223-9579 : fax
> cha...@2c...
>
> P.O. Box 50960
> Columbia, SC 29250
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Gnuplot-info mailing list
> Gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
>
--
View this message in context: http://www.nabble.com/2d-fence-plot-w--variable-color-tp26031985p26037205.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|