|
From: Thomas S. <t.s...@fz...> - 2010-08-01 15:23:30
|
instead of a histogram you may use boxes: set xrange [-1:7] set yrange [-1.5:1.5] set style fill solid 0.5 set palette defined (-1 "black", .25 "green", 1 "red") plot "file1.dat" us 0:2:(0.5):2 with boxes lc palette notitle, \ "" using 0:($2>=0?$2+0.1:$2-0.1):1 with labels notitle mannu jha wrote: > > Hi, > > > > I have a file like this > > file1.dat: > > I 1 > > M 1 > > N -1 > > G 0 > > K 1 > > L 0.25 > > R -1 > > > > I want to draw histogram with different color for different values like > for 1 it will come with red color, -1 will come with black color and 0.25 > will come tilted and of green color (but the order in whatever way they > are in file shouldn't change in plot). Does anyone have any idea how to do > that? > > > > Thanks, > > Mannu > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://old.nabble.com/how-to-plot-different-values-of-a-file-with-different-color-tp29306359p29318641.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |