From: Vik R. <vi...@mi...> - 2010-11-18 02:32:17
|
I'm trying to turn off the legend in my plot, using "unset key" and "set key off", but the legend keeps being included in the plot. How can I fix this? Thanks in advance to all for any info. gnuplot commands: ------------------------ unset surface unset key set key off set view map set pm3d set palette defined (0 'black', 1 'gray30', 1.5 'gray40', 2 'dark-blue', 8.21052631579 'dark-green', 18.4736842105 'light-green', 20.5263157895 '#dac000', 24.6315789474 '#fee000', 30.7894736842 '#fc7a00', 36.9473684211 '#ff8000', 55.4210526316 '#ff5a00', 72.0986842105 'orange-red', 74.0657894737 '#ff0000', 78 'dark-red') set cbrange [0:115] set output '/Applications/htdocs/ftp/Heatmaps/heatMap_key6.jpg' set term jpeg size 600, 600 enhanced font '/Library/Fonts/Arial.ttf' 8 set dgrid3d 200,200 splines set key off 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 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/htdocs/ftp/Heatmaps/dataFileKey_6' matrix replot data file: ---------- 0 0 0 0 0 0 0 0 0 0 0 0 1 0 3 2 0 1 0 0 0 0 0 0 2 0 1 2 0 1 2 0 0 0 0 0 3 0 2 1 0 0 1 0 0 0 0 0 4 0 2 5 1 0 4 3 2 1 0 0 5 0 3 5 1 3 4 3 3 0 0 0 6 0 3 13 3 10 12 6 1 1 0 0 7 0 4 8 6 5 16 11 1 1 0 0 8 0 7 21 11 12 12 8 2 3 0 0 9 0 7 13 5 7 10 5 2 0 0 0 10 0 6 8 2 4 6 5 2 1 0 0 11 0 0 0 0 0 0 0 0 0 0 0 |
From: Thomas S. <t.s...@fz...> - 2010-11-18 19:38:49
|
maybe 'unset colorbox' is what you are searching for? Vik_R wrote: > > I'm trying to turn off the legend in my plot, using "unset key" and "set > key off", but the legend keeps being included in the plot. How can I fix > this? Thanks in advance to all for any info. > > gnuplot commands: > ------------------------ > unset surface > unset key > set key off > set view map > set pm3d > set palette defined (0 'black', 1 'gray30', 1.5 'gray40', 2 'dark-blue', > 8.21052631579 'dark-green', 18.4736842105 'light-green', 20.5263157895 > '#dac000', 24.6315789474 '#fee000', 30.7894736842 '#fc7a00', > 36.9473684211 '#ff8000', 55.4210526316 '#ff5a00', 72.0986842105 > 'orange-red', 74.0657894737 '#ff0000', 78 'dark-red') > set cbrange [0:115] > set output '/Applications/htdocs/ftp/Heatmaps/heatMap_key6.jpg' > set term jpeg size 600, 600 enhanced font '/Library/Fonts/Arial.ttf' 8 > set dgrid3d 200,200 splines > set key off > 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 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/htdocs/ftp/Heatmaps/dataFileKey_6' matrix > replot > > data file: > ---------- > 0 0 0 0 0 0 0 0 0 0 0 0 > 1 0 3 2 0 1 0 0 0 0 0 0 > 2 0 1 2 0 1 2 0 0 0 0 0 > 3 0 2 1 0 0 1 0 0 0 0 0 > 4 0 2 5 1 0 4 3 2 1 0 0 > 5 0 3 5 1 3 4 3 3 0 0 0 > 6 0 3 13 3 10 12 6 1 1 0 0 > 7 0 4 8 6 5 16 11 1 1 0 0 > 8 0 7 21 11 12 12 8 2 3 0 0 > 9 0 7 13 5 7 10 5 2 0 0 0 > 10 0 6 8 2 4 6 5 2 1 0 0 > 11 0 0 0 0 0 0 0 0 0 0 0 > > > ------------------------------------------------------------------------------ > 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 > > -- View this message in context: http://old.nabble.com/Newbie-question---How-to-Turn-Off-Legend---tp30244529p30250531.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
From: Vik R. <vi...@mi...> - 2010-11-19 02:02:52
|
Thanks for this info. I just tried it. It does get rid of the colorbox... but it also gets rid of most of the colors. Very odd. Is there a way to remove the colorbox without upsetting the color palette? Best, -Vik On Nov 18, 2010, at 11:38 AM, Thomas Sefzick wrote: > > maybe 'unset colorbox' is what you are searching for? > > > Vik_R wrote: >> >> I'm trying to turn off the legend in my plot, using "unset key" and "set >> key off", but the legend keeps being included in the plot. How can I fix >> this? Thanks in advance to all for any info. >> >> gnuplot commands: >> ------------------------ >> unset surface >> unset key >> set key off >> set view map >> set pm3d >> set palette defined (0 'black', 1 'gray30', 1.5 'gray40', 2 'dark-blue', >> 8.21052631579 'dark-green', 18.4736842105 'light-green', 20.5263157895 >> '#dac000', 24.6315789474 '#fee000', 30.7894736842 '#fc7a00', >> 36.9473684211 '#ff8000', 55.4210526316 '#ff5a00', 72.0986842105 >> 'orange-red', 74.0657894737 '#ff0000', 78 'dark-red') >> set cbrange [0:115] >> set output '/Applications/htdocs/ftp/Heatmaps/heatMap_key6.jpg' >> set term jpeg size 600, 600 enhanced font '/Library/Fonts/Arial.ttf' 8 >> set dgrid3d 200,200 splines >> set key off >> 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 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/htdocs/ftp/Heatmaps/dataFileKey_6' matrix >> replot >> >> data file: >> ---------- >> 0 0 0 0 0 0 0 0 0 0 0 0 >> 1 0 3 2 0 1 0 0 0 0 0 0 >> 2 0 1 2 0 1 2 0 0 0 0 0 >> 3 0 2 1 0 0 1 0 0 0 0 0 >> 4 0 2 5 1 0 4 3 2 1 0 0 >> 5 0 3 5 1 3 4 3 3 0 0 0 >> 6 0 3 13 3 10 12 6 1 1 0 0 >> 7 0 4 8 6 5 16 11 1 1 0 0 >> 8 0 7 21 11 12 12 8 2 3 0 0 >> 9 0 7 13 5 7 10 5 2 0 0 0 >> 10 0 6 8 2 4 6 5 2 1 0 0 >> 11 0 0 0 0 0 0 0 0 0 0 0 >> >> >> ------------------------------------------------------------------------------ >> 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 >> >> > > -- > View this message in context: http://old.nabble.com/Newbie-question---How-to-Turn-Off-Legend---tp30244529p30250531.html > Sent from the Gnuplot - User mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > 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 |
From: Thomas S. <t.s...@fz...> - 2010-11-20 14:22:57
|
you have set cbrange [0:115] your data sets maximum value is 21 so you don't use the whole color range. Vik_R wrote: > > Thanks for this info. I just tried it. It does get rid of the colorbox... > but it also gets rid of most of the colors. Very odd. > > Is there a way to remove the colorbox without upsetting the color palette? > > Best, > > > -Vik > > > On Nov 18, 2010, at 11:38 AM, Thomas Sefzick wrote: > >> >> maybe 'unset colorbox' is what you are searching for? >> >> >> Vik_R wrote: >>> >>> I'm trying to turn off the legend in my plot, using "unset key" and "set >>> key off", but the legend keeps being included in the plot. How can I fix >>> this? Thanks in advance to all for any info. >>> >>> gnuplot commands: >>> ------------------------ >>> unset surface >>> unset key >>> set key off >>> set view map >>> set pm3d >>> set palette defined (0 'black', 1 'gray30', 1.5 'gray40', 2 'dark-blue', >>> 8.21052631579 'dark-green', 18.4736842105 'light-green', 20.5263157895 >>> '#dac000', 24.6315789474 '#fee000', 30.7894736842 '#fc7a00', >>> 36.9473684211 '#ff8000', 55.4210526316 '#ff5a00', 72.0986842105 >>> 'orange-red', 74.0657894737 '#ff0000', 78 'dark-red') >>> set cbrange [0:115] >>> set output '/Applications/htdocs/ftp/Heatmaps/heatMap_key6.jpg' >>> set term jpeg size 600, 600 enhanced font '/Library/Fonts/Arial.ttf' 8 >>> set dgrid3d 200,200 splines >>> set key off >>> 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 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/htdocs/ftp/Heatmaps/dataFileKey_6' matrix >>> replot >>> >>> data file: >>> ---------- >>> 0 0 0 0 0 0 0 0 0 0 0 0 >>> 1 0 3 2 0 1 0 0 0 0 0 0 >>> 2 0 1 2 0 1 2 0 0 0 0 0 >>> 3 0 2 1 0 0 1 0 0 0 0 0 >>> 4 0 2 5 1 0 4 3 2 1 0 0 >>> 5 0 3 5 1 3 4 3 3 0 0 0 >>> 6 0 3 13 3 10 12 6 1 1 0 0 >>> 7 0 4 8 6 5 16 11 1 1 0 0 >>> 8 0 7 21 11 12 12 8 2 3 0 0 >>> 9 0 7 13 5 7 10 5 2 0 0 0 >>> 10 0 6 8 2 4 6 5 2 1 0 0 >>> 11 0 0 0 0 0 0 0 0 0 0 0 >>> >>> >>> ------------------------------------------------------------------------------ >>> 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 >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/Newbie-question---How-to-Turn-Off-Legend---tp30244529p30250531.html >> Sent from the Gnuplot - User mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> 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 > > > ------------------------------------------------------------------------------ > 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 > > -- View this message in context: http://old.nabble.com/Newbie-question---How-to-Turn-Off-Legend---tp30244529p30265683.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |