File:Cauchy pdf.svg
From testwiki
Jump to navigation
Jump to search
Original file (SVG file, nominally 900 × 699 pixels, file size: 3 KB)
Contents
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
| DescriptionCauchy pdf.svg |
English: Plots of the density functions for several members of the Cauchy family of probability distributions. |
| Date | |
| Source | Own work |
| Author | Skbkekas |
| SVG development InfoField | |
| Source code InfoField | Python code#!/usr/bin/python
import numpy as np
import matplotlib.pyplot as plt
import scipy.special as sp
import matplotlib.font_manager
col = ['orange', 'purple', 'deepskyblue', 'mediumseagreen']
X = np.arange(-5, 5, 0.01)
##
## PDF
##
plt.rc('text', usetex = True)
plt.rc('font', family = 'serif', size = 12)
plt.clf()
plt.figure(figsize=(4,3.2))
plt.axes([0.14,0.12,0.83,0.82])
# plt.hold(True)
X = np.arange(-5, 5, 0.01)
A = []
for k,(x,g) in enumerate([(0,0.5),(0,1),(0,2),(-2,1)]):
Y = ((X-x)/g)**2 + 1
Y = 1/(np.pi*g*Y)
a = plt.plot(X, Y, '-', color=col[k], lw=1.7)
A.append(a)
plt.xlabel("$x$")
plt.ylabel("$P(x)$")
plt.ylim([0,0.7])
plt.tick_params(direction='in', top=True, right=True)
prop = matplotlib.font_manager.FontProperties(size=12)
# bx =
plt.legend(("$x_0=0,\\, \\gamma=0.5$", "$x_0=0,\\,\\gamma=1$",\
"$x_0=0,\\, \\gamma=2$", "$x_0=-2,\\, \\gamma=1$"),
numpoints=1, handlelength=0.75, handletextpad=0.5,\
loc="upper right", frameon=False)
# bx.draw_frame(False)
plt.xlim(-5,5)
plt.savefig("cauchy_pdf.pdf")
plt.savefig("cauchy_pdf.svg")
|
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution 3.0 Unported 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.
Captions
Add a one-line explanation of what this file represents
Items portrayed in this file
depicts
2 March 2010
image/svg+xml
bcedeac5f5c4de169d128c65e9e34a40384aa69e
37,077 byte
288 pixel
360 pixel
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 11:46, 1 September 2026 | 900 × 699 (3 KB) | wikimediacommons>Д.Ильин | Fix error 1.0 -> 0.7 |
File usage
There are no pages that use this file.
Retrieved from "https://en.wiki.beta.math.wmcloud.org/wiki/File:Cauchy_pdf.svg"