[yt-svn] commit/yt-doc: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Sun May 26 09:20:01 PDT 2013
2 new commits in yt-doc:
https://bitbucket.org/yt_analysis/yt-doc/commits/e3f5ebb1460c/
Changeset: e3f5ebb1460c
User: brittonsmith
Date: 2013-05-26 16:16:33
Summary: Updating light ray docs.
Affected #: 1 file
diff -r e51925933f472b148476b2e61cc5ff90f01f5713 -r e3f5ebb1460c9d47dd24be2d644cbe1125042001 source/analysis_modules/light_ray_generator.rst
--- a/source/analysis_modules/light_ray_generator.rst
+++ b/source/analysis_modules/light_ray_generator.rst
@@ -93,6 +93,9 @@
* **nearest_halo_fields** (*list*): A list of fields to be calculated for the
halos nearest to every pixel in the ray. Default: None.
+ * **halo_list_file** (*str*): Filename containing a list of halo properties to be used
+ for getting the nearest halos to absorbers. Default: None.
+
* **halo_profiler_parameters** (*dict*): A dictionary of parameters to be
passed to the HaloProfiler to create the appropriate data used to get
properties for the nearest halos. Default: None.
https://bitbucket.org/yt_analysis/yt-doc/commits/3c39d10238db/
Changeset: 3c39d10238db
User: brittonsmith
Date: 2013-05-26 16:16:45
Summary: Merged.
Affected #: 5 files
diff -r e3f5ebb1460c9d47dd24be2d644cbe1125042001 -r 3c39d10238dbb3780516d8263a3a9cc38efad59e source/advanced/parallel_computation.rst
--- a/source/advanced/parallel_computation.rst
+++ b/source/advanced/parallel_computation.rst
@@ -280,7 +280,9 @@
You can also request a fixed number of processors to calculate each
angular momentum vector. For example, this script will calculate each angular
-momentum vector using a workgroup of four processors.
+momentum vector using 4 workgroups, splitting up the pool available processors.
+Note that parallel=1 implies that the analysis will be run using 1 workgroup,
+whereas parallel=True will run with Nprocs workgroups.
.. code-block:: python
diff -r e3f5ebb1460c9d47dd24be2d644cbe1125042001 -r 3c39d10238dbb3780516d8263a3a9cc38efad59e source/cookbook/complex_plots.rst
--- a/source/cookbook/complex_plots.rst
+++ b/source/cookbook/complex_plots.rst
@@ -98,6 +98,16 @@
.. yt_cookbook:: contours_on_slice.py
+Simple Contours in a Slice
+~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Sometimes it is useful to plot just a few contours of a quantity in a
+dataset. This shows how one does this by first making a slice, adding
+contours, and then hiding the colormap plot of the slice to leave the
+plot containing only the contours that one has added.
+
+.. yt_cookbook:: simple_contour_in_slice.py
+
Styling Radial Profile Plots
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff -r e3f5ebb1460c9d47dd24be2d644cbe1125042001 -r 3c39d10238dbb3780516d8263a3a9cc38efad59e source/cookbook/simple_contour_in_slice.py
--- /dev/null
+++ b/source/cookbook/simple_contour_in_slice.py
@@ -0,0 +1,29 @@
+from yt.mods import *
+
+# Load the data file.
+pf = load("Sedov_3d/sedov_hdf5_chk_0002")
+
+# Make a traditional slice plot.
+sp = SlicePlot(pf,"x","dens")
+
+# Overlay the slice plot with thick red contours of density.
+sp.annotate_contour("dens", ncont=3, clim=(1e-2,1e-1), label=True,
+ plot_args={"colors": "red",
+ "linewidths": 2})
+
+# What about some nice temperature contours in blue?
+sp.annotate_contour("temp", ncont=3, clim=(1e-8,1e-6), label=True,
+ plot_args={"colors": "blue",
+ "linewidths": 2})
+
+# This is the plot object.
+po = sp.plots["dens"]
+
+# Turn off the colormap image, leaving just the contours.
+po.axes.images[0].set_visible(False)
+
+# Remove the colorbar and its label.
+po.figure.delaxes(po.figure.axes[1])
+
+# Save it and ask for a close fit to get rid of the space used by the colorbar.
+sp.save(mpl_kwargs={'bbox_inches':'tight'})
diff -r e3f5ebb1460c9d47dd24be2d644cbe1125042001 -r 3c39d10238dbb3780516d8263a3a9cc38efad59e source/visualizing/volume_rendering.rst
--- a/source/visualizing/volume_rendering.rst
+++ b/source/visualizing/volume_rendering.rst
@@ -281,7 +281,7 @@
This produces an image like this:
-.. image:: _images/vr_sample.jpg
+.. image:: _images/allsky.png
:width: 512
However, below we describe a longer, build-it-yourself method. To actually
Repository URL: https://bitbucket.org/yt_analysis/yt-doc/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list