<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Sushil,<div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class="">plt.streamplot(X[::factor, ::factor], Y[::factor, ::factor], U[::factor, ::factor], V[::factor, ::factor],norm='True’)</div></div></blockquote><br class=""></div><div class="">For stream plot, you can let factor = 1 or even delete [::factor, ::factor], since we want to construct streamlines for based on all data points. For quiver plot, we use this to draw quivers every “factor” number of data points only.</div><div class=""><br class=""></div><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Best wishes,</div><div class="">--</div><div class="">Suoqing JI</div><div class="">Ph.D Candidate</div><div class="">Department of Physics</div><div class="">University of California, Santa Barbara</div><div class=""><a href="http://web.physics.ucsb.edu/~suoqing" class="">http://web.physics.ucsb.edu/~suoqing</a></div></div></div></div></div></div></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On May 9, 2016, at 5:39 PM, Sushilkumar <<a href="mailto:sushil.sush19us@gmail.com" class="">sushil.sush19us@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class="">Dear Suoqing Ji:<br class=""><br class=""></div>Thank you. Can I use the same script for my 2d streamline plots? <br class=""><br class="">I
used plt.streamplot(X[::factor, ::factor], Y[::factor, ::factor],
U[::factor, ::factor], V[::factor, ::factor],norm='True') but the issue
still persist with normalization (script yt_frb_offaxis.py and plot
L(1,0,0) N(0,1,1).png).<br class=""></div><div class=""><br class=""></div><div class="">Without the off axis slice the streamline plot looks proper (UniformGridData_Slice_y_field_x_t000.png)<br class=""></div><div class=""><br class=""></div>Thanks in advance<br class=""><br class=""><a href="https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc" target="_blank" class="">https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc</a><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, May 9, 2016 at 7:38 PM, Sushilkumar <span dir="ltr" class=""><<a href="mailto:sushil.sush19us@gmail.com" target="_blank" class="">sushil.sush19us@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class=""><div class="">Dear Suoqing Ji:<br class=""><br class=""></div>Thank you. Can I use the same script for my 2d streamline plots? <br class=""><br class="">I used plt.streamplot(X[::factor, ::factor], Y[::factor, ::factor], U[::factor, ::factor], V[::factor, ::factor],norm='True') but the issue still persist with normalization (script yt_frb_offaxis.py and plot L(1,0,0) N(0,1,1).png).<br class=""></div><div class=""><br class=""></div><div class="">Without the off axis slice the streamline plot looks proper (UniformGridData_Slice_y_field_x_t000.png)<br class=""></div><div class=""><br class=""></div>Thanks in advance<br class=""><div class=""><div class="gmail_extra"><br class=""><a href="https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc" target="_blank" class="">https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc</a><br class=""><div class="gmail_quote"><br class=""><br class=""><br class=""><br class="">On Mon, May 9, 2016 at 12:59 PM, <span dir="ltr" class=""><<a href="mailto:yt-users-request@lists.spacepope.org" target="_blank" class="">yt-users-request@lists.spacepope.org</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send yt-users mailing list submissions to<br class="">
<a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a><br class="">
<br class="">
To subscribe or unsubscribe via the World Wide Web, visit<br class="">
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank" class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br class="">
or, via email, send a message with subject or body 'help' to<br class="">
<a href="mailto:yt-users-request@lists.spacepope.org" target="_blank" class="">yt-users-request@lists.spacepope.org</a><br class="">
<br class="">
You can reach the person managing the list at<br class="">
<a href="mailto:yt-users-owner@lists.spacepope.org" target="_blank" class="">yt-users-owner@lists.spacepope.org</a><br class="">
<br class="">
When replying, please edit your Subject line so it is more specific<br class="">
than "Re: Contents of yt-users digest..."<br class="">
<br class="">
<br class="">
Today's Topics:<br class="">
<br class="">
1. Re: Camera/Off Axis Options (Suoqing Ji)<br class="">
<br class="">
<br class="">
----------------------------------------------------------------------<br class="">
<br class="">
Message: 1<br class="">
Date: Mon, 9 May 2016 10:59:38 -0700<br class="">
From: Suoqing Ji <<a href="mailto:suoqing@physics.ucsb.edu" target="_blank" class="">suoqing@physics.ucsb.edu</a>><br class="">
To: Discussion of the yt analysis package<br class="">
<<a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a>><br class="">
Subject: Re: [yt-users] Camera/Off Axis Options<br class="">
Message-ID: <<a href="mailto:4CE58756-CEBD-42D3-B2D7-8C91D6E36B28@physics.ucsb.edu" target="_blank" class="">4CE58756-CEBD-42D3-B2D7-8C91D6E36B28@physics.ucsb.edu</a>><br class="">
Content-Type: text/plain; charset="utf-8"<br class="">
<br class="">
Hi Sushil,<br class="">
<br class="">
I think this is normal ? the empty cells suggest the area plotted is out of your simulation domain. You could zoom in to avoid the empty cell being plotted.<br class="">
<br class="">
Best wishes,<br class="">
--<br class="">
Suoqing JI<br class="">
Ph.D Candidate<br class="">
Department of Physics<br class="">
University of California, Santa Barbara<br class="">
<a href="http://web.physics.ucsb.edu/~suoqing" rel="noreferrer" target="_blank" class="">http://web.physics.ucsb.edu/~suoqing</a><br class="">
<br class="">
> On May 9, 2016, at 9:23 AM, Sushilkumar <<a href="mailto:sushil.sush19us@gmail.com" target="_blank" class="">sushil.sush19us@gmail.com</a>> wrote:<br class="">
><br class="">
> Dear Suoqing Ji:<br class="">
><br class="">
> I was able to include the off axis using frb options (script yt_frb_offaxis.py on drive link)<br class="">
><br class="">
> But it gives me a plot with its edges chopped. For example L(1,0,0) N(0,1,1).png and L(1,0,1) N(0,1,1).png have empty cells on the edges. I should not have empty cells as all of the cells are filled like L(1,0,0) N(0,0,1).png. Since only the viewing angle is changed it should still fill all the cells.<br class="">
><br class="">
> I tried it for different angles as well but there are always some empty cells present for every off axis slices.<br class="">
><br class="">
> Can you suggest wherein these edges are not empty and have quiver vectors?<br class="">
><br class="">
> Thanks in advance.<br class="">
><br class="">
><br class="">
> <a href="https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc" rel="noreferrer" target="_blank" class="">https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc</a> <<a href="https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc" rel="noreferrer" target="_blank" class="">https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc</a>><br class=""></blockquote></div></div></div></div></blockquote></div></div></div></div></blockquote></div><br class=""></body></html>