<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">Hi, Dominik--<div><br></div><div>What was the yt command you used to make the streamlines and generate the error you sent?  I used the following and it was successful:</div><div>>>> ds = yt.load('DD0004/data0004')</div><div>>>> proj = yt.ProjectionPlot(ds,2,'density')</div><div>>>> proj.annotate_streamlines('Bx','By')</div><div><br></div><div>and it made this image: </div><div><a href="http://imgur.com/eZQmqTB">http://imgur.com/eZQmqTB</a><br></div><div>Can you try the above and let me know if it works?</div><div><br></div><div>d.</div><div><br></div>







</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 28, 2015 at 2:58 AM, Dominik Derigs <span dir="ltr"><<a href="mailto:derigs@ph1.uni-koeln.de" target="_blank">derigs@ph1.uni-koeln.de</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 together,<div><br></div><div>I want to use yt for plotting magnetic field lines in FLASH simulations from 2D simulations and slices from 3D simulations.</div><div>An example of what it could look like can be seen here:</div><div><a href="http://aprg.mae.ufl.edu/wp-content/uploads/2014/07/tang_51.png" target="_blank">http://aprg.mae.ufl.edu/wp-content/uploads/2014/07/tang_51.png</a></div><div><br></div><div>I tried to use yt's streamline function, but this does not work for me:</div><div><a href="http://yt-project.org/doc/visualizing/streamlines.html" target="_blank">http://yt-project.org/doc/visualizing/streamlines.html</a></div><div><br></div><div>The error shown is:</div><div><div>ValueError: operands could not be broadcast together with shapes (9,9,2) (9,9,95) (9,9,2)</div></div><div><br></div><div>The used FLASH file is attached.</div><div><br></div><div>Thanks a lot</div><div><br></div><div>Dominik<br clear="all"><div><br></div>-- <br><div><div dir="ltr">Dominik Derigs<br>I. Physikalisches Institut<br>Universität zu Köln<br>Zülpicher Straße 77<br>50937 Köln<br>GERMANY<br><br>Tel. (+49|0) 221 470-8352<br>Fax. (+49|0) 221 470-5162<br><br>Diese Email ist vertraulich und nur für den angegebenen Empfänger bestimmt. Zugang, Freigabe, die Kopie, die Verteilung oder Weiterleitung durch jemand anderen außer dem Empfänger selbst ist verboten und kann eine kriminelle Handlung sein. Bitte löschen Sie die Email, wenn Sie sie durch einen Fehler erhalten haben und informieren Sie den Absender.<br><br>This email and any files transmitted with it may contain confidential and/or privileged material and is intended only for the person or entity to which it is addressed. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error, please notify the sender immediately and delete this material from all known records.</div></div>
</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" 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">-- Sent from a computer.<br></div></div>
</div>