<div dir="ltr">Hi Jonah,<div><br></div><div>So it looks like the example in our docs isn't quite sufficiently complicated to trigger the corner case you're running into. If you make the last part of your script look like this, it works:</div><div><br></div><div><div>plot = p.plots[varname]</div><div>cbar = plot.cb</div><div>p._setup_plots()</div><div>cbar.set_ticks([])</div><div>cbar.set_ticklabels([])</div></div><div><br></div><div>I've gone ahead and issued a pull request to add a call to _setup_plots in the example in the docs to avoid confusing anyone else who is trying to do what you're doing.</div><div><br></div><div><a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2065/add-a-call-to-_setup_plots-in-the-custom/diff">https://bitbucket.org/yt_analysis/yt/pull-requests/2065/add-a-call-to-_setup_plots-in-the-custom/diff</a><br></div><div><br></div><div>-Nathan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 21, 2016 at 6:40 PM, Jonah Miller <span dir="ltr"><<a href="mailto:jonah.maxwell.miller@gmail.com" target="_blank">jonah.maxwell.miller@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone,<br>
<br>
I am trying to create custom colorbar ticks using yt 3.2.3. I am roughly following this guide:<br>
<a href="http://yt-project.org/doc/cookbook/custom_colorbar_tickmarks.html" rel="noreferrer" target="_blank">http://yt-project.org/doc/cookbook/custom_colorbar_tickmarks.html</a><br>
<br>
However, this approach doesn't seem to work. I attach an example script using random input data. Is this a bug?<br>
<br>
Thanks for your help!<br>
<br>
Best,<br>
Jonah<br>
<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" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>