当前位置: 首页>>代码示例>>Python>>正文


Python CodeTools.PlottingManager类代码示例

本文整理汇总了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)
开发者ID:Delosari,项目名称:X_Bin,代码行数:31,代码来源:NuevoCodigo.py

示例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


注:本文中的CodeTools.PlottingManager类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。