파일:Stretched exponential.svg

testwiki
둘러보기로 이동 검색으로 이동
    원본 파일 (SVG 파일, 실제 크기 536 × 396 픽셀, 파일 크기: 45 KB)

    이 파일은 위키미디어 공용에 있으며, 다른 프로젝트에서 사용하고 있을 가능성이 있습니다. 해당 파일에 대한 설명이 아래에 나와 있습니다.

    파일 설명

    설명
    English: Plot of en:stretched exponential functions f(x)=e−xβ for varying values of β, as well as the degenerate cases β→0,∞. Stretched exponetials (0<β<1) are in reddish colors, compressed exponentials (β>1) are in greenish or bluish colors, and the standard exponential (β=1) is in yellow.
    날짜
    출처 자작
    저자 LaundryPizza03
    SVG 발전
    InfoField
     이 SVG 파일의 소스 코드 문법이 올바릅니다.
     이 벡터 그림은 Matplotlib(으)로 제작되었습니다.
    소스 코드
    InfoField

    Python code

    Source code
    import numpy as np
    import matplotlib as mpl
    import matplotlib.pyplot as plt
    
    # Settings
    mpl.rcParams['savefig.bbox'] = 'tight'
    mpl.rcParams['figure.figsize'] = 6.4,4.8
    mpl.rcParams['axes.titlesize'] = 10
    mpl.rcParams['axes.labelsize'] = 10
    mpl.rcParams['xtick.labelsize'] = 10
    mpl.rcParams['ytick.labelsize'] = 10
    mpl.rcParams['legend.fontsize'] = 10
    
    # Parameters
    x = np.linspace(0,4,513)
    p = np.array([0,0.2,0.5,0.8,1,1.25,2,5,np.inf])
    
    def getcolor(p):
        l = p**2/(1+p**2) if p < np.inf else 1.
        c = mpl.colormaps["Spectral"](l)
        c = mpl.colors.rgb_to_hsv(c[0:3])
        c[1] = 1 #Oversaturate
        c[2] *= 0.95
        c = mpl.colors.hsv_to_rgb(c[0:3])
        print(p, mpl.colors.to_hex(c), mpl.colors.rgb_to_hsv(c))
        return c
    
    # Normal
    fig,ax = plt.subplots()
    for k in range(len(p)):
        if p[k] == 0:
            label = "$\\beta \\rightarrow 0$"
        elif p[k] == np.inf:
            label = "$\\beta \\rightarrow \\infty$"
        else:
            label = "$\\beta = %g$"%p[k]
        ax.plot(x, np.exp(-x**p[k]), color=getcolor(p[k]), label=label, ls='-' if 0<p[k]<np.inf else (2,(1,1)))
    
    ax.set_xlim(min(x),max(x))
    
    ax.set_ylabel("")
    ax.set_ylim(0,None)
    
    ax.minorticks_on()
    
    ax.grid(True,c=(0.9,0.9,0.9),ls='-',which='major')
    
    ax.legend(frameon=True, fancybox=False, framealpha=1, facecolor='white')
    fig.savefig('Stretched exponential.svg')
    

    라이선스

    나는 아래 작품의 저작권자로서, 이 저작물을 다음과 같은 라이선스로 배포합니다:
    Creative Commons CC-Zero 이 파일은 크리에이티브 커먼즈 CC0 1.0 보편적 퍼블릭 도메인 귀속에 따라 이용할 수 있습니다.
    저작물에 본 권리증서를 첨부한 자는 법률에서 허용하는 범위 내에서 저작인접권 및 관련된 모든 권리들을 포함하여 저작권법에 따라 전 세계적으로 해당 저작물에 대해 자신이 갖는 일체의 권리를 포기함으로써 저작물을 퍼블릭 도메인으로 양도하였습니다. 저작권자의 허락을 구하지 않아도 이 저작물을 상업적인 목적을 포함하여 모든 목적으로 복제, 수정·변경, 배포, 공연·실연할 수 있습니다.

    설명

    이 파일이 나타내는 바에 대한 한 줄 설명을 추가합니다
    Plot of stretched exponentials with varying exponents

    이 파일에 묘사된 항목

    다음을 묘사함

    image/svg+xml

    파일 역사

    날짜/시간 링크를 클릭하면 해당 시간의 파일을 볼 수 있습니다.

    날짜/시간섬네일크기사용자설명
    현재2025년 7월 24일 (목) 14:272025년 7월 24일 (목) 14:27 판의 섬네일536 × 396 (45 KB)wikimediacommons>LaundryPizza03Uploaded own work with UploadWizard

    이 파일을 사용하는 문서가 없습니다.