| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| """ | ||
| =========== | ||
| Poly Editor | ||
| ========== |
There was a problem hiding this comment.
missing '='
Sorry, something went wrong.
| self.origYData = ydata | ||
| self.origXData = xdata | ||
| self.ratio = 5 | ||
| self.ratio = 50 |
There was a problem hiding this comment.
This seems a bit too aggressive.
Sorry, something went wrong.
|
Left 2 small comments, but otherwise looks good! |
Sorry, something went wrong.
|
In the future, it is better to make PRs against some branch other than your master branch. |
Sorry, something went wrong.
|
@tacaswell will do! My first commit to an OSS project, so apologies. |
Sorry, something went wrong.
| ax.axis[direction].set_visible(True) | ||
|
|
||
| for direction in ["left", "right", "bottom", "top"]: | ||
| # hides boarders |
There was a problem hiding this comment.
boarders -> borders
Sorry, something went wrong.
| PONG | ||
| ==== | ||
|
|
||
| A matplotlib based game of Pong illustrating one way to write interactive animation which are easily ported to multiple backends pipong.py was written by Paul Ivanov <http://pirsquared.org> |
There was a problem hiding this comment.
matplotlib -> Matplotlib
animation -> animations
Add period at end of sentence.
Also, please wrap this line at 79 characters.
Sorry, something went wrong.
| Resampling Data | ||
| =============== | ||
|
|
||
| Downsampling lowers the sample rate or sample size of a signal. In this tutorial, the signal is downsampled when the plot is adjusted through dragging and zooming. |
There was a problem hiding this comment.
Wrap this line.
Sorry, something went wrong.
| Demonstrate the mixing of 2d and 3d subplots. | ||
| ============================================ | ||
| Demonstrate the mixing of 2d and 3d subplots | ||
| ============================================ |
There was a problem hiding this comment.
Missing blank line after, I think.
Sorry, something went wrong.
There was a problem hiding this comment.
I think I resolved this?
Sorry, something went wrong.
| ================= | ||
|
|
||
| This is an example of creating a stacked bar plot with error bars using `plt.bar`. | ||
| Note the parameters `yerr` used for error bars, and `bottom` to stack the women's bars on top of the men's bars. |
There was a problem hiding this comment.
Lines need to be wrapped.
Sorry, something went wrong.
| @@ -1,3 +1,11 @@ | |||
| """ | |||
| ======= | |||
| Dophins | |||
There was a problem hiding this comment.
Dophins -> Dolphins
Sorry, something went wrong.
| Dophins | ||
| ======= | ||
|
|
||
| This example shows how to draw, and manipulate shapes given verticies and nodes using the patches, path and transforms classes. |
There was a problem hiding this comment.
Wrap line.
Sorry, something went wrong.
| Filling the area between lines | ||
| ============================== | ||
|
|
||
| This example shows how to use fill_between() to color between lines based on user-defined logic. |
There was a problem hiding this comment.
Wrap line.
Sorry, something went wrong.
| ====================== | ||
|
|
||
| This shows 4 possible projections using subplot. | ||
| Matplotlib also supports the <a href='http://matplotlib.org/basemap/'>Basemaps Toolkit</a> for geographic projections. |
There was a problem hiding this comment.
Wrap line. Probably should mention Cartopy as well.
Sorry, something went wrong.
| MRI | ||
| === | ||
|
|
||
| This example illustrates how to read an image (of an MRI) into a numpy array, and display it in greyscale using `ax.imshow`. |
There was a problem hiding this comment.
numpy -> NumPy
Wrap line.
Sorry, something went wrong.
| ax.axis[direction].set_visible(True) | ||
|
|
||
| for direction in ["left", "right", "bottom", "top"]: | ||
| # hides boarders |
There was a problem hiding this comment.
borders
Sorry, something went wrong.
| # pipong.py was written by Paul Ivanov <http://pirsquared.org> | ||
| """ | ||
| ==== | ||
| PONG |
There was a problem hiding this comment.
"Pong" (I don't think it should be all caps).
Sorry, something went wrong.
| @@ -1,3 +1,11 @@ | |||
| """ | |||
| ======= | |||
| Dophins | |||
There was a problem hiding this comment.
dolphins
Sorry, something went wrong.
| @@ -1,3 +1,10 @@ | |||
| """ | |||
| ================ | |||
| Axis Line Styles | |||
There was a problem hiding this comment.
Looks like most already converted examples only capitalize the first word (which I prefer too), so let's stay consistent (applies to this and all files below).
Sorry, something went wrong.
| Demonstrate the mixing of 2d and 3d subplots. | ||
| ============================================ | ||
| Demonstrate the mixing of 2d and 3d subplots | ||
| ============================================ |
There was a problem hiding this comment.
blank line
Sorry, something went wrong.
There was a problem hiding this comment.
I think I resolved this?
Sorry, something went wrong.
| PONG | ||
| ==== | ||
|
|
||
| A matplotlib based game of Pong illustrating one way to write interactive animation which are easily ported to multiple backends pipong.py was written by Paul Ivanov <http://pirsquared.org> |
There was a problem hiding this comment.
Here and below, wrap your lines at 79 characters (most editors should provide some option to help that).
Sorry, something went wrong.
There was a problem hiding this comment.
Here and below, use the rst syntax for hyperlinks (http://www.sphinx-doc.org/en/stable/rest.html#hyperlinks).
Sorry, something went wrong.
| Filling the area between lines | ||
| ============================== | ||
|
|
||
| This example shows how to use fill_between() to color between lines based on user-defined logic. |
There was a problem hiding this comment.
`fill_between`
(with backquotes) -- ultimately this should create a link to the API docs.
Sorry, something went wrong.
| Dophins | ||
| ======= | ||
|
|
||
| This example shows how to draw, and manipulate shapes given verticies and nodes using the patches, path and transforms classes. |
There was a problem hiding this comment.
"vertices".
Please spell-check your docstrings.
Sorry, something went wrong.
| MRI | ||
| === | ||
|
|
||
| This example illustrates how to read an image (of an MRI) into a numpy array, and display it in greyscale using `ax.imshow`. |
There was a problem hiding this comment.
just imshow
Sorry, something went wrong.
|
Apparently I reviewed this at the same time as @QuLogic :-) |
Sorry, something went wrong.
|
Apparently other reviewer can spell better than I can.. |
Sorry, something went wrong.
Sorry, something went wrong.
|
|
||
| A Matplotlib based game of Pong illustrating one way to write interactive | ||
| animations which are easily ported to multiple backends pipong.py was written | ||
| by <a href='http://pirsquared.org'>Paul Ivanov</a>. |
There was a problem hiding this comment.
I am somewhat not surprised by the original author of that example…
ping @ivanov :D
Sorry, something went wrong.
|
should I be alarmed about the Travis CLI failure? Now sure I understand what I'm seeing under Details. |
Sorry, something went wrong.
| Pong | ||
| ==== | ||
|
|
||
| A Matplotlib based game of Pong illustrating one way to write interactive |
There was a problem hiding this comment.
Beware of the trailing whitespace (remove it for PEP8-compliance)
Sorry, something went wrong.
| ==== | ||
|
|
||
| A Matplotlib based game of Pong illustrating one way to write interactive | ||
| animations which are easily ported to multiple backends pipong.py was written |
There was a problem hiding this comment.
As above, just remove the trailing whitespace for PEP8-compliance
Sorry, something went wrong.
|
The Travis failure is related to PEP8 (more precisely to two trailing whitespaces). More details here ;). Edit: typo |
Sorry, something went wrong.
|
If you have changes to multiple files, editing on GitHub is not a good choice. It creates way too many single commits of one or two minor changes. Please rebase and squash this on your local copy if you can. |
Sorry, something went wrong.
|
Can we activate the squash and merge option? This would allow us to squash and merge before merging instead of asking contributors to rebase themselves. ping @tacaswell |
Sorry, something went wrong.
|
TBH, as a contributor, I don't really like squash&merge as it decouples your fork and upstream's (I don't like rebase&merge for the same reason.) |
Sorry, something went wrong.
|
Hi, I squashed all 20 commits. Did I do it correctly? Is it reflected in this PR, or should I make a new one? |
Sorry, something went wrong.
|
Yep, it is done and it works! Thanks! |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM 👍
Sorry, something went wrong.
No, it's not quite right. After rebasing, you need to force push the result. If you don't force, git will complain and suggest you pull everything, but that will restore all the previous commits locally and add another merge commit. So, please do the rebase, and then do git push --force origin master (btw, it's safer to use a feature branch instead of master) so that you can replace all the old commits. |
Sorry, something went wrong.
|
@yinleon Are you still around Berkeley? I was mistaken and something didn't quite happen right with the rebase. I am happy to help you out with this tomorrow (I should be at BIDS all afternoon if you are around). |
Sorry, something went wrong.
Sorry, something went wrong.
| for direction in ["xzero", "yzero"]: | ||
| # adds arrows at the ends of each axis | ||
| ax.axis[direction].set_axisline_style("-|>") | ||
|
|
There was a problem hiding this comment.
There is some whitespace here causing the pep8 failure.
Sorry, something went wrong.
|
Hi @yinleon This patch needs an additional review. |
Sorry, something went wrong.
| matplotlib event handling to interact with objects on the canvas | ||
| =========== | ||
| Poly Editor | ||
| ========== |
There was a problem hiding this comment.
One missing =.
Sorry, something went wrong.
|
I think this is ready to be merged. @anntzer can you have a look at this? |
Sorry, something went wrong.
| ==== | ||
|
|
||
| A Matplotlib based game of Pong illustrating one way to write interactive | ||
| animations which are easily ported to multiple backends pipong.py was written |
There was a problem hiding this comment.
dot after "multiple backends"
Sorry, something went wrong.
|
|
||
| A Matplotlib based game of Pong illustrating one way to write interactive | ||
| animations which are easily ported to multiple backends pipong.py was written | ||
| by <a href='http://pirsquared.org'>Paul Ivanov</a>. |
There was a problem hiding this comment.
hyperlinks should use rst syntax (http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases)
Sorry, something went wrong.
|
|
||
| This is an example of plotting Edward Lorenz's 1963 "Deterministic | ||
| Nonperiodic Flow" in a 3-dimensional space using mplot3d. | ||
|
|
There was a problem hiding this comment.
I would suggest using an explicit hyperlink target (http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#hyperlink-targets).
Sorry, something went wrong.
| ================= | ||
|
|
||
| This is an example of creating a stacked bar plot with error bars using | ||
| `plt.bar`. Note the parameters `yerr` used for error bars, and `bottom` |
There was a problem hiding this comment.
yerr and bottom should use *foo*, not backticks (they are not references to linkable elements).
Sorry, something went wrong.
| ======== | ||
|
|
||
| This example shows how to draw, and manipulate shapes given vertices and nodes | ||
| using the `patches`, `path` and `transforms` classes. |
There was a problem hiding this comment.
Patch, Path, and Transform (references to actual python names).
Sorry, something went wrong.
|
|
||
| This shows 4 possible projections using subplot. | ||
| Matplotlib also supports | ||
| <a href='http://matplotlib.org/basemap/'>Basemaps Toolkit</a> and |
There was a problem hiding this comment.
same comment as above regarding hyperlink syntax (either way works).
Sorry, something went wrong.
|
This is going to take a bit of a rebase now sphinx-gallery is merged. I've assigned this to myself and will try to do it in the next day or so. |
Sorry, something went wrong.
|
hey @yinleon , a lot has changed with MPL docs in the last few weeks :) This means it'll be a bit more complicated to get this merged. Do you have time to do a live skype where you and I can spot-check these issues and get it back to a mergeable state? |
Sorry, something went wrong.
|
So I actually had a go at rebasing this last night, and gave up after a while. Quite a lot of the changes have already been made (titles), and there's only a couple of things that are now new unfortunately. I think the easiest thing to do here would be to manually compare the PR diff and the current files, and just copy across anything new. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Regarding #7206