|
From: Thomas S. <t.s...@fz...> - 2011-01-03 16:20:15
|
use the special filename '+' (you need gnuplot version >= 4.4): s = 100 xmin = -0.5*pi xmax = 1.5*pi set samples s set xrange [xmin:xmax] # needed for version 4.4.0 set cbrange [0:2] plot '+' using 1:(sin($1)+1):((xmax-xmin)/(s-1)):(sin($1)+1) with boxes palette sprobst wrote: > > Hi, > > I want to try to get either a line plot or a histogram plot where the > height is defines also the color. Very useful would be to have the palette > function. > > Is it possible to do something like > > ###################################### > plot sin(x)+1 with boxes palette > ###################################### > > I tried that and sometimes obtained a weird coloring and sometimes only > black boxes. > > Thank you for your help. > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://old.nabble.com/Using-palette-with-2D-Plot-tp30578224p30579262.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |