Hi Folks,<br><br>I wanted to bring them problem to your attention as well as show you an extremely hacky attempt at solving it. The add_profile_sphere and add_phase_sphere methods of PlotCollectionInteractive appear to have a bug in them. When I do:<br>

<br>
<div style="margin-left: 40px;">In [3]: p = pc.add_phase_sphere(0.015, 'pc', ["Density", "Temperature", "CellMassMsun"], weight = None)<br>
</div>
<br>
I get the following traceback:<br>
<br>
<div style="margin-left: 40px;">TypeError                                 Traceback (most recent call last)<br>
</div>
<br>
<div style="margin-left: 40px;">/indirect/o/atmyers/yt/src/yt-trunk-svn/scripts/iyt in <module>()<br>
----> 1 <br>
      2 <br>
      3 <br>
      4 <br>
      5 <br>
  <br>
/indirect/o/atmyers/yt/src/yt-trunk-svn/yt/raven/plot_collection.py in pylabify(self, *args, **kwargs)<br>
   1440             kwargs['axes'] = self.pylab.gca()<br>
   1441             kwargs['figure'] = self.pylab.gcf()<br>
-> 1442         retval = func(self, *args, **kwargs)<br>
   1443         retval._redraw_image()<br>
   1444         retval._fig_num = new_fig.number<br>
  <br>
/indirect/o/atmyers/yt/src/yt-trunk-svn/yt/raven/plot_collection.py in 
add_phase_sphere(self, radius, unit, fields, center, cmap, weight, 
accumulation, x_bins, x_log, x_bounds, y_bins, y_log, y_bounds, 
lazy_reader, id, axes, figure, fractional)<br>
   1128                              x_bins, x_log, x_bounds,<br>
   1129                              y_bins, y_log, y_bounds,<br>
-> 1130                              lazy_reader, id, axes, figure, fractional)<br>
   1131         p["Width"] = radius<br>
   1132         p["Unit"] = unit<br>
  <br>
/indirect/o/atmyers/yt/src/yt-trunk-svn/yt/raven/plot_collection.py in pylabify(self, *args, **kwargs)<br>
   1440             kwargs['axes'] = self.pylab.gca()<br>
   1441             kwargs['figure'] = self.pylab.gcf()<br>
-> 1442         retval = func(self, *args, **kwargs)<br>
   1443         retval._redraw_image()<br>
   1444         retval._fig_num = new_fig.number<br>
  <br>
TypeError: add_phase_object() got multiple values for keyword argument 'axes'<br>
</div>
<br>
The same thing happens when I use pc.add_profile_sphere, but only with 
PlotCollectionInteractive. Using the same methods with PlotCollection 
works fine. The problem seems to be that the wrapper that 
"Interactifies" the PlotCollection methods assumes that you will not 
call them with "axes" or "figure" in the positional arguments. However, 
as currently coded, the add_phase_sphere and add_profile_sphere methods 
both call add_phase_object or add_profile_object, and when they do so 
they pass an axes and figure in the positional arguments. <br>
<br>
Probably the best way to fix this is to re-write the wrapper function to
 not assume that you don't have an axes or figure in *args, but in the 
meantime I've got mine to work just by changing add_profile_sphere and 
add_phase_sphere like so (docstring snipped)<br><br>    def add_phase_sphere(self, radius, unit, fields, center = None, cmap=None,<br>                         weight="CellMassMsun", accumulation=False,<br>                         x_bins=64, x_log=True, x_bounds=None,<br>
                         y_bins=64, y_log=True, y_bounds=None,<br>                         lazy_reader=True, id=None,<br>                         axes = None, figure = None,<br>                         fractional=False):<br>
<br>        if center is None: center = self.c<br>        r = radius/<a href="http://self.pf">self.pf</a>[unit]<br>        data_source = self.pf.hierarchy.sphere(center, r)<br>        p = self.add_phase_object(data_source, fields, cmap,<br>
                             weight, accumulation,<br>                             x_bins, x_log, x_bounds,<br>                             y_bins, y_log, y_bounds,<br>                             lazy_reader, id, axes = axes, figure = figure, fractional = fractional)<br>
        p["Width"] = radius<br>        p["Unit"] = unit<br>        p["Axis"] = None<br>        return p<br><br>So now the call to add_phase_object takes keyword arguments instead of positional ones for axes and figure. I made the same change to add_profile_sphere, and they work for me in interactive mode now. <br>
<br>Thanks,<br>Andrew M <br>