Jump to content

File:RutherfordCrosssection2Scales.png

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia
    Original file (640 × 480 pixels, file size: 37 KB, MIME type: image/png)

    Summary

    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
    Other versions
    This graph image could be re-created using vector graphics as an SVG file. This has several advantages; see Commons:Media for cleanup for more information. If an SVG form of this image is available, please upload it and afterwards replace this template with {{vector version available|new image name}}.
    It is recommended to name the SVG file “RutherfordCrosssection2Scales.svg”—then the template Vector version available (or Vva) does not need the new image name parameter.
    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

    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.

    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

    25 June 2024

    image/png

    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)JohnjbartonUploaded own work with UploadWizard

    Global file usage

    The following other wikis use this file:

    Metadata