|
From: Vik R. <vi...@mi...> - 2010-11-15 03:36:26
|
When I run a sample contour chart in Excel and in DeltaGraph, I get a different look than I do with the false color map in gnuplot. The Excel and DeltaGraph charts have very straight, angled edges, which my client prefers. The gnuplot chart is in squarish blocks. Is it possible to avoid this squarish blocky look, and to get this look that we find in Excel and Deltagraph charts, with a gnuplot false color or contour chart? Link to Excel sample chart: http://www.market-research-services.com/Temporary/Excel-sample.jpg Link to DeltaGraph sample chart: http://www.market-research-services.com/Temporary/DeltaGraph-sample.jpg Link to Gnuplot sample chart: http://www.market-research-services.com/Temporary/gnuplot-sample.jpg Link to datafile: http://www.market-research-services.com/Temporary/dataFileKey_30 Thanks very much in advance for any info. Best, -Vik gnuplot commands: unset surface unset key set view map set pm3d set palette defined (0 'black', 2 'gray50', 3 'dark-blue', 8.43243243243 'dark-green', 18.972972973 'light-green', 20.5263157895 '#dac000', 30.7894736842 '#fee000', 32.8421052632 '#ff8000', 55.4210526316 '#ff5a00', 66.7105263158 'orange-red', 78 'dark-red') set output '/Applications/Heatmaps/htdocs/ftp/Heatmaps/heatMap_key30.jpg' set term jpeg size 600, 600 enhanced font '/Library/Fonts/arial.ttf' 8 set dgrid3d 400,400 gauss 0.35,0.35 set size square set xtics("" 1, "Day 0" 2, "2-7\ndays" 3, "2\nWeeks" 4, "3\nWeeks" 5, "1\nMonth" 6, "2-3\nMonths" 7, "4-6\nMonths" 8, "7-12\nMonths" 9, "1 Year+" 10 ) set title '{/=18 Chart Title}' offset 0, .5 set ylabel '{/=16 Degree of Influence}' offset -1.6, 0 set xlabel '{/=16 Days from Purchase}' offset 0,-1.6 set xtics out nomirror set ytics out nomirror set ytics("" 0, "1" 1, "2" 2, "3" 3, "4" 4, "5" 5, "6" 6, "7" 7, "8" 8, "9" 9, "10" 10, "" 11) set y2tics("" 0, "1" 1, "2" 2, "3" 3, "4" 4, "5" 5, "6" 6, "7" 7, "8" 8, "9" 9, "10" 10, "" 11) set xrange [0:11] reverse set yrange [0:11] splot [1:] '/Applications/Heatmaps/htdocs/ftp/Heatmaps/dataFileKey_30' matrix replot |
|
From: Thomas S. <t.s...@fz...> - 2010-11-16 11:03:43
|
Vik Rubenfeld <vikr <at> mindspring.com> writes: > > When I run a sample contour chart in Excel and in DeltaGraph, I get a different look than I do with the false > color map in gnuplot. The Excel and DeltaGraph charts have very straight, angled edges, which my client > prefers. The gnuplot chart is in squarish blocks. Is it possible to avoid this squarish blocky look, and to > get this look that we find in Excel and Deltagraph charts, with a gnuplot false color or contour chart? > ... > gnuplot commands: > ... > set dgrid3d 400,400 gauss 0.35,0.35 > ... > splot [1:] '/Applications/Heatmaps/htdocs/ftp/Heatmaps/dataFileKey_30' matrix > ... change the dx,dy values in the 'set dgrid3d' command, e.g. set dgrid3d 400,400 gauss 0.7,0.7 |
|
From: Vik R. <vi...@mi...> - 2010-11-16 17:10:48
|
Hi Thomas, Thanks for the feedback. I find I get a great look with the splines algorithm: set cbrange [0:115] //without this for some reason I get colors assigned to negative values, even though there are no negative values in the data being plotted set dgrid3d 400,400 splines I think my client will like this look. However, previously, they have been accustomed to the look you get on a contour chart in Excel or DeltaGraph - a look with angled, straight lines. Examples: Link to Excel sample chart: http://www.market-research-services.com/Temporary/Excel-sample.jpg Link to DeltaGraph sample chart: http://www.market-research-services.com/Temporary/DeltaGraph-sample.jpg Is there a way to get this look with Gnuplot? (I'm pretty sure there isn't because I've tried all the dgrid algorithms, but possibly I'm missing something.) And the next question: if the Excel way is such a standard that it is used by Excel and DeltaGraph - why doesn't gnuplot use it also? I'm hoping there's a very good reason that I can tell my client if they ask me. :) Thanks in advance to all for any info! Best, -Vik On Nov 16, 2010, at 3:03 AM, Thomas Sefzick wrote: > Vik Rubenfeld <vikr <at> mindspring.com> writes: > >> >> When I run a sample contour chart in Excel and in DeltaGraph, I get a > different look than I do with the false >> color map in gnuplot. The Excel and DeltaGraph charts have very straight, > angled edges, which my client >> prefers. The gnuplot chart is in squarish blocks. Is it possible to avoid this > squarish blocky look, and to >> get this look that we find in Excel and Deltagraph charts, with a gnuplot > false color or contour chart? >> ... >> gnuplot commands: >> ... >> set dgrid3d 400,400 gauss 0.35,0.35 >> ... >> splot [1:] '/Applications/Heatmaps/htdocs/ftp/Heatmaps/dataFileKey_30' matrix >> ... > > change the dx,dy values in the 'set dgrid3d' command, e.g. > > set dgrid3d 400,400 gauss 0.7,0.7 > > > > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info |