File:Graph of a generating function u with its measure U.png

From testwiki
Jump to navigation Jump to search
Original file (1,596 × 810 pixels, file size: 24 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: Graph of the generating function u as a step function with it examples of its measure U shown as areas under the curve
Date
Source Own work
Author Dom walden
PNG development
InfoField
 This plot was created with Matplotlib.
Source code
InfoField

Python code

import matplotlib.pyplot as plt
import numpy as np

fig, ax = plt.subplots()

ax.stairs([1, 2, 3, 4, 5], linewidth=2.5)
ax.stairs([1, 2], edges=[0, 1, 1.5], fill=True, label='U(1.5)')

ax.stairs([3], edges=[2.4, 2.6], fill=True, label='U{[2.4, 2.6]}')

ax.set_yticklabels(['$\mathregular{a_0}$', '$\mathregular{a_1}$', '$\mathregular{a_2}$', '$\mathregular{a_3}$', '$\mathregular{a_4}$'])

ax.set(xlim=(0, 5), xticks=np.arange(1, 5),
       ylim=(0, 6), yticks=np.arange(1, 6))

ax.legend()
ax.set_title("Graph of u(x), showing U(1.5) and U{[2.4, 2.6]} as areas under the curve")

plt.show()

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions

Graph of the generating function u as a step function with it examples of its measure U shown as areas under the curve

Items portrayed in this file

depicts

16 February 2025

image/png

File history

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

Date/TimeThumbnailDimensionsUserComment
current11:06, 16 February 2025Thumbnail for version as of 11:06, 16 February 20251,596 × 810 (24 KB)wikimediacommons>Dom waldenUploaded own work with UploadWizard

The following page uses this file: