[yt-users] color bar limits

Guido granda muñoz guidogranda at gmail.com
Sat Aug 29 15:23:04 PDT 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20150829/113ba2e4/attachment.htm>


More information about the yt-users mailing list