[yt-svn] commit/yt-doc: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Aug 16 14:44:52 PDT 2013
2 new commits in yt-doc:
https://bitbucket.org/yt_analysis/yt-doc/commits/5a10e0b24a5a/
Changeset: 5a10e0b24a5a
User: chummels
Date: 2013-08-16 23:28:04
Summary: Adding cookbook example for overplotting grids on a projection.
Affected #: 2 files
diff -r 1b85abd12f57dc86ac1056425d8e23e53ed5efb2 -r 5a10e0b24a5a161ecccc0a9cb70067bf3f7be5a7 source/cookbook/complex_plots.rst
--- a/source/cookbook/complex_plots.rst
+++ b/source/cookbook/complex_plots.rst
@@ -82,6 +82,16 @@
.. yt_cookbook:: overplot_particles.py
+Plotting Grid Edges Over Fluids
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+This recipe demonstrates how to overplot grid boxes on top of a fluid image.
+Each level is represented with a different color from white (low refinement) to
+black (high refinement). One can change the colormap used for the grids colors
+by using the cmap keyword (or set it to None to get all grid edges as black).
+
+.. yt_cookbook:: overplot_grids.py
+
Overplotting Velocity Vectors
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff -r 1b85abd12f57dc86ac1056425d8e23e53ed5efb2 -r 5a10e0b24a5a161ecccc0a9cb70067bf3f7be5a7 source/cookbook/overplot_grids.py
--- /dev/null
+++ b/source/cookbook/overplot_grids.py
@@ -0,0 +1,18 @@
+from yt.mods import *
+
+# Load the dataset.
+pf = load("Enzo_64/DD0043/data0043")
+
+# Make a density projection.
+p = ProjectionPlot(pf, "y", "Density")
+
+# Modify the projection
+# The argument specifies the region along the line of sight
+# for which particles will be gathered.
+# 1.0 signifies the entire domain in the line of sight.
+p.annotate_grids()
+
+# Save the image.
+# Optionally, give a string as an argument
+# to name files with a keyword.
+p.save()
https://bitbucket.org/yt_analysis/yt-doc/commits/76d4a64d71bc/
Changeset: 76d4a64d71bc
User: chummels
Date: 2013-08-16 23:38:17
Summary: Fixing typo in complex_plots
Affected #: 1 file
diff -r 5a10e0b24a5a161ecccc0a9cb70067bf3f7be5a7 -r 76d4a64d71bc73c8cc88ee81f4596222d5810642 source/cookbook/complex_plots.rst
--- a/source/cookbook/complex_plots.rst
+++ b/source/cookbook/complex_plots.rst
@@ -83,7 +83,7 @@
.. yt_cookbook:: overplot_particles.py
Plotting Grid Edges Over Fluids
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This recipe demonstrates how to overplot grid boxes on top of a fluid image.
Each level is represented with a different color from white (low refinement) to
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