Hi, this question is mainly for John Wise,<div><br></div><div>While attempting to produce different plots for a paper, I wanted to create color and gray scale versions of the same plot, but since the background of most plots are white, a gray scale for 2D phase plot would either show the highest or lowest color as white and blend in with the background, so I made my own gray scale colormap according to the matplotlib manual.</div>
<div><br></div><div>It works great for PlotCollection and I can make color/gray-scale-with-no-white-data images in png, but when I tried to use the same colormap with the eps writer, it complains about it in line 571 in </div>
<div>yt/visualization/eps_writer.py</div><div><br></div><div>Here's a sample script of what I used to generate my plots</div><div><a href="http://paste.yt-project.org/show/2739/">http://paste.yt-project.org/show/2739/</a></div>
<div><br></div><div>If I change the line 62 of the script from</div><div><pre style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-family:'Bitstream Vera Sans Mono',monospace;font-size:13px"><span class="n">p</span><span class="o" style="color:rgb(102,102,102)">.</span><span class="n">set_cmap</span><span class="p">(</span><span class="n">my_gray_cmap</span><span class="p">)</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-family:'Bitstream Vera Sans Mono',monospace;font-size:13px"><span class="p"><span style="font-family:arial;font-size:small;white-space:normal">to:  </span></span></pre>
<pre style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-family:'Bitstream Vera Sans Mono',monospace;font-size:13px"><span class="p">p<span class="o" style="color:rgb(102,102,102)">.</span>set_cmap('jet')</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-family:'Bitstream Vera Sans Mono',monospace;font-size:13px"><span class="p"><span style="font-family:arial;font-size:small;white-space:normal">the error goes away.  So PyX can take the matplotlib colormaps or have the same ones built-in.  Is there a convenient way to get</span></span>            </pre>
<pre style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-family:'Bitstream Vera Sans Mono',monospace;font-size:13px">_cmap = <a href="http://plot.cmap.name">plot.cmap.name</a></pre></div><div>to recognize custom colormaps?  Or is there an easier solution to my problem of displaying gray scale data without using the white portion of the gray scale colorbar?</div>
<div><br></div><div>Thanks in advance</div><div><br></div><div>From</div><div>G.S.</div>