[yt-users] zlim, phase plots
David Collins
dcollins at physics.ucsd.edu
Thu Jul 22 14:51:38 PDT 2010
> Can you try calling _redraw_image() on the_plot, and seeing if that will fix it?
That did it.
Additionally, I had to call
the_plot.cmap.set_over( the_plot.cmap(255) )
the_plot.cmap.set_under( the_plot.cmap(0) )
_after_ redraw_image to circumvent the over/under being clipped to white.
Thanks,
d.
>
> -Matt
>
> On Thu, Jul 22, 2010 at 2:07 PM, david collins <antpuncher at gmail.com> wrote:
>> Hi, all--
>>
>> I'm trying to save a phase plot, then re-load and re-plot, and do this
>> into an axes object I've pre- defined. (I want to put several phase
>> plots into a multi-tile frame)
>>
>> I'm presently doing:
>>
>> the_plot = raven.PlotTypes.PhasePlot(phase
>> ,[xfield,yfield,zfield],14,'algae',axes=axes)
>> (where phase is the unpickled phase object)
>>
>> then
>>
>> fig.save_fig(output_name)
>>
>> (where axes is contained in fig) This works just fine. The problem
>> I'm running into is setting the zlim on the phase plot. If I do:
>>
>> the_plot = raven.PlotTypes.PhasePlot(phase
>> ,[xfield,yfield,zfield],14,'algae',axes=axes)
>> the_plot.set_zlim(a,b)
>>
>> the zlim doesn't seem to change the actual zlim I find in output_name.
>> Is that the appropriate place to be setting the zlim for this
>> operation? Or is there a better place?
>>
>> Thanks,
>> d.
>> --
>> Sent from my Stone Tablet and carried by my Pterodactyl.
>> _______________________________________________
>> 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
>
--
Sent from my Stone Tablet and carried by my Pterodactyl.
More information about the yt-users
mailing list