File:RutherfordCrosssection2Scales.png
From testwiki
Jump to navigation
Jump to search

Size of this preview: 640 × 480 pixels. Other resolution: 320 × 240 pixels.
Original file (640 × 480 pixels, file size: 37 KB, MIME type: image/png)
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
| DescriptionRutherfordCrosssection2Scales.png |
English: Rutherford scattering cross-section is strongly peaked around zero degrees, and yet has nonzero values out to 180 degrees. |
||
| Date | |||
| Source | Own work | ||
| Author | Johnjbarton | ||
| Other versions |
|
||
| PNG development InfoField | |||
| Source code InfoField | Python codeimport matplotlib.pyplot as plt
import numpy as np
import math
# Rutherford cross section
def cross_section():
thetas = np.linspace(0.1, math.pi, 100)
sigmas = 1/(np.sin(thetas/2) ** 4)
thetas = [np.degrees(theta) for theta in thetas]
return (thetas, sigmas)
thetas, sigmas = cross_section()
fig, ax1 = plt.subplots()
color = 'tab:red'
ax1.set_xlabel('scattering angle (degrees)')
ax1.set_ylabel('cross section', color=color)
ax1.plot(thetas, sigmas, color=color)
ax1.tick_params(axis='y', labelcolor=color)
ax2 = ax1.twinx() # instantiate a second Axes that shares the same x-axis
color = 'tab:blue'
ax2.set_ylabel('10000x', color=color) # we already handled the x-label with ax1
# Drop large values at beginning and let auto-scaling redraw it larger.
ax2.plot(thetas[-69:], sigmas[-69:], color=color)
ax2.tick_params(axis='y', labelcolor=color)
fig.tight_layout() # otherwise the right y-label is slightly clipped
plt.text(100, 10, "$1/\sin^4(\Theta/2)$", fontsize='x-large')
fig.savefig("RutherfordCrosssection2Scales.png")
plt.show()
|
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
| 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.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
Captions
Rutherford scattering cross-section is strongly peaked around zero degrees, and yet has nonzero values out to 180 degrees.
Items portrayed in this file
depicts
some value
25 June 2024
image/png
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 17:43, 25 June 2024 | 640 × 480 (37 KB) | wikimediacommons>Johnjbarton | Uploaded own work with UploadWizard |
File usage
There are no pages that use this file.