<div dir="ltr">Hi Luigi,<div><br></div><div>You can access the colobar and colorbar axes like so:</div><div><br></div><div>slc = SlicePlot(pf, 'x', 'Density')</div><div>plot = slc.plots['Density']</div>


<div>colorbar = plot.cb</div><div>colorbar_axes = plot.cax</div><div><br></div><div>Take a look at this notebook for an example: <a href="http://nbviewer.ipython.org/url/hub.yt-project.org/notebooks/8bc973e0da2d4697a8e1d5a7a203d19d.ipynb">http://nbviewer.ipython.org/url/hub.yt-project.org/notebooks/8bc973e0da2d4697a8e1d5a7a203d19d.ipynb</a></div>

<div><br></div><div>Let us know if you have any trouble getting this working for your use case.</div><div><br></div><div>-Nathan</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 25, 2013 at 8:22 AM, Luigi Iapichino <span dir="ltr"><<a href="mailto:luigi@uni-heidelberg.de" target="_blank">luigi@uni-heidelberg.de</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<br>
<br>
I am in the process of moving most of my visualisation scripts from<br>
PlotCollection to the PlotWindow interface. One feature that now I am not<br>
able to find is the capability of customising the tick values in the colorbar<br>
of a plot. Inspired by the example script found in<br>
<br>
<a href="http://yt-project.org/docs/2.5/cookbook/simple_plots.html#accessing-and-modifying-plots-directly" target="_blank">http://yt-project.org/docs/2.5/cookbook/simple_plots.html#accessing-and-modifying-plots-directly</a> ,<br>


<br>
I was thinking about interacting with a matplotlib object directly, but I am<br>
not able to find a suitable one. Could you please suggest me a workaround for<br>
this issue?<br>
Thanks in advance,<br>
<br>
  Luigi<br>
<br>
--<br>
<br>
---------------------------------------------------------------<br>
<br>
Luigi Iapichino<br>
Universität Heidelberg, Zentrum für Astronomie<br>
Institut für Theoretische Astrophysik<br>
Philosophenweg 12, D-69120 Heidelberg, Germany<br>
Tel: <a href="tel:%2B49%206221%20548983" value="+496221548983">+49 6221 548983</a>, Fax: <a href="tel:%2B49%206221%20544221" value="+496221544221">+49 6221 544221</a><br>
e-mail: <a href="mailto:luigi@uni-heidelberg.de">luigi@uni-heidelberg.de</a><br>
URL: <a href="http://www.ita.uni-heidelberg.de/~luigi/" target="_blank">http://www.ita.uni-heidelberg.de/~luigi/</a><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>
</blockquote></div><br></div>