[yt-svn] commit/yt: MatthewTurk: Merged in ngoldbaum/yt (pull request #2065)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Mar 23 13:59:01 PDT 2016


1 new commit in yt:

http://link.bitbucket.org/wf/click?upn=8USRlNyft-2BCzk2l4Ywl6gDx2lD2xxoS9E7MwXb2SMR-2BXcTD42YocdnOFkyGBVHOUkJ6bpY-2BQSTURN2pHz8X15DEYbO8N7QD25jsjaKZpoiA-3D_ll4ctv0L-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27DCcbZ4hlJ8-2FrlRN-2FWrrEkesUTjIK0NxitjG-2ByaXM4gDkPpDK4RGy2fvC6qKyZBQjJMKX75cMeu87Cb5Q0somLnfGNbvuw1zg3VmaXqGjkkHzjYfmJjzlXww9J8RI6O960-2FcS58XludsdTld-2BKB7LYrkyZNp-2FTEWdjIw12jkFxwtBjvPf52BZwkGpjRfe761Xo-3D
Changeset:   32879adfdddb
Branch:      yt
User:        MatthewTurk
Date:        2016-03-23 20:58:42+00:00
Summary:     Merged in ngoldbaum/yt (pull request #2065)

Add a call to _setup_plots in the custom colorbar tickmark example.
Affected #:  1 file

diff -r ca40689574d6bfcb2ec7155906597da1e247ae40 -r 32879adfdddbee1118d6947fb04fc73ae32eeea6 doc/source/cookbook/custom_colorbar_tickmarks.ipynb
--- a/doc/source/cookbook/custom_colorbar_tickmarks.ipynb
+++ b/doc/source/cookbook/custom_colorbar_tickmarks.ipynb
@@ -64,6 +64,24 @@
    "cell_type": "markdown",
    "metadata": {},
    "source": [
+    "Next, we call `_setup_plots()` to ensure the plot is properly initialized. Without this, the custom tickmarks we are adding will be ignored."
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {
+    "collapsed": true
+   },
+   "outputs": [],
+   "source": [
+    "slc._setup_plots()"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
     "To set custom tickmarks, simply call the `matplotlib` [`set_ticks`](http://link.bitbucket.org/wf/click?upn=TZ4NDFG-2Ba2Yt5njqPa0GTEFn8gLXqCZKIMLPj5yG-2FRdAluhsotQlTwv7atD4Kn9807MN4YWt-2FJmDpLDlLVU8taZ7Eh-2BnedsZII1sIEcWF30-2BtEtwhygvpEwy1aI2KoZQ_ll4ctv0L-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27DCcbZ4hlJ8-2FrlRN-2FWrrEkesUTjIK0NxitjG-2ByaXM4gDgn0AHCZuqi3SLk0c1REzJ4l0S-2BGZvISBSReagcZ9axNyNXjNcOI8Vi7oS3S8i-2BZI5uX4e2oWTgoCzoZWlrbLxCvh-2F-2FFE7BJVmEcpHTGsb3ugsBgFWIOi8RF9uHcJlXVkGkDJan-2BPLpFrMYfySe8-2BKY-3D and [`set_ticklabels`](http://link.bitbucket.org/wf/click?upn=TZ4NDFG-2Ba2Yt5njqPa0GTEFn8gLXqCZKIMLPj5yG-2FRdAluhsotQlTwv7atD4Kn9807MN4YWt-2FJmDpLDlLVU8taZ7Eh-2BnedsZII1sIEcWF32jEk-2FKBkfm2WEseNAn3a-2BqeCVaF8bqFsGgZUnd2pC3qQ-3D-3D_ll4ctv0L-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27DCcbZ4hlJ8-2FrlRN-2FWrrEkesUTjIK0NxitjG-2ByaXM4gDg7PkGqXpQmJIQfh1ZuKjB1aBPrCkRigL3bFQ10WSVHcuLFueIqH7a639-2BivTLihjhHbkPBVkLhPEg6ANyBhkfSLCdpvUU5EQHKOOtdBOFZfP1GH3KlCXA4BNbsB4gTI5BHTWHAY9EOeGXiqUngRc3g-3D functions."
    ]
   },

Repository URL: http://link.bitbucket.org/wf/click?upn=8USRlNyft-2BCzk2l4Ywl6gDx2lD2xxoS9E7MwXb2SMR-2BI0v8SbQq-2B8-2FZaaHaJT85r_ll4ctv0L-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27DCcbZ4hlJ8-2FrlRN-2FWrrEkesUTjIK0NxitjG-2ByaXM4gDpBoJk9QxESkGdCEJP1h3OT7MEAGp5s-2FjbJ-2FqgV1jBGyyCk4ZF09u4VB1B5UF4tFA5uav0fykl1rK9jLpYyyQaS3wVLCoAHi6hq3s6PsP8t4-2BS57Ai-2BsxLdMY3ygC3td9M-2Bub9aUl01tlb3VnfRtr9Y-3D

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-svn-spacepope.org/attachments/20160323/fa20170b/attachment.htm>


More information about the yt-svn mailing list