本文整理匯總了Python中CodeTools.PlottingManager類的典型用法代碼示例。如果您正苦於以下問題:Python PlottingManager類的具體用法?Python PlottingManager怎麽用?Python PlottingManager使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了PlottingManager類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: mAB_to_ergs
import CodeTools.PlottingManager as plotMan
import numpy as np
def mAB_to_ergs(Flux_Ab):
Exponent = -0.4 * (Flux_Ab + 48.6)
Flux_Erg = np.power(10, Exponent)
return Flux_Erg
# Data search configuration
Pv = plotMan.myPickle()
# Generate figures
Pv.FigFormat_One(ColorConf="Day1")
c_AperS = 2.99792458e18 # A / s
Night1_Folder = "/home/vital/Astrodata/WHT_HII_Galaxies/HII_WHT_2012_12/Noche1/Blue/"
Night2_Folder = "/home/vital/Astrodata/WHT_HII_Galaxies/HII_WHT_2012_12/Noche2/Blue/"
# --------------------------------NIGHT 1-----------------------------------------
# StarFile_1 = 'a_std_wolf.dat'
# StarSpectra = 'Star_Wolf_wide_cr_f_a_bg0001_fxW_v1.fits'
# Title = 'Wolf 1346 flux calibration comparison with reference Night 1'
# Folder = Night1_Folder
#
# WaveTheo, FluxTheo_AB = np.loadtxt(Folder + StarFile_1, comments='#', usecols = (0, 1), unpack=True)
示例2: Galaxy_Properties
#!/usr/bin/python
import CodeTools.MethodsPyplot as mp
import matplotlib.pyplot as plt
from PipeLineMethods.ManageFlow import DataToTreat
import CodeTools.PlottingManager as plotMan
import PipeLineMethods.pyFlow_Configuration as pyFlowMan
import AstroTools.AstroClass as astrotools
import AstroTools.ScienceClass as mathtools
# Data search configuration
PipeManager = pyFlowMan.FlowManager()
PlotVector = plotMan.myPickle()
Astro = astrotools.AstroPythonMethods()
vit = mathtools.FittingMethods()
def Galaxy_Properties():
#This method contains the redshift calculated from the emission lines and the EBV from the dust maps.
#It must be recalculated
GalaxyList=["obj52703-612v1_z0.009_EBV0.0097",
"obj52703-612v2_z0.009_EBV0.0097",
"obj51991-224_z0.102_EBV0.0176 ",
"obj51959-092_z0.042_EBV0.0267 ",
"obj52235-602_z0.024_EBV0.0266",
"obj52319-521_z0.033_EBV0.0247",
"objSHOC575_z0.016_EBV0.0331",
"objSHOC593_z0.028058_EBV0.1013",
"objSHOC036_z0.037519_EBV0.0235",
開發者ID:Delosari,項目名稱:X_Bin,代碼行數:31,代碼來源:A0_FitsProperties_2_Log+(foreshadowing-G750JX's+conflicted+copy+2014-10-14).py