[yt-svn] commit/yt: 3 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Thu May 26 06:25:46 PDT 2016
3 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/d52c74e626eb/
Changeset: d52c74e626eb
Branch: yt
User: atmyers
Date: 2016-05-24 19:20:09+00:00
Summary: [DOCS] Adding an entry for annotate_mesh_lines() in the plot callbacks section of the narrative docs.
Affected #: 1 file
diff -r 4898059be9f9314615b7a7df090845dda5bdefe5 -r d52c74e626eb76388c3c07e761ca7fe283039570 doc/source/visualizing/callbacks.rst
--- a/doc/source/visualizing/callbacks.rst
+++ b/doc/source/visualizing/callbacks.rst
@@ -692,6 +692,27 @@
s.annotate_triangle_facets(points, plot_args={"colors": 'black'})
s.save()
+.. _annotate-mesh-lines:
+
+Annotate Mesh Lines Callback
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+.. function:: annotate_mesh_lines(plot_args=None)
+
+ (This is a proxy for
+ :class:`~yt.visualization.plot_modifications.MeshLinesCallback`.)
+
+ This draws the mesh line boundaries over a plot using a Matplotlib
+ line collection. This callback is only useful for unstructured or
+ semi-structured mesh datasets.
+
+.. python-script::
+
+ import yt
+ ds = yt.load('MOOSE_sample_data/out.e')
+ sl = yt.SlicePlot(ds, 2, ('connect1', 'nodal_aux'))
+ sl.annotate_mesh_lines(plot_args={'color':'black'})
+
.. _annotate-ray:
Overplot the Path of a Ray
https://bitbucket.org/yt_analysis/yt/commits/7931a0986cf4/
Changeset: 7931a0986cf4
Branch: yt
User: atmyers
Date: 2016-05-26 03:03:12+00:00
Summary: save the image at the end of the script.
Affected #: 1 file
diff -r d52c74e626eb76388c3c07e761ca7fe283039570 -r 7931a0986cf4f03361772b8b583539c591047297 doc/source/visualizing/callbacks.rst
--- a/doc/source/visualizing/callbacks.rst
+++ b/doc/source/visualizing/callbacks.rst
@@ -712,6 +712,7 @@
ds = yt.load('MOOSE_sample_data/out.e')
sl = yt.SlicePlot(ds, 2, ('connect1', 'nodal_aux'))
sl.annotate_mesh_lines(plot_args={'color':'black'})
+ sl.save()
.. _annotate-ray:
https://bitbucket.org/yt_analysis/yt/commits/19d0848c5d8f/
Changeset: 19d0848c5d8f
Branch: yt
User: xarthisius
Date: 2016-05-26 13:25:31+00:00
Summary: Merged in atmyers/yt (pull request #2192)
[DOCS] Adding an entry for annotate_mesh_lines() in the plot callbacks section of the narrative docs.
Affected #: 1 file
diff -r 2af65e3224d6ad7d4f6c50566410d1a30cd797dc -r 19d0848c5d8f453d3b5e9c0996d43f805517be9f doc/source/visualizing/callbacks.rst
--- a/doc/source/visualizing/callbacks.rst
+++ b/doc/source/visualizing/callbacks.rst
@@ -692,6 +692,28 @@
s.annotate_triangle_facets(points, plot_args={"colors": 'black'})
s.save()
+.. _annotate-mesh-lines:
+
+Annotate Mesh Lines Callback
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+.. function:: annotate_mesh_lines(plot_args=None)
+
+ (This is a proxy for
+ :class:`~yt.visualization.plot_modifications.MeshLinesCallback`.)
+
+ This draws the mesh line boundaries over a plot using a Matplotlib
+ line collection. This callback is only useful for unstructured or
+ semi-structured mesh datasets.
+
+.. python-script::
+
+ import yt
+ ds = yt.load('MOOSE_sample_data/out.e')
+ sl = yt.SlicePlot(ds, 2, ('connect1', 'nodal_aux'))
+ sl.annotate_mesh_lines(plot_args={'color':'black'})
+ sl.save()
+
.. _annotate-ray:
Overplot the Path of a Ray
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
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