<div dir="ltr">Hi--<div><br></div><div style>To update, what Nathan suggested worked fine.  It seems that my old references to PlotCollection were the culprit.</div><div style><br></div><div style>In answer to Matt's questions:</div>

<div style><div>Left = na.array([0.0]*3)</div><div>Right = na.array([0.25]*3)</div><div>Center = 0.5*(Left+Right)</div><div><br></div><div><div>>>> reg.quantities["TotalQuantity"]("CellVolumeCode")</div>

<div>[0.015625]</div><div>>>> reg.quantities["Extrema"]("Density")</div><div>[(0.013392246073068692, 288.83114127717198)]</div></div><div><br></div><div style>So the set itself is ok, and as I understand it PlotCollections are no longer the best way to do what I want, so I'll expunge them from my scripts in favor of plot windows.</div>

<div style><br></div><div style>Thanks a ton!</div><div style>d.</div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 8, 2013 at 11:41 PM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Dave,<br>
<div class="im"><br>
On Mon, Apr 8, 2013 at 6:07 PM, david collins <<a href="mailto:dcollins4096@gmail.com">dcollins4096@gmail.com</a>> wrote:<br>
> Hi, Everybody!<br>
><br>
> I have a probably dumb question.  I keep getting the following error when<br>
> projecting.  I get this from a variety of methods, but what I'm trying to do<br>
> is project a region.  What I used to do was something like this, but it's no<br>
> longer working (with or without the source.)<br>
><br>
> reg = pf.h.region(center,left,right)<br>
> pf = load(thing)<br>
> pc = PlotCollection(pf)<br>
> proj =  pf.h.proj(0,'Density',center=Center) #,source=reg)<br>
> prooj = pc.add_projection('Density','x') #,data_source=reg)<br>
<br>
</div>So we're on the same page, would you mind showing how you create<br>
center, left, right, and what their values are?  And would it also be<br>
possible to have you run:<br>
<br>
print reg.quantities["TotalQuantity"]("CellVolumeCode")<br>
print reg.quantities["Extrema"]("Density")<br>
<br>
Thanks,<br>
<br>
Matt<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> So my question is: with the recent developments to yt, what's the best<br>
> mechanism to do this?<br>
> I'm on a self install that was done fresh pretty recently, the hash is<br>
> 34b95297062b<br>
><br>
> Thanks,<br>
> d.<br>
><br>
><br>
>     prooj = pc.add_projection('Density','x',data_source=reg)<br>
>   File<br>
> "/nics/b/home/collins/local_2013_03_12/src/yt-hg/yt/visualization/plot_collection.py",<br>
> line 786, in add_projection<br>
>     size=fig_size, periodic=periodic))<br>
>   File<br>
> "/nics/b/home/collins/local_2013_03_12/src/yt-hg/yt/visualization/plot_types.py",<br>
> line 326, in __init__<br>
>     self.__init_temp_image(use_colorbar)<br>
>   File<br>
> "/nics/b/home/collins/local_2013_03_12/src/yt-hg/yt/visualization/plot_types.py",<br>
> line 358, in __init_temp_image<br>
>     shrink=0.95)<br>
>   File<br>
> "/nics/b/home/collins/local_2013_03_12/lib/python2.7/site-packages/matplotlib/figure.py",<br>
> line 1387, in colorbar<br>
>     cb = cbar.colorbar_factory(cax, mappable, **kw)<br>
>   File<br>
> "/nics/b/home/collins/local_2013_03_12/lib/python2.7/site-packages/matplotlib/colorbar.py",<br>
> line 1173, in colorbar_factory<br>
>     cb = Colorbar(cax, mappable, **kwargs)<br>
>   File<br>
> "/nics/b/home/collins/local_2013_03_12/lib/python2.7/site-packages/matplotlib/colorbar.py",<br>
> line 854, in __init__<br>
>     ColorbarBase.__init__(self, ax, **kw)<br>
>   File<br>
> "/nics/b/home/collins/local_2013_03_12/lib/python2.7/site-packages/matplotlib/colorbar.py",<br>
> line 298, in __init__<br>
>     self.draw_all()<br>
>   File<br>
> "/nics/b/home/collins/local_2013_03_12/lib/python2.7/site-packages/matplotlib/colorbar.py",<br>
> line 323, in draw_all<br>
>     self._config_axes(X, Y)<br>
>   File<br>
> "/nics/b/home/collins/local_2013_03_12/lib/python2.7/site-packages/matplotlib/colorbar.py",<br>
> line 409, in _config_axes<br>
>     self.update_ticks()<br>
>   File<br>
> "/nics/b/home/collins/local_2013_03_12/lib/python2.7/site-packages/matplotlib/colorbar.py",<br>
> line 345, in update_ticks<br>
>     ticks, ticklabels, offset_string = self._ticker()<br>
>   File<br>
> "/nics/b/home/collins/local_2013_03_12/lib/python2.7/site-packages/matplotlib/colorbar.py",<br>
> line 560, in _ticker<br>
>     ticks = self._locate(b)<br>
>   File<br>
> "/nics/b/home/collins/local_2013_03_12/lib/python2.7/site-packages/matplotlib/colorbar.py",<br>
> line 808, in _locate<br>
>     z = np.take(y, i0) + (xn-np.take(b,i0))*dy/db<br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</div></div></blockquote></div><br></div>