Commits

Matthew Turk committed 95aaa8f

Adding narration to Simple Visualization.

Comments (0)

Files changed (1)

Simple Visualization.ipynb

      "cell_type": "markdown",
      "metadata": {},
      "source": [
-      "In the terms that yt uses, a projection is a line integral through the domain.  This can either be unweighted (in which case a column density is returned) or weighted, in which case an average value is returned.  Projections are, like all other data objects in yt, full-fledged data objects that churn through data and present that to you.  However, we also provide a simple method of creating Projections and plotting them in a single step.  This is called a Plot Window, here specifically known as a `ProjectionPlot`.  One thing to note is that in yt, we project all the way through the entire domain at a single time.  This means that the first call to projecting can be somewhat time consuming, but panning, zooming and plotting are all quite fast."
+      "In the terms that yt uses, a projection is a line integral through the domain.  This can either be unweighted (in which case a column density is returned) or weighted, in which case an average value is returned.  Projections are, like all other data objects in yt, full-fledged data objects that churn through data and present that to you.  However, we also provide a simple method of creating Projections and plotting them in a single step.  This is called a Plot Window, here specifically known as a `ProjectionPlot`.  One thing to note is that in yt, we project all the way through the entire domain at a single time.  This means that the first call to projecting can be somewhat time consuming, but panning, zooming and plotting are all quite fast.\n",
+      "\n",
+      "yt is designed to make it easy to make nice plots and straightforward to modify those plots directly.  The cookbook in the documentation includes detailed examples of this."
      ]
     },
     {
      "outputs": []
     },
     {
+     "cell_type": "markdown",
+     "metadata": {},
+     "source": [
+      "We can adjust the colormap on a field-by-field basis."
+     ]
+    },
+    {
      "cell_type": "code",
      "collapsed": false,
      "input": [
      "outputs": []
     },
     {
+     "cell_type": "markdown",
+     "metadata": {},
+     "source": [
+      "And, we can re-center the plot on different locations.  One possible use of this would be to make a single `ProjectionPlot` which you move around to look at different regions in your simulation, saving at each one."
+     ]
+    },
+    {
      "cell_type": "code",
      "collapsed": false,
      "input": [
      "outputs": []
     },
     {
+     "cell_type": "markdown",
+     "metadata": {},
+     "source": [
+      "Okay, let's load up a bigger simulation (from `Enzo_64` this time) and make a slice plot."
+     ]
+    },
+    {
      "cell_type": "code",
      "collapsed": false,
      "input": [
      "outputs": []
     },
     {
+     "cell_type": "markdown",
+     "metadata": {},
+     "source": [
+      "We can adjust the logging of various fields:"
+     ]
+    },
+    {
      "cell_type": "code",
      "collapsed": false,
      "input": [
      "outputs": []
     },
     {
+     "cell_type": "markdown",
+     "metadata": {},
+     "source": [
+      "yt provides many different annotations for your plots.  You can see all of these in the documentation, or if you type `s.annotate_` and press tab, a list will show up here.  We'll annotate with velocity arrows."
+     ]
+    },
+    {
      "cell_type": "code",
      "collapsed": false,
      "input": [
      "outputs": []
     },
     {
+     "cell_type": "markdown",
+     "metadata": {},
+     "source": [
+      "Contours can also be overlaid:"
+     ]
+    },
+    {
      "cell_type": "code",
      "collapsed": false,
      "input": [
      "outputs": []
     },
     {
+     "cell_type": "markdown",
+     "metadata": {},
+     "source": [
+      "Finally, we can save out to the file system."
+     ]
+    },
+    {
      "cell_type": "code",
      "collapsed": false,
      "input": [
      "language": "python",
      "metadata": {},
      "outputs": []
-    },
-    {
-     "cell_type": "code",
-     "collapsed": false,
-     "input": [],
-     "language": "python",
-     "metadata": {},
-     "outputs": []
     }
    ],
    "metadata": {}