File:Graph of a generating function u with its measure U.png
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 | |
| Source code | Python codeimport 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:
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.