[yt-users] ranges

Elizabeth Tasker taskere at mcmaster.ca
Fri Mar 25 06:16:57 PDT 2011


Hi Matt,

Sorry, but could you copy and paste your call for that? I did try:
 
p = pc.add_profile_sphere(50.0, "pc", ["Radius", "Density"], x_log = 0, 
set_ylim = (1e-25, 1e-20))

But it didn't like it:

TypeError: add_profile_sphere() got an unexpected keyword argument 
'set_ylim'

Elizabeth

Matthew Turk wrote:
> Hi Elizabeth,
>
> The method "set_ylim" on either the PlotCollection or the plot object
> itself works for me (I just checked.)
>
> This kind of thing should be part of the recipes, I agree.  I'll try
> to add it this weekend ... I think it would also probably be a good
> idea to solicit feedback from people about how to better structure the
> recipe book, as it's getting a bit lengthy.  I'm trying to figure out
> how to best do this, while still avoiding the unpleasantness that is
> the current search mechanism in the docs.  (I know the search is a
> problem; I'm trying to figure out how to suppress all the useless API
> results.)  Does anyone have any ideas?
>
> The URLs were an oversight when we moved to BitBucket a few weeks ago.
>  I've fixed them in the current doc build, and future builds will also
> be fixed.
>
> Best,
>
> Matt
>
> On Thu, Mar 24, 2011 at 7:12 PM, Elizabeth Tasker <taskere at mcmaster.ca> wrote:
>   
>> Hi,
>>
>> How do I set a y-range on add_profile_sphere?
>>
>> As a suggestion, perhaps we could add this to one of the examples in the
>> cookbook? Also, in the cookbook, these links no longer work:
>>
>> "The latest version of this recipe can be downloaded here:
>> http://hg.enzotools.org/cookbook/raw-file/tip/recipes/simple_slice.py ."
>>
>> 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
>   




More information about the yt-users mailing list