[yt-users] scale on colourbar?

Samuel W Skillman Samuel.Skillman at Colorado.EDU
Wed May 2 07:47:49 PDT 2012


Hi Elizabeth,

You may want to try the keyword minmaxtick, as in

pc.set_zlim(0.0,30.0,minmaxtick=True).

This should put ticks at the top and bottom.  I'm not sure why they aren't
showing up, but maybe this will force it along.  You may also try setting
nticks=N.

Sam

On Wed, May 2, 2012 at 8:39 AM, j s oishi <jsoishi at gmail.com> wrote:

> Looks like you have less than one order magnitude on a log scale.
> Matplotlib often doesn't tick in this situation. I believe you can set an
> option to label the minor ticks, but I don't know how off the top of my
> head.
>
> J
> On May 2, 2012 3:32 AM, "Elizabeth Tasker" <
> tasker at astro1.sci.hokudai.ac.jp> wrote:
>
>> Hi,
>>
>> I'm creating a slice image but it's refusing to tick mark my colour
>> bar properly:
>>
>> http://i.imgur.com/YQBWJ.png
>>
>> pc = PlotCollection(pf, center=position)
>> p = pc.add_slice("NegEscapeVelocity", 2,
>> field_parameters={"disk_vector":disk_vector,
>> "disk_center":disk_center, "disk_radius":profile["DiskRadius"],
>> "disk_potential":profile["PotentialField"]})
>> p.set_log_field(False)
>> p.set_zlim(0.0, 30.0)
>> p.set_width(8, 'kpc')
>>
>>
>> Is there something simple I've done wrong? I tried rearranging the
>> last 3 lines, but to no avail!
>>
>> Elizabeth
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>


-- 
Samuel W. Skillman
DOE Computational Science Graduate Fellow
Center for Astrophysics and Space Astronomy
University of Colorado at Boulder
samuel.skillman[at]colorado.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20120502/610b9c19/attachment.htm>


More information about the yt-users mailing list