File:Wikipedia bincounts.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 1,344 × 480 pixels, file size: 40 KB)

    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: Sample histogram with different binsizes
    Date
    Source Own work
    Author Zckub

    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.

    Generated with python:

    import numpy as np import pandas as pd import matplotlib.pyplot as plt

    np.random.seed(13) data = np.random.poisson(50, size = 1000) len(data) print(data.max(),data.min()) #the use this to calculate sizes

    fig, axs = plt.subplots(1,3, figsize=(14, 5)) axs[0].hist(data,bins=3) axs[1].hist(data,bins=8) axs[2].hist(data,bins=30) axs[0].set_title('3 bins, binsize = 14') axs[1].set_title('8 bins, binsize = 6') axs[2].set_title('30 bins, binsize = 2')

    plt.savefig("wikipedia_bincounts.svg",format="svg")

    Captions

    Sample histogram with different binsizes

    Items portrayed in this file

    depicts

    19 February 2026

    40,563 byte

    image/svg+xml

    9b6943f4beced653204c99513d967eac217c3b5a

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current19:15, 19 February 2026Thumbnail for version as of 19:15, 19 February 20261,344 × 480 (40 KB)wikimediacommons>ZckubUploaded own work with UploadWizard

    There are no pages that use this file.