pyR2D2.color.color Module
Provides pyR2D2 default blind-oriented color set. Set can be use for plotting.
Name |
value |
---|---|
blue |
‘#7b85d4’ |
orange |
‘#7b85d4’ |
green |
‘#83c995’ |
magenta |
‘#d7369e’ |
gray |
‘#c4c9d8’ |
ash |
‘#859795’ |
yellow |
‘#e9d943’ |
brown |
‘#ad5d50’ |
Example
import pyR2D2
import matplotlib.pyplot as plt
plt.plot(x,y,color=pyR2D2.color.blue)
Notes
This table is obtained from https://github.com/matplotlib/matplotlib/issues/9460
pyR2D2.constant.constant Module
Provides Sun-related constants
Name |
description |
value |
---|---|---|
MSUN |
Solar mass [g] |
1.988e33 |
RSUN |
Solar radius [cm] |
6.957e10 |
LSUN |
Solar luminosity [erg/s] |
3.828e33 |
ASUN |
Solar age [yr] |
4.570e9 |
Example
import pyR2D2
print(pyR2D2.constant.lsun)