| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
I've added those as being "done" on #7206. |
Sorry, something went wrong.
|
@NelleV cool, I'll update it as I go. |
Sorry, something went wrong.
|
Can you add the titling =s while you're here? |
Sorry, something went wrong.
|
@phobson if the title is written in restructured text format, it will be rendered as so with sphinx-gallery. It is not requirement for the examples to be parsed properly, but it does look much nicer. |
Sorry, something went wrong.
There was a problem hiding this comment.
Are all the plots PEP8-good now?
Sorry, something went wrong.
| mean is the only value not shown by default). The second | ||
| figure demonstrates how the styles of the artists of can | ||
| be customized. It also demonstrates how to set the limit | ||
| if the whiskers to specific percentiles (lower right axes) |
There was a problem hiding this comment.
if -> of.
Missing period at end of sentence.
Sorry, something went wrong.
There was a problem hiding this comment.
Also, is there a reason for wrapping lines so early?
Sorry, something went wrong.
| statistics to the box plot drawer. The first figure demostrates | ||
| how to remove and add individual components (note that the | ||
| mean is the only value not shown by default). The second | ||
| figure demonstrates how the styles of the artists of can |
There was a problem hiding this comment.
Remove second 'of'.
Sorry, something went wrong.
| The first plot shows the default style by providing only | ||
| the data. The second plot first limits what matplotlib draws | ||
| with additional kwargs. Then a simplified representation of | ||
| a box plot in drawn on top. Lastly, the styles of arists |
There was a problem hiding this comment.
arists -> artists
Sorry, something went wrong.
| for ax in [ax1, ax2]: | ||
| ax.get_xaxis().set_tick_params(direction='out') | ||
| ax.xaxis.set_ticks_position('bottom') | ||
| ax.set_xticks([x + 1 for x in range(len(lab))]) |
There was a problem hiding this comment.
You could maybe replace this with np.arange(1, ...) instead.
Sorry, something went wrong.
| Demo of the errorbar function | ||
| ============================= | ||
|
|
||
| This exhibits the most basic use of of the error bar method. |
There was a problem hiding this comment.
Double 'of'.
Sorry, something went wrong.
| Demo of how to produce multiple histograms side by side | ||
| ======================================================= | ||
|
|
||
| This example plots horizonal histograms of different samples along |
There was a problem hiding this comment.
horizonal -> horizontal
Sorry, something went wrong.
| Violin plots are similar to histograms and box plots in that they show | ||
| an abstract representation of the probability distribution of the | ||
| sample. Rather than showing counts of data points that fall into bins | ||
| or order statistics, violin plots use kernal density estimation (KDE) to |
There was a problem hiding this comment.
kernal -> kernel
Sorry, something went wrong.
| or order statistics, violin plots use kernal density estimation (KDE) to | ||
| compute an emperical distribution of the sample. That computation | ||
| is controlled by several parameters. This example demostrates how to | ||
| modify the number of points at the KDE is evaluated (``points``) and |
There was a problem hiding this comment.
at -> at which (or maybe "for which", depending on the exact meaning.)
Sorry, something went wrong.
| compute an emperical distribution of the sample. That computation | ||
| is controlled by several parameters. This example demostrates how to | ||
| modify the number of points at the KDE is evaluated (``points``) and | ||
| how to modify the band-width of the kde (``bw_method``). |
There was a problem hiding this comment.
kde -> KDE
for consistency.
Sorry, something went wrong.
| an abstract representation of the probability distribution of the | ||
| sample. Rather than showing counts of data points that fall into bins | ||
| or order statistics, violin plots use kernal density estimation (KDE) to | ||
| compute an emperical distribution of the sample. That computation |
There was a problem hiding this comment.
emperical -> empirical
Sorry, something went wrong.
There was a problem hiding this comment.
This looks good.
I've underlined a couple of typos, but this is a huge improvements in our examples. Thanks for the work put into this!
Sorry, something went wrong.
| ========================================= | ||
|
|
||
| This example demonstrates how to use the various kwargs | ||
| to fully customize box plots. The first figure demostrates |
There was a problem hiding this comment.
typo: demostrates -> demonstrates
Sorry, something went wrong.
| to fully customize box plots. The first figure demostrates | ||
| how to remove and add individual components (note that the | ||
| mean is the only value not shown by default). The second | ||
| figure demonstrates how the styles of the artists of can |
There was a problem hiding this comment.
type: there is an extra of
Sorry, something went wrong.
| =================================== | ||
|
|
||
| This example demonstrates how to pass pre-computed box plot | ||
| statistics to the box plot drawer. The first figure demostrates |
There was a problem hiding this comment.
typo: demostrates -> demonstrates
Sorry, something went wrong.
| The first plot shows the default style by providing only | ||
| the data. The second plot first limits what matplotlib draws | ||
| with additional kwargs. Then a simplified representation of | ||
| a box plot in drawn on top. Lastly, the styles of the artists |
There was a problem hiding this comment.
typo: in -> is
Sorry, something went wrong.
| called `make_error_boxes`. Close inspection of this function will reveal | ||
| the preferred pattern in writing functions for matplotlib: | ||
|
|
||
| 1. an `Axes` object is passed directly to the function |
There was a problem hiding this comment.
👍
Sorry, something went wrong.
| A couple of other options to the ``hist`` function are demonstrated. | ||
| Namely, we use the ``normed`` parameter to normalize the histogram and | ||
| a couple of different options to the `cumulative` parameter. Normalizing | ||
| a histogram means that the heights bins are scaled such that |
There was a problem hiding this comment.
"heights bins" or "height bins"? I never know…
Sorry, something went wrong.
There was a problem hiding this comment.
Neither: "bin heights"
Sorry, something went wrong.
| modify the number of points at which the KDE is evaluated (``points``) | ||
| and how to modify the band-width of the KDE (``bw_method``). | ||
|
|
||
| For more information on violin plots and KDE, the scikit-learn docs |
There was a problem hiding this comment.
👍 (I am of course totally biased…)
Sorry, something went wrong.
| for ax in [ax1, ax2]: | ||
| ax.get_xaxis().set_tick_params(direction='out') | ||
| ax.xaxis.set_ticks_position('bottom') | ||
| ax.set_xticks([x for x in np.arange(1, len(lab) + 1)]) |
There was a problem hiding this comment.
You don't need the list comprehension now.
Sorry, something went wrong.
|
@QuLogic -- I never answered your question about PEP8. Yes. The pep8 that I ran locally w/o any exceptions didn't complain at all and Travis was happy with the last pass at them. |
Sorry, something went wrong.
You can't +1 your own PR 😛 |
Sorry, something went wrong.
There was a problem hiding this comment.
One minor tweak.
Sorry, something went wrong.
|
|
||
| A couple of other options to the ``hist`` function are demonstrated. | ||
| Namely, we use the ``normed`` parameter to normalize the histogram and | ||
| a couple of different options to the `cumulative` parameter. Normalizing |
There was a problem hiding this comment.
Missed on set of backticks.
Sorry, something went wrong.
| Namely, we use the ``normed`` parameter to normalize the histogram and | ||
| a couple of different options to the `cumulative` parameter. Normalizing | ||
| a histogram means that the bin heights are scaled such that | ||
| the total area is 1. Since we're showing a normalized and |
There was a problem hiding this comment.
I still feel there's one sentence missing between here explaining what the cumulative argument does, or maybe the "Since..." sentence can go after the next paragraph.
Sorry, something went wrong.
There was a problem hiding this comment.
@QuLogic I took another stab at this. Let me know what you think.
Sorry, something went wrong.
|
|
||
| Since we're showing a normalized and cumulative histogram, these curves | ||
| are effectively the cumulative distribution functions (CDFs) of the | ||
| samples. In engineering, empirical CDFs where are sometimes called |
There was a problem hiding this comment.
An extra 'where' in this sentence.
Sorry, something went wrong.
|
Let me know if y'all want me to squash all of this (I'm inclined to do so). |
Sorry, something went wrong.
|
@phobson Whatever you prefer. Let me know, else I am going to merge. |
Sorry, something went wrong.
|
I'll wait until the checks finish running before merging :) |
Sorry, something went wrong.
|
Cool. I'll take a stab at that soon. On Sunday, October 23, 2016, Elliott Sales de Andrade <
Sent from my sorry. Sorry about the typos. |
Sorry, something went wrong.
|
Ha. Sorry. That was a response to the approval. On Sunday, October 23, 2016, Elliott Sales de Andrade <
Sent from my sorry. Sorry about the typos. |
Sorry, something went wrong.
|
So… the backport doesn't apply cleanly and I got distracted by something else. |
Sorry, something went wrong.
MEP12 improvments for statistics plots
| Back | FazBrowse Home | New Git URL |
This isn't ready yet -- but I noticed a lot of MEP12 PRs, so I wanted to get this up sooner to avoid duplicate efforts