<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Value of color in density plot an</title>
    <link>http://www.mapleprimes.com/questions/36384-Value-Of-Color-In-Density-Plot-An</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Wed, 10 Jun 2026 16:17:21 GMT</lastBuildDate>
    <pubDate>Wed, 10 Jun 2026 16:17:21 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Value of color in density plot an</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Value of color in density plot an</title>
      <link>http://www.mapleprimes.com/questions/36384-Value-Of-Color-In-Density-Plot-An</link>
    </image>
    <item>
      <title>Value of color in density plot</title>
      <link>http://www.mapleprimes.com/questions/36384-Value-Of-Color-In-Density-Plot-An?ref=Feed:MaplePrimes:Value of color in density plot an:Comments#answer61973</link>
      <itunes:summary>&lt;p&gt;Alec answered a similar question a while back.&amp;nbsp; See the link &lt;a href="http://www.mapleprimes.com/forum/density-plot-with-color-gradient-and-corresponding-legend-with-maple-9"&gt;here&lt;/a&gt;.&amp;nbsp; The answer to part 2 of your question is yes.&amp;nbsp; Just use the &amp;quot;display&amp;quot; command.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;address&gt;Regards,&lt;br /&gt;
Georgios Kokovidis&lt;/address&gt;
&lt;address&gt;Dr&amp;auml;ger Medical&lt;/address&gt;
&lt;pre&gt;

&lt;/pre&gt;</itunes:summary>
      <description>&lt;p&gt;Alec answered a similar question a while back.&amp;nbsp; See the link &lt;a href="http://www.mapleprimes.com/forum/density-plot-with-color-gradient-and-corresponding-legend-with-maple-9"&gt;here&lt;/a&gt;.&amp;nbsp; The answer to part 2 of your question is yes.&amp;nbsp; Just use the &amp;quot;display&amp;quot; command.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;address&gt;Regards,&lt;br /&gt;
Georgios Kokovidis&lt;/address&gt;
&lt;address&gt;Dr&amp;auml;ger Medical&lt;/address&gt;
&lt;pre&gt;

&lt;/pre&gt;</description>
      <guid>61973</guid>
      <pubDate>Tue, 10 Nov 2009 06:01:18 Z</pubDate>
      <itunes:author>gkokovidis</itunes:author>
      <author>gkokovidis</author>
    </item>
    <item>
      <title>density plot with colour bar</title>
      <link>http://www.mapleprimes.com/questions/36384-Value-Of-Color-In-Density-Plot-An?ref=Feed:MaplePrimes:Value of color in density plot an:Comments#answer61974</link>
      <itunes:summary>&lt;p&gt;Something like this, perhaps&lt;/p&gt;
&lt;pre&gt;
&amp;gt; with(plots):
  P1:= densityplot(x*exp(-x^2-y^2),x=-1..1,y=-1..1,grid=[25,25],
     colourstyle=HUE,axes=box):
  P3:= plot3d(x*exp(-x^2-y^2),x=-1..1,y=-1..1,grid=[25,25]):
  ZA:= op([1,3],indets(P3,specfunc(anything,GRID))):
  zmax, zmin:= (min,max)(ZA):
  cbar:= densityplot(z,x=0.. 0.1, z=zmax .. zmin,grid=[2,25],
    colourstyle=HUE,axes=box,tickmarks=[0,5],labels=[&amp;quot;&amp;quot;,&amp;quot;&amp;quot;]):
  display(Array([P1,cbar]));
&lt;/pre&gt;
&lt;p&gt;Now the colour bar is much too wide, so click on its right edge with the mouse and resize.&lt;span&gt;&lt;a href="http://www.mapleprimes.com/viewfile/3827"&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Unfortunately this only works in the Standard&amp;nbsp; GUI: it seems to be impossible to export the resulting plot as a single image to gif or jpeg formats (what I show below is two separate files, which strangely enough were given different heights).&lt;/span&gt;&amp;nbsp; And in Classic the display command seems to run forever.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="http://www.mapleprimes.com/viewfile/3828"&gt;&lt;img alt="" src="http://www.mapleprimes.com/scripts/image.php?image=http://www.mapleprimes.com/files/4541_cbar4.jpeg&amp;amp;width=300&amp;amp;height=300" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span&gt;&lt;a href="http://www.mapleprimes.com/viewfile/3829"&gt;&lt;img alt="" src="http://www.mapleprimes.com/scripts/image.php?image=http://www.mapleprimes.com/files/4541_cbar4b.jpeg&amp;amp;width=300&amp;amp;height=300" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Something like this, perhaps&lt;/p&gt;
&lt;pre&gt;
&amp;gt; with(plots):
  P1:= densityplot(x*exp(-x^2-y^2),x=-1..1,y=-1..1,grid=[25,25],
     colourstyle=HUE,axes=box):
  P3:= plot3d(x*exp(-x^2-y^2),x=-1..1,y=-1..1,grid=[25,25]):
  ZA:= op([1,3],indets(P3,specfunc(anything,GRID))):
  zmax, zmin:= (min,max)(ZA):
  cbar:= densityplot(z,x=0.. 0.1, z=zmax .. zmin,grid=[2,25],
    colourstyle=HUE,axes=box,tickmarks=[0,5],labels=[&amp;quot;&amp;quot;,&amp;quot;&amp;quot;]):
  display(Array([P1,cbar]));
&lt;/pre&gt;
&lt;p&gt;Now the colour bar is much too wide, so click on its right edge with the mouse and resize.&lt;span&gt;&lt;a href="http://www.mapleprimes.com/viewfile/3827"&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Unfortunately this only works in the Standard&amp;nbsp; GUI: it seems to be impossible to export the resulting plot as a single image to gif or jpeg formats (what I show below is two separate files, which strangely enough were given different heights).&lt;/span&gt;&amp;nbsp; And in Classic the display command seems to run forever.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="http://www.mapleprimes.com/viewfile/3828"&gt;&lt;img alt="" src="http://www.mapleprimes.com/scripts/image.php?image=http://www.mapleprimes.com/files/4541_cbar4.jpeg&amp;amp;width=300&amp;amp;height=300" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span&gt;&lt;a href="http://www.mapleprimes.com/viewfile/3829"&gt;&lt;img alt="" src="http://www.mapleprimes.com/scripts/image.php?image=http://www.mapleprimes.com/files/4541_cbar4b.jpeg&amp;amp;width=300&amp;amp;height=300" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>61974</guid>
      <pubDate>Tue, 10 Nov 2009 06:37:24 Z</pubDate>
      <itunes:author>Robert Israel</itunes:author>
      <author>Robert Israel</author>
    </item>
    <item>
      <title>scaling = constrained?</title>
      <link>http://www.mapleprimes.com/questions/36384-Value-Of-Color-In-Density-Plot-An?ref=Feed:MaplePrimes:Value of color in density plot an:Comments#comment61975</link>
      <itunes:summary>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;Now the colour bar is much too wide, so click on its right edge with the mouse and resize&amp;quot;&lt;/p&gt;
&lt;div id="result_box" dir="ltr"&gt;Why not use the command scaling = constrained?&lt;/div&gt;
&lt;p&gt;cbar: = densityplot (z, x = 0 ... 1, z = zmin .. zmax, grid = [2, 25], colourstyle = HUE, axes = box, tickmarks = [0, 5], labels = [ &amp;quot; &amp;quot;&amp;quot; &amp;quot;], scaling = constrained)&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.mapleprimes.com/viewfile/3827"&gt;HerCalu&lt;br /&gt;
&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;Now the colour bar is much too wide, so click on its right edge with the mouse and resize&amp;quot;&lt;/p&gt;
&lt;div id="result_box" dir="ltr"&gt;Why not use the command scaling = constrained?&lt;/div&gt;
&lt;p&gt;cbar: = densityplot (z, x = 0 ... 1, z = zmin .. zmax, grid = [2, 25], colourstyle = HUE, axes = box, tickmarks = [0, 5], labels = [ &amp;quot; &amp;quot;&amp;quot; &amp;quot;], scaling = constrained)&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.mapleprimes.com/viewfile/3827"&gt;HerCalu&lt;br /&gt;
&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>61975</guid>
      <pubDate>Tue, 10 Nov 2009 18:33:29 Z</pubDate>
      <itunes:author>herclau</itunes:author>
      <author>herclau</author>
    </item>
    <item>
      <title>scaling=constrained</title>
      <link>http://www.mapleprimes.com/questions/36384-Value-Of-Color-In-Density-Plot-An?ref=Feed:MaplePrimes:Value of color in density plot an:Comments#comment61976</link>
      <itunes:summary>&lt;p&gt;What that gives me when the Array is displayed is two rectangles of the same size; the colour bar is narrow, but there's a lot of white space around it.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;What that gives me when the Array is displayed is two rectangles of the same size; the colour bar is narrow, but there's a lot of white space around it.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>61976</guid>
      <pubDate>Wed, 11 Nov 2009 03:46:30 Z</pubDate>
      <itunes:author>Robert Israel</itunes:author>
      <author>Robert Israel</author>
    </item>
    <item>
      <title>masterly</title>
      <link>http://www.mapleprimes.com/questions/36384-Value-Of-Color-In-Density-Plot-An?ref=Feed:MaplePrimes:Value of color in density plot an:Comments#comment61977</link>
      <itunes:summary>&lt;p&gt;Genial&lt;/p&gt;
&lt;p&gt;Gracias&lt;/p&gt;
&lt;p&gt;HerClau&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Genial&lt;/p&gt;
&lt;p&gt;Gracias&lt;/p&gt;
&lt;p&gt;HerClau&lt;/p&gt;</description>
      <guid>61977</guid>
      <pubDate>Wed, 11 Nov 2009 18:20:44 Z</pubDate>
      <itunes:author>herclau</itunes:author>
      <author>herclau</author>
    </item>
  </channel>
</rss>