<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 4, 2015 at 11:43 AM, Stella Offner <span dir="ltr"><<a href="mailto:offner@gmail.com" target="_blank">offner@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi,<div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div>Is there a way to do annotate streamlines and use get_multi_plot with yt 3.1? The single-plot example below works for me, but it doesn't work with this example of get_multi_plot (i.e. annotations are not carried over):<br><div><a href="http://yt-project.org/docs/3.1/cookbook/complex_plots.html#multipanel-with-axes-labels" target="_blank">http://yt-project.org/docs/3.1/cookbook/complex_plots.html#multipanel-with-axes-labels</a></div></div></div></div></div></div></div></blockquote><div><br></div><div>Hi Stella,</div><div><br></div><div>With a bit of fiddling, I was able to get this to work in the latest development version of yt, although I think it should work in 3.1 as well, see:</div><div><br></div><div><div><a href="http://paste.yt-project.org/show/5532/">http://paste.yt-project.org/show/5532/</a></div></div><div><br></div><div>This is a bit tricky, since it depends sensitively on details of how matplotlib stores imshow plots and that way we interface with that in the streamline callback.</div><div><br></div><div>It might be worthwhile to add a new cookbook script using this example - we'd be very grateful for any docs improvements you might want to make!</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div><div><div dir="ltr"><div><div><br></div></div><div><br></div><div>Sorry if this was already answered in the mailing list archive somewhere, the user discussion archives is still unsearchable:</div><div><h1 style="color:rgb(0,0,0);font-family:Times">Forbidden</h1><p style="color:rgb(0,0,0);font-family:Times">You don't have permission to access /pipermail/<a href="http://yt-users-spacepope.org/" target="_blank">yt-users-spacepope.org/</a> on this server.<span style="font-family:arial,sans-serif;color:rgb(34,34,34)"> </span></p></div></div></div></div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div><div><div dir="ltr"><div><p style="color:rgb(0,0,0);font-family:Times">Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p></div></div></div></div></div></div></blockquote><div><br></div><div>This has come up a few times before although the lack of mailing list archives might make that hard to discover! It's an issue with our ISP. Matt has been sending them angry e-mails for a while now....</div><div><br></div><div><br></div><div>-Nathan</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">
<div class="gmail_extra">Thanks!</div><span class=""><font color="#888888">Stella</font></span></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Tue, Apr 28, 2015 at 9:05 AM, David Collins <span dir="ltr"><<a href="mailto:dcollins4096@gmail.com" target="_blank">dcollins4096@gmail.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><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" target="_blank">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></span><div class="gmail_extra"><br><div class="gmail_quote"><span class="">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></span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="h5"><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></div></div><span class="">_______________________________________________<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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></span></blockquote></div><span class=""><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">-- Sent from a computer.<br></div></div>
</font></span></span></div><span class="">
<br>_______________________________________________<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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></span></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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div></div>