File:Percentile.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(2,400 × 1,600 pixels, file size: 81 KB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: Illustration of the first definition of "percentile" used in en:percentile.
Date
Source Own work
Author Pred

Source code[edit]

The plot may be reproduced using the following Python code:

import matplotlib.pyplot as plt
from matplotlib.patches import Ellipse
import seaborn as sns

color = sns.color_palette('muted', 1)
sns.set_palette(color)
values = [15, 20, 35, 40, 50]
for i, a in enumerate(values):
    def add_ellipse(x, fill):
        ax = plt.gca()
        ax.add_artist(Ellipse((x, a), 2, 1, fill=fill, edgecolor=color[0]))
    plt.plot([i*100/len(x), (i+1)*100/len(x)], [a, a])
    if i > 0:
        add_ellipse(i*100/len(x), False)
    add_ellipse((i+1)*100/len(x), True)

plt.xlabel('Percent rank')
plt.ylabel('Percentile value')
plt.xlim(0, 102)
plt.ylim(14, 51)
plt.savefig('percentile.png', dpi=400)

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current16:37, 19 March 2017Thumbnail for version as of 16:37, 19 March 20172,400 × 1,600 (81 KB)Pred (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata