[yt-svn] commit/yt: xarthisius: Merged in atmyers/yt (pull request #2192)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Thu May 26 06:25:43 PDT 2016


1 new commit in yt:

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