File:Percentile.png

From testwiki
Jump to navigation Jump to search
    Original file (2,400 × 1,600 pixels, file size: 81 KB, MIME type: image/png)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

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

    Source code

    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

    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.

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    19 March 2017

    82,491 byte

    1,600 pixel

    2,400 pixel

    image/png

    5cc748a9be80c1cd792cd626810e50495e05203f

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current17:37, 19 March 2017Thumbnail for version as of 17:37, 19 March 20172,400 × 1,600 (81 KB)wikimediacommons>PredUser created page with UploadWizard

    There are no pages that use this file.