File:RutherfordCrosssection2Scales.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

RutherfordCrosssection2Scales.png(640 × 480 pixels, file size: 37 KB, MIME type: image/png)

Captions

Captions

Rutherford scattering cross-section is strongly peaked around zero degrees, and yet has nonzero values out to 180 degrees.

Summary

[edit]
Description
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
PNG development
InfoField
 
This plot was created with Matplotlib.
Source code
InfoField

Python code

import 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

[edit]
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.

File history

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

Date/TimeThumbnailDimensionsUserComment
current16:43, 25 June 2024Thumbnail for version as of 16:43, 25 June 2024640 × 480 (37 KB)Johnjbarton (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata