<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body 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<br>
<br>
<br>
<div class="moz-cite-prefix">On 11/18/14, 3:01 PM, Nathan Goldbaum
wrote:<br>
</div>
<blockquote
cite="mid:CAJXewOk4QQY2wFCVson6P+gxReU5c7x0_FSz1LopsDssB5Ng7w@mail.gmail.com"
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 moz-do-not-send="true"
href="http://nbviewer.ipython.org/gist/ngoldbaum/f3424a7307baeb050c61">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 moz-do-not-send="true"
href="mailto:dnarayan@haverford.edu">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 moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a moz-do-not-send="true"
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 class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
yt-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a>
<a class="moz-txt-link-freetext" href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a>
</pre>
</blockquote>
<br>
</body>
</html>