Change background
Dear yt:
What is the best way to change the background of an plot?
I would like to change the blue background in my plot so that the field
lines are more clear.
Link to the image and the script is below
https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc
Thanks in advance
On Thu, Jun 1, 2017 at 1:02 PM,
Send yt-users mailing list submissions to yt-users@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@lists.spacepope.org
You can reach the person managing the list at yt-users-owner@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: Covering GIZMO data to uniform grid (Nathan Goldbaum)
----------------------------------------------------------------------
Message: 1 Date: Wed, 31 May 2017 17:07:57 -0500 From: Nathan Goldbaum
To: Discussion of the yt analysis package Subject: Re: [yt-users] Covering GIZMO data to uniform grid Message-ID: Content-Type: text/plain; charset="utf-8" It looks like I spoke too soon. It turns out that you can't smooth SPH smoothed fields onto a covering grid or an arbitrary grid. I thought this worked but I guess I was mistaken. I've filed an issue with a feature request for this here:
https://github.com/yt-project/yt/issues/1436
In principle I think this would be relatively easy to do. I'm in the middle of working on a significant change in how yt supports SPH particle data, I will make sure that this gets done as part of that.
For now you can use covering grids and arbitrary grids with a locally deposited field, here's an example using the deposited dark matter density:
https://gist.github.com/72803576524833663793e7a10563b6b3
On Wed, May 31, 2017 at 4:39 PM, ???
wrote: Hi Nathan!
Do you mean that I should put deposit fields instead of GIZMO data into covering grid/ arbitrary_grid?
2017-06-01 5:14 GMT+08:00 Nathan Goldbaum
: The covering grid should work with deposit fields.
You could also look at the arbitrary_grid, which is a little bit less restrictive than covering_grid about the resolution and left and right edge.
On Wed, May 31, 2017 at 4:11 PM ???
wrote: Hello yt-commuinty,
I was trying to use yt to analyse GIZMO data. Is there a function which can translate GIZMO gas data,particle0, to uniform grid with neutral hydrogen,velocity,temperature.etc? I know the "deposit " field and covering_grid in yt, but "deposit" isn't uniform and covering_grid is designed for grid-like data..
Thank you! Edward _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@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/20170531/9f042e4b/attachment.html>
------------------------------
Subject: Digest Footer
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
------------------------------
End of yt-users Digest, Vol 112, Issue 1 ****************************************
-- *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.**"*
I think the background color in that plot is coming from a value in your
colormap. It's hard to say for sure because you hid the colorbar. You could
try using a different colormap:
http://yt-project.org/doc/visualizing/colormaps/index.html
In addition, you should be able to control the color of the streamlines by
passing a plot_args dict to annotate_streamlines. Something like:
slc.annotate_streamlines('field_y', 'field_z',factor=16,density=4,
plot_args={'color': 'yellow'})
Hope that helps,
Nathan
On Thu, Jun 1, 2017 at 4:55 PM, Sushilkumar
Dear yt:
What is the best way to change the background of an plot? I would like to change the blue background in my plot so that the field lines are more clear.
Link to the image and the script is below
https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc
Thanks in advance
On Thu, Jun 1, 2017 at 1:02 PM,
wrote: Send yt-users mailing list submissions to yt-users@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@lists.spacepope.org
You can reach the person managing the list at yt-users-owner@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: Covering GIZMO data to uniform grid (Nathan Goldbaum)
----------------------------------------------------------------------
Message: 1 Date: Wed, 31 May 2017 17:07:57 -0500 From: Nathan Goldbaum
To: Discussion of the yt analysis package Subject: Re: [yt-users] Covering GIZMO data to uniform grid Message-ID: Content-Type: text/plain; charset="utf-8" It looks like I spoke too soon. It turns out that you can't smooth SPH smoothed fields onto a covering grid or an arbitrary grid. I thought this worked but I guess I was mistaken. I've filed an issue with a feature request for this here:
https://github.com/yt-project/yt/issues/1436
In principle I think this would be relatively easy to do. I'm in the middle of working on a significant change in how yt supports SPH particle data, I will make sure that this gets done as part of that.
For now you can use covering grids and arbitrary grids with a locally deposited field, here's an example using the deposited dark matter density:
https://gist.github.com/72803576524833663793e7a10563b6b3
On Wed, May 31, 2017 at 4:39 PM, ???
wrote: Hi Nathan!
Do you mean that I should put deposit fields instead of GIZMO data into covering grid/ arbitrary_grid?
2017-06-01 5:14 GMT+08:00 Nathan Goldbaum
: The covering grid should work with deposit fields.
You could also look at the arbitrary_grid, which is a little bit less restrictive than covering_grid about the resolution and left and right edge.
On Wed, May 31, 2017 at 4:11 PM ???
wrote: Hello yt-commuinty,
I was trying to use yt to analyse GIZMO data. Is there a function which can translate GIZMO gas data,particle0, to uniform grid with neutral hydrogen,velocity,temperature.etc? I know the "deposit " field and covering_grid in yt, but "deposit" isn't uniform and covering_grid is designed for grid-like data..
Thank you! Edward _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@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/20170531/9f042e4b/attachment.html>
------------------------------
Subject: Digest Footer
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
------------------------------
End of yt-users Digest, Vol 112, Issue 1 ****************************************
-- *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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (2)
-
Nathan Goldbaum
-
Sushilkumar