[yt-users] Camera/Off Axis Options

Suoqing Ji suoqing at physics.ucsb.edu
Tue May 10 00:53:57 PDT 2016


Hi Sushil,

> plt.streamplot(X[::factor, ::factor], Y[::factor, ::factor], U[::factor, ::factor], V[::factor, ::factor],norm='True’)

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.

Best wishes,
--
Suoqing JI
Ph.D Candidate
Department of Physics
University of California, Santa Barbara
http://web.physics.ucsb.edu/~suoqing

> On May 9, 2016, at 5:39 PM, Sushilkumar <sushil.sush19us at gmail.com> wrote:
> 
> Dear Suoqing Ji:
> 
> Thank you. Can I use the same script for my 2d streamline plots? 
> 
> 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).
> 
> Without the off axis slice the streamline plot looks proper (UniformGridData_Slice_y_field_x_t000.png)
> 
> Thanks in advance
> 
> https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc <https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc>
> 
> On Mon, May 9, 2016 at 7:38 PM, Sushilkumar <sushil.sush19us at gmail.com <mailto:sushil.sush19us at gmail.com>> wrote:
> Dear Suoqing Ji:
> 
> Thank you. Can I use the same script for my 2d streamline plots? 
> 
> 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).
> 
> Without the off axis slice the streamline plot looks proper (UniformGridData_Slice_y_field_x_t000.png)
> 
> Thanks in advance
> 
> https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc <https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc>
> 
> 
> 
> 
> On Mon, May 9, 2016 at 12:59 PM, <yt-users-request at lists.spacepope.org <mailto:yt-users-request at lists.spacepope.org>> wrote:
> Send yt-users mailing list submissions to
>         yt-users at lists.spacepope.org <mailto:yt-users at lists.spacepope.org>
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org <http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org>
> or, via email, send a message with subject or body 'help' to
>         yt-users-request at lists.spacepope.org <mailto:yt-users-request at lists.spacepope.org>
> 
> You can reach the person managing the list at
>         yt-users-owner at lists.spacepope.org <mailto:yt-users-owner at lists.spacepope.org>
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of yt-users digest..."
> 
> 
> Today's Topics:
> 
>    1. Re: Camera/Off Axis Options (Suoqing Ji)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Mon, 9 May 2016 10:59:38 -0700
> From: Suoqing Ji <suoqing at physics.ucsb.edu <mailto:suoqing at physics.ucsb.edu>>
> To: Discussion of the yt analysis package
>         <yt-users at lists.spacepope.org <mailto:yt-users at lists.spacepope.org>>
> Subject: Re: [yt-users] Camera/Off Axis Options
> Message-ID: <4CE58756-CEBD-42D3-B2D7-8C91D6E36B28 at physics.ucsb.edu <mailto:4CE58756-CEBD-42D3-B2D7-8C91D6E36B28 at physics.ucsb.edu>>
> Content-Type: text/plain; charset="utf-8"
> 
> Hi Sushil,
> 
> 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.
> 
> Best wishes,
> --
> Suoqing JI
> Ph.D Candidate
> Department of Physics
> University of California, Santa Barbara
> http://web.physics.ucsb.edu/~suoqing <http://web.physics.ucsb.edu/~suoqing>
> 
> > On May 9, 2016, at 9:23 AM, Sushilkumar <sushil.sush19us at gmail.com <mailto:sushil.sush19us at gmail.com>> wrote:
> >
> > Dear Suoqing Ji:
> >
> > I was able to include the off axis using frb options (script yt_frb_offaxis.py on drive link)
> >
> > 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.
> >
> > I tried it for different angles as well but there are always some empty cells present for every off axis slices.
> >
> > Can you suggest wherein these edges are not empty and have quiver vectors?
> >
> > Thanks in advance.
> >
> >
> > https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc <https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc> <https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc <https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc>>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160510/931c0bc7/attachment.htm>


More information about the yt-users mailing list