File:Curve decomposition.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 1,102 × 679 pixels, file size: 58 KB)

    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

    Description
    English: Sum of two Lorentzian peaks with unit HWHM.
    Date
    Source Own work
    Author LvdT88
    SVG development
    InfoField
     The SVG code is valid.
     This Unicode character was created with LaTeX.

    Source Code

    \documentclass[crop,tikz,convert=pdf2svg]{standalone}
    \usetikzlibrary{backgrounds}
    \usepackage{pgfplots}
    \pgfplotsset{compat=1.16}
    \makeatletter
    \begin{document}
    \begin{tikzpicture}[scale=3,background rectangle/.style={fill=white}, show background rectangle]
    	\begin{axis}[
    		no markers,
    		width=300,
    		height=190,
    		xmin = -5.1,	xmax = 5.1,
    		ymin = -0.025,	ymax = 1.275,
    		ytick = {0,0.25,0.5,0.75,1,1.25},
    		yticklabels = {\(0\),\(\frac{1}{4}\),\(\frac{1}{2}\),\(\frac{3}{4}\),\(1\),\(1\frac{1}{4}\)},
    		domain=-5.5:5.5,
    		samples=512,
    		xlabel=\(p\),
    		ylabel={Intensity}
    	]
    	\addplot[color=blue] {1/(1+(x+1)^2)};
    	\addplot[color=red] {0.5/(1+(x-1)^2)};
    	\addplot[color=black] {1/(1+(x+1)^2) + 0.5/(1+(x-1)^2)};
    	\end{axis}
    \end{tikzpicture}
    \end{document}
    

    Licensing

    I, the copyright holder of this work, hereby publish it under the following licenses:
    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.

    LaTeX This work was created by free software; you can redistribute it and/or modify it under the terms of the LaTeX Project Public License, version 1.3c. See the License for more details.
    You may select the license of your choice.

    Captions

    Sum of two Lorentzian peaks.

    Items portrayed in this file

    depicts

    6 April 2020

    image/svg+xml

    eec70054aa2b4cf18a7a7330a9362ef8a6e8e280

    59,235 byte

    679 pixel

    1,102 pixel

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current19:29, 6 April 2020Thumbnail for version as of 19:29, 6 April 20201,102 × 679 (58 KB)wikimediacommons>LvdT88Uploaded own work with UploadWizard

    There are no pages that use this file.