<div dir="ltr">Hi Aaron and Nathan,<div><br></div><div>This worked great - thanks a lot!</div><div>-desika</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 18, 2014 at 4:18 PM, Aaron Smith <span dir="ltr"><<a href="mailto:asmith@astro.as.utexas.edu" target="_blank">asmith@astro.as.utexas.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi Desika,<br>
    <br>
    I'll just add one thing. If you want to know the min and max values
    of the colorbar you can access the matplotlib values with:<br>
    <br>
    temp_plot = slc.plots['temperature']<br>
    print '(vmin, vmax) =', (temp_plot.cb.norm.vmin,
    temp_plot.cb.norm.vmax)<br>
    <br>
    Cheers,<br>
    Aaron<div><div class="h5"><br>
    <br>
    <br>
    <div>On 11/18/14, 3:01 PM, Nathan Goldbaum
      wrote:<br>
    </div>
    <blockquote type="cite">Hi Desika<br>
      <br>
      By default, slices of the temperature field are log-scaled.  It
      looks like there is less than one order of magnitude in
      temperature variation, so no colorbar tick labels are showing up.<br>
      <div><br>
      </div>
      <div>You will likely have better results if you switch to linear
        colorbar scaling:</div>
      <div><br>
      </div>
      <div>slc.set_log('temperature', False)</div>
      <div><br>
      </div>
      <div>If you switch to the latest dev version (what will be the
        upcoming yt 3.1 release) you should have minor tick marks on
        your plot.</div>
      <div><br>
      </div>
      <div>Here's an example I just whipped up:</div>
      <div><br>
      </div>
      <div><a href="http://nbviewer.ipython.org/gist/ngoldbaum/f3424a7307baeb050c61" target="_blank">http://nbviewer.ipython.org/gist/ngoldbaum/f3424a7307baeb050c61</a><br>
      </div>
      <div><br>
      </div>
      <div>HTH,</div>
      <div><br>
      </div>
      <div>Nathan</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <br>
      <div class="gmail_quote">On Tue Nov 18 2014 at 12:42:37 PM Desika
        Narayanan <<a href="mailto:dnarayan@haverford.edu" target="_blank">dnarayan@haverford.edu</a>>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div dir="ltr">Hi All,
            <div><br>
            </div>
            <div>I have a slice plot that I make with the simple:</div>
            <div><br>
            </div>
            <div>
              <div>slc = SlicePlot(pf,'z',('gas','temperature'))</div>
              <div>slc.zoom(5)</div>
              <div>slc.save('junk2.png')</div>
            </div>
            <div><br>
            </div>
            <div>and produces this (it's super ugly but not the point :)
              ): <a href="http://i.imgur.com/j9H4imp.png" target="_blank">http://i.imgur.com/j9H4imp.png</a></div>
            <div><br>
            </div>
            <div>I can't figure out how to get the colorbar to reveal
              the numbers that the colors correspond to.  Is there an
              obvious solution?</div>
            <div><br>
            </div>
            <div>thanks</div>
            <div>-d</div>
          </div>
          _______________________________________________<br>
          yt-users mailing list<br>
          <a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
          <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
yt-users mailing list
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>