[yt-users] Magnetic quiver plots

Nathan Goldbaum nathan12343 at gmail.com
Tue Jan 26 10:34:37 PST 2016


Yes.  It might help for you to look at the implementation:

https://bitbucket.org/yt_analysis/yt/src/cd0a29c8ed02c58096e6e0f3f6c7aaa6b8cf6dc3/yt/visualization/plot_modifications.py?at=yt&fileviewer=file-view-default#plot_modifications.py-282

Basically it just calls the quiver callback and passes in the names of
the magnetic_field_[x,y,z] fields, depending on the orientation.

-Nathan

On Tue, Jan 26, 2016 at 12:00 PM, Sushilkumar <sushil.sush19us at gmail.com> wrote:
> Dear yt:
>
> I am trying to use magnetic quiver plot from the following link
> http://yt-project.org/doc/visualizing/callbacks.html.
>
> As per the example, are we using annotate_magnetic_field() callback without
> passing any arguments in the parenthesis (like velocity_x,velocity_y for
> regular quiver plots)?
>
>
>
>
>
> On Sat, Jan 23, 2016 at 1:09 PM, <yt-users-request at lists.spacepope.org>
> wrote:
>>
>> Send yt-users mailing list submissions to
>>         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
>> or, via email, send a message with subject or body 'help' to
>>         yt-users-request at lists.spacepope.org
>>
>> You can reach the person managing the list at
>>         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: issue with saving a 1d profile as a dataset (Devin Silvia)
>>    2. Re: issue with saving a 1d profile as a dataset (Nathan Goldbaum)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Fri, 22 Jan 2016 19:03:02 +0000
>> From: Devin Silvia <devin.silvia at gmail.com>
>> To: Discussion of the yt analysis package
>>         <yt-users at lists.spacepope.org>
>> Subject: Re: [yt-users] issue with saving a 1d profile as a dataset
>> Message-ID:
>>
>> <CAFP_SCJmPNBhacaC=56yeB_TdJj7tcsEDjEtAiRT8gjeuvBxZw at mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Hi all,
>>
>> I followed up with Britton on this off-list and it ended up being an issue
>> with my outdated version of Numpy.  Updating to Numpy 1.10 fixed the
>> problem.
>>
>> -Devin
>>
>> On Tue, Jan 19, 2016 at 6:03 AM Britton Smith <brittonsmith at gmail.com>
>> wrote:
>>
>> > Hi Devin,
>> >
>> > I'm not able to reproduce this on test data using some other fields, so
>> > I'm guessing there's something strange with the profile.  Can you print
>> > out
>> > prof.x?  If that doesn't show anything, can you upload the image that
>> > this
>> > script makes?
>> >
>> > Britton
>> > On Mon, Jan 18, 2016 at 9:01 PM, Devin Silvia <devin.silvia at gmail.com>
>> > wrote:
>> >
>> >> Hi all,
>> >>
>> >> I'm currently trying to save a 1d profiles that I've generated using
>> >> ProfilePlot, using the "save_as_dataset" function.  My code looks like:
>> >>
>> >> http://paste.yt-project.org/show/6169/
>> >>
>> >> But I get the following error/traceback:
>> >>
>> >> http://paste.yt-project.org/show/6170/
>> >>
>> >> Without knowing more about the internal machinery, I'm not sure what
>> >> the
>> >> fix is for this.
>> >>
>> >> Thanks is advance to anyone who has time to look into this!
>> >>
>> >> Cheers,
>> >> Devin
>> >>
>> >> _______________________________________________
>> >> yt-users mailing list
>> >> yt-users at lists.spacepope.org
>> >> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>> >>
>> >> _______________________________________________
>> > yt-users mailing list
>> > yt-users at lists.spacepope.org
>> > http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>> >
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL:
>> <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160122/e9d512ab/attachment.html>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Fri, 22 Jan 2016 13:13:18 -0600
>> From: Nathan Goldbaum <nathan12343 at gmail.com>
>> To: Discussion of the yt analysis package
>>         <yt-users at lists.spacepope.org>
>> Subject: Re: [yt-users] issue with saving a 1d profile as a dataset
>> Message-ID:
>>
>> <CAJXewOnknL4FqS1TdJQaQh-=w1Wwopkbw24o8fqsqoyPAskZ_Q at mail.gmail.com>
>> Content-Type: text/plain; charset=UTF-8
>>
>> Just out of curiosity - which version were you on? I think we should
>> at least be trying to support 1.8 or newer, although testing is always
>> a concern.
>>
>> On Fri, Jan 22, 2016 at 1:03 PM, Devin Silvia <devin.silvia at gmail.com>
>> wrote:
>> > Hi all,
>> >
>> > I followed up with Britton on this off-list and it ended up being an
>> > issue
>> > with my outdated version of Numpy.  Updating to Numpy 1.10 fixed the
>> > problem.
>> >
>> > -Devin
>> >
>> >
>> > On Tue, Jan 19, 2016 at 6:03 AM Britton Smith <brittonsmith at gmail.com>
>> > wrote:
>> >>
>> >> Hi Devin,
>> >>
>> >> I'm not able to reproduce this on test data using some other fields, so
>> >> I'm guessing there's something strange with the profile.  Can you print
>> >> out
>> >> prof.x?  If that doesn't show anything, can you upload the image that
>> >> this
>> >> script makes?
>> >>
>> >> Britton
>> >> On Mon, Jan 18, 2016 at 9:01 PM, Devin Silvia <devin.silvia at gmail.com>
>> >> wrote:
>> >>>
>> >>> Hi all,
>> >>>
>> >>> I'm currently trying to save a 1d profiles that I've generated using
>> >>> ProfilePlot, using the "save_as_dataset" function.  My code looks
>> >>> like:
>> >>>
>> >>> http://paste.yt-project.org/show/6169/
>> >>>
>> >>> But I get the following error/traceback:
>> >>>
>> >>> http://paste.yt-project.org/show/6170/
>> >>>
>> >>> Without knowing more about the internal machinery, I'm not sure what
>> >>> the
>> >>> fix is for this.
>> >>>
>> >>> Thanks is advance to anyone who has time to look into this!
>> >>>
>> >>> Cheers,
>> >>> Devin
>> >>>
>> >>> _______________________________________________
>> >>> yt-users mailing list
>> >>> yt-users at lists.spacepope.org
>> >>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>> >>>
>> >> _______________________________________________
>> >> yt-users mailing list
>> >> yt-users at lists.spacepope.org
>> >> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>> >
>> >
>> > _______________________________________________
>> > yt-users mailing list
>> > yt-users at lists.spacepope.org
>> > http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>> >
>>
>>
>> ------------------------------
>>
>> Subject: Digest Footer
>>
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>
>>
>> ------------------------------
>>
>> End of yt-users Digest, Vol 95, Issue 35
>> ****************************************
>
>
>
>
> --
> SK2
>
> "Claiming that something can move faster than light is a good
> conversation-stopper in physics. People edge away from you in cocktail
> parties; friends never return phone calls. You just don’t mess with Albert
> Einstein."
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>



More information about the yt-users mailing list