File:Redshift vs cosmological distance (jpn).svg

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

Original file(SVG file, nominally 540 × 360 pixels, file size: 49 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description
日本語: 赤方偏移と宇宙論的距離の関係。平坦な宇宙および物質の密度パラメータ 0.315 を仮定した。
Date
Source Own work
Author Osanshouo

Licensing

[edit]
I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution
This file is licensed under the Creative Commons Attribution 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.

Source Code

[edit]
import numpy as np
import scipy.integrate as integrate
import matplotlib.pyplot as plt
plt.rcParams['font.family'] = "serif"
plt.rcParams['font.serif'] = ["Source Han Serif JP", "DejaVu Serif", ]
plt.rcParams["mathtext.fontset"] = "cm"
plt.rcParams["font.size"] = 12

c_per_H0 = 2.998e3 #[Mpc/h]
Omega_mat = 0.315
Omega_rad = 9.14E-5
Omega_lam = 1. - Omega_mat - Omega_rad

z_max = 7

def E(z):
    '''Hubble parameter per Hubble constant H(z)/H0'''
    return np.sqrt( Omega_lam + Omega_mat*(1.+z)**3 + Omega_rad*(1.+z)**4 )

z = np.linspace(0, z_max, 64)

def comoving(z):
    result, err = integrate.quad(lambda x: 1./E(x), 0, z)
    return c_per_H0 * result
comoving = np.vectorize(comoving)
x = comoving(z)

dl = (1. + z) * x
da = x / (1. + z)

fig = plt.figure(figsize=(6,4), )
ax = fig.add_subplot(111)

ax.plot(z, x,  c="#005aff", ls="-",  label="共動距離 $x$")
ax.plot(z, dl, c="#ff4b00", ls="-.", label="光度距離 $d_L$")
ax.plot(z, da, c="#03af7a", ls=":",  label="角径距離 $d_A$")
ax.set_xlim([0, z_max])
ax.set_ylim([0, 7e3])
fontsize = 13
ax.set_xlabel(r"赤方偏移 $z$", fontsize=fontsize)
ax.set_ylabel(r"距離 [$\mathrm{Mpc}/h$]", fontsize=fontsize)
ax.grid()
ax.legend(loc=7)

left=0.14
plt.subplots_adjust(bottom=0.15, left=left, right=1-left)

plt.plot()
#plt.show()
plt.savefig("redshift_vs_cosmological_distance_jpn.svg")
plt.close()

File history

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

Date/TimeThumbnailDimensionsUserComment
current08:29, 7 November 2022Thumbnail for version as of 08:29, 7 November 2022540 × 360 (49 KB)Osanshouo (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