<div dir="ltr">Thanks!</div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-01 17:54 GMT-04:00 Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Wed, Jul 1, 2015 at 2:20 PM, Chen Jingjing <span dir="ltr"><<a href="mailto:chenjj235@gmail.com" target="_blank">chenjj235@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi yt users,<div>I am trying to make multiple off-axis projection plots in the same figure, and I follow the example of <a href="http://yt-project.org/doc/cookbook/complex_plots.html#multi-plot-slice-and-projections" target="_blank">http://yt-project.org/doc/cookbook/complex_plots.html#multi-plot-slice-and-projections</a></div><div><br></div><div>The example has these two lines:</div><div>slc = yt.SlicePlots(...)</div><div>slc_frb = slc.data_source.to_frb(...)</div><div><br></div><div>So I did:</div><div>proj = yt.OffAxisProjectionPlot(...)</div><div>proj_frb = proj.data_source.to_frb(...)</div><div><br></div><div>But I got this error:</div><div>







<p><span>AttributeError: 'OffAxisProjectionDummyDataSource' object has no attribute 'to_frb'</span></p></div></div></blockquote><div><br></div></span><div> Off-axis projections behave a bit different than axis-aligned projections, and you're running into some of the internal API differences this causes.</div><div><br></div><div>In any case, this will work if you do instead:</div><div><br></div><div>proj_frb = proj.frb</div><div><br></div><div>We should probably update that example to not use to_frb at all, since there's no reason to construct a new FixedResolutionBuffer object if we can use the one associated with the plot already.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr"><div><p><span><br></span></p><p><span>Can anyone tell me why and how to fix it?</span></p><p><span>Thanks,<br>Jingjing</span></p></div><span><font color="#888888"><div><div><br></div>-- <br><div><div dir="ltr"><pre>Jingjing Chen [ <a href="mailto:chenjj235@gmail.com" target="_blank">chenjj235@gmail.com</a> ]
Department of Astronomy
Columbia University
550 West 120th Street
New York, New York 10027<br>Cell Phone: <a href="tel:%2B1%28347%295746709" value="+13475746709" target="_blank">+1(347)5746709</a><br></pre></div></div>
</div></font></span></div>
<br></span>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div></div>
<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" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><pre>Jingjing Chen [ <a href="mailto:chenjj235@gmail.com" target="_blank">chenjj235@gmail.com</a> ]
Department of Astronomy
Columbia University
550 West 120th Street
New York, New York 10027<br>Cell Phone: +1(347)5746709<br></pre></div></div>
</div>