FWIW, you should still be able to use to_frb() and imshow() in the latest versions of yt.

For the specific case of ProjectionPlot, something like this should work:

http://nbviewer.ipython.org/gist/anonymous/bce4d1b5f77f52d5206e

On Sat, Aug 29, 2015 at 5:23 PM, Guido granda muñoz <guidogranda@gmail.com> wrote:
Hello,

I'm wondering how can I get the color bar limits of a projection plot in the new yt version, I managed to do it in the old 2.5 version in this way:

**********************************************************************
  fn        =data[i]
  title     =titles[i]
  pro       =fn.h.proj(axis,field,center=fn.domain_center)
  proj      =fn.h.proj(0,field,weight_field=field,center=fn.domain_center)
  pro_frb   =pro.to_frb((25./h, "Mpc"), 2000)
  axs1[i]   =plt.subplot(2,2,i+1)
  Image=axs1[i].imshow(pro_frb[field],origin='lower',norm=LogNorm(),extent=(-12.5/h,12.5/h,-12.5/h,12.5/h))
  vmin_0,vmax_0 = Image.get_clim()
***********************************************************************

I tried to find out something similar with the new yt.ProjectionPlot( ) without success, Could you please help me?

Kind Regards,

 
--
Guido

_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org