Thanks for all your help over the last couple of days. One more question:
- Can I plot particles on a volume rendered image?
I have stars and I want to show where they are!
Elizabeth Harper-Clark MA MSci
PhD Candidate, Canadian Institute for Theoretical Astrophysics, UofT
Sciences and Engineering Coordinator, Teaching Assistants' Training Program,
Astronomy office phone: +1-416-978-5759
Dear yt users,
I have a common envelope simulation where two stars orbit each other. The
cores of the stars are approximated by point-masses.
I would like to move my coordinate system on the core of one of them with
the x axis aligned with the semi-major axis of the orbit, so as to be able
to analyse the data in a co-rotating coordinate system.
Is there any pre-built function in yt that allows moving the coordinates
system to a specific point of the box and rotate them? Or I have to do it
is there any option when performing a density plot with
OffAxisProjectionPlot to specify whether the axes in the resulting image
are labelled "x/y (pc)" or "image x/y (pc)"? I would like to output
images with the latter formatting enabled.
To my understanding periodicity can be set to True for strictly pure periodic conditions. My question is if anyone has found any easy work around within yt for dealing with shearing periodic boundary conditions? I have data sets from a simulation that used the shearing box approximation and would like my yt data objects to be “aware” of shearing periodic conditions in the x direction and strictly periodic in the y direction.
Has anyone find a good solution for this situation?
I am using yt slices and projections with scale annotation. I have my plots in comoving units ("Mpccm/h") but whenever I want to use the same units for annotation:
slc.annotate_scale(corner='lower_right', coeff=10, units='Mpccm/h'),
yt does not recognize these units. Am I missing something or only the physical scale annotation is possible ?
Hello yt friends!
yt 3.6.1 is now out!
It includes one backport: matplotlib 3.3.x support. See PR 2754
<https://github.com/yt-project/yt/pull/2754> and the initial bug report at
2752 <https://github.com/yt-project/yt/issues/2752> .
For release notes, see
Binaries for yt 3.6.1 are available via pip and conda. If you installed via
the install script or use conda to manage your python installation, you can
update yt via:
$ conda update -c conda-forge yt
And via pip if you manage your python installation with pip:
$ pip install -U yt
As always, if you have any questions, concerns, or run into any trouble
updating please don’t hesitate to send a message to the mailing list or
stop by our Slack workspace.
Thanks for being in the community!
- the yt development team
Calling any and all yt-users!
I am pleased to send out the 2nd announcement for *RHytHM:* *R*esearc*H*
using *yt* *H*ighlights *M*eeting! *It is taking place Dec 9-11 for a few
hours each day, and if you sign up early enough (Nov 16) we will try to
account for your time zone when settling on the exact hours!*
The goal of the meeting is for yt users to share how yt helps them with
their research. Sharing how yt helps *your *workflow may inspire the rest
of us to use yt in a way we had never even considered! We are so excited
to see what everyone is up to, and to make life easy, when you sign up for
a talk, *you can choose* if it is a longer, more detailed talk (25+5), a
shorter talk (15+5), or a lightning-style quick look at something for which
you use yt (5 mins).
This is meant to be a fun, informal meeting, so sign up to talk about *any*
aspect of yt *you* use!
As a yt user, let me share some talk ideas I hope *YOU* sign up to give:
*--*Share why phaseplots are the best plots *(I could look at
a whole conference, honestly)*
--Share a new colormap that beats kamae *(a low bar, possibly? ...or
*--*Show how phaseplots let you compare simulations to observations! *(to
figure out if the simulation in which we live is flawed)*
--Show how slices are way better than projections for your work *(I'll
believe it when I see it)*
--Explain a neat way you select data *(is cut_region your friend, too?)*
--Walk me through your yt extension! *(so many cool things use
<https://yt-project.org/extensions.html>, is yours on the list?)*
*-*-Show how phaseplots can sometimes be basically a projection, but
BETTER. *(phaseplots are so useful, amiright?)*
--Two words: volume. rendering. (*more words: is it scientifically
helpful or just gorgeous?)*
--A plot you can't quite make using yt that you feel like *should just
work*! *(lines on phaseplots, anyone?)*
*--*Surprise me with a phaseplot I haven't thought of! *(other things than
phaseplots are acceptable)*
*Please take a look and register (by Nov 16) if interested! Share with
your networks! *https://indico.flatironinstitute.org/event/722/
We look forward to seeing many of you (on zoom) in December!
Dr. Stephanie Tonnesen
Associate Research Scientist
CCA, Flatiron Institute
New York, NY
I am testing a script on both windows and linux, but the latest version of
yt seems to have a conflict with matplotlib:
MatplotlibDeprecationWarning: The global colormaps dictionary is no longer
considered public API.
Traceback (most recent call last):
File "yt_plots.py", line 3, in <module>
line 63, in <module>
from yt.fields.api import \
line 19, in <module>
from . import angular_momentum
line 26, in <module>
from .vector_operations import \
line 32, in <module>
from yt.geometry.geometry_handler import \
line 29, in <module>
from yt.utilities.parallel_tools.parallel_analysis_interface import \
line 30, in <module>
from yt.data_objects.image_array import ImageArray
line 18, in <module>
from yt.visualization.image_writer import write_bitmap, write_image
line 29, in <module>
import yt.utilities.png_writer as pw
line 13, in <module>
import matplotlib._png as _png
ModuleNotFoundError: No module named 'matplotlib._png'
It tries to import a package that doesn't exist. Any idea how this mistake
came about ?