本文整理汇总了Python中tephi.Tephigram类的典型用法代码示例。如果您正苦于以下问题:Python Tephigram类的具体用法?Python Tephigram怎么用?Python Tephigram使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Tephigram类的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: test_plot_dews_temps_custom
def test_plot_dews_temps_custom(self):
tpg = Tephigram()
tpg.plot(self.dews, label='Dew-point temperature', linewidth=2,
color='blue', marker='s')
tpg.plot(self.temps, label='Dry-bulb temperature', linewidth=2,
color='red', marker='o')
self.check_graphic()
开发者ID:SciTools,项目名称:tephi,代码行数:7,代码来源:test_tephigram.py
示例2: test_barbs_from_file
def test_barbs_from_file(self):
tpg = Tephigram()
dews = zip(_expected_barbs[0], _expected_barbs[1])
barbs = zip(_expected_barbs[2], _expected_barbs[3], _expected_barbs[0])
profile = tpg.plot(dews)
profile.barbs(barbs, zorder=10)
self.check_graphic()
开发者ID:dkillick,项目名称:tephi,代码行数:7,代码来源:test_tephigram.py
示例3: test_pivot
def test_pivot(self):
tpg = Tephigram()
tprofile = tpg.plot(self.temps)
tprofile.barbs(self.barbs, gutter=0.2, pivot='tip', length=8)
dprofile = tpg.plot(self.dews)
dprofile.barbs(self.barbs, gutter=0.3, pivot='middle', length=8)
self.check_graphic()
开发者ID:Izanna,项目名称:tephi,代码行数:7,代码来源:test_tephigram.py
示例4: test_barbs_from_file
def test_barbs_from_file(self):
tpg = Tephigram()
dews = _expected_barbs.T[:, :2]
barbs = np.column_stack((_expected_barbs[2],
_expected_barbs[3],
_expected_barbs[0]))
profile = tpg.plot(dews)
profile.barbs(barbs, zorder=10)
self.check_graphic()
开发者ID:Izanna,项目名称:tephi,代码行数:9,代码来源:test_tephigram.py
示例5: test_rotate
def test_rotate(self):
tpg = Tephigram()
profile = tpg.plot(self.temps)
profile.barbs([(0, 0, 900),
(1, 30, 850),
(5, 60, 800),
(10, 90, 750),
(15, 120, 700),
(20, 150, 650),
(25, 180, 600),
(30, 210, 550),
(35, 240, 500),
(40, 270, 450),
(45, 300, 400),
(50, 330, 350),
(55, 360, 300)], zorder=10)
self.check_graphic()
开发者ID:Izanna,项目名称:tephi,代码行数:17,代码来源:test_tephigram.py
示例6: test_length
def test_length(self):
tpg = Tephigram()
profile = tpg.plot(self.temps)
profile.barbs(self.barbs, gutter=0.9, length=10, zorder=10)
self.check_graphic()
开发者ID:Izanna,项目名称:tephi,代码行数:5,代码来源:test_tephigram.py
示例7: test_barbs
def test_barbs(self):
tpg = Tephigram()
profile = tpg.plot(self.temps)
profile.barbs(self.barbs, zorder=10)
self.check_graphic()
开发者ID:Izanna,项目名称:tephi,代码行数:5,代码来源:test_tephigram.py
示例8: test_plot_anchor
def test_plot_anchor(self):
tpg = Tephigram(anchor=[(1000, 0), (300, 0)])
tpg.plot(self.dews)
self.check_graphic()
开发者ID:Izanna,项目名称:tephi,代码行数:4,代码来源:test_tephigram.py
示例9: test_plot_dews_locator_object
def test_plot_dews_locator_object(self):
locator = tephi.Locator(10)
tpg = Tephigram(isotherm_locator=locator, dry_adiabat_locator=locator)
tpg.plot(self.dews)
self.check_graphic()
开发者ID:Izanna,项目名称:tephi,代码行数:5,代码来源:test_tephigram.py
示例10: test_plot_dews_locator_adiabat_object
def test_plot_dews_locator_adiabat_object(self):
tpg = Tephigram(dry_adiabat_locator=tephi.Locator(10))
tpg.plot(self.dews)
self.check_graphic()
开发者ID:Izanna,项目名称:tephi,代码行数:4,代码来源:test_tephigram.py
示例11: test_plot_dews_locator_isotherm_object
def test_plot_dews_locator_isotherm_object(self):
tpg = Tephigram(isotherm_locator=tephi.Locator(10))
tpg.plot(self.dews)
self.check_graphic()
开发者ID:Izanna,项目名称:tephi,代码行数:4,代码来源:test_tephigram.py
示例12: test_plot_temps_label
def test_plot_temps_label(self):
tpg = Tephigram()
tpg.plot(self.temps, label='Dry-bulb temperature')
self.check_graphic()
开发者ID:Izanna,项目名称:tephi,代码行数:4,代码来源:test_tephigram.py
示例13: test_plot_dews_label
def test_plot_dews_label(self):
tpg = Tephigram()
tpg.plot(self.dews, label='Dew-point temperature')
self.check_graphic()
开发者ID:Izanna,项目名称:tephi,代码行数:4,代码来源:test_tephigram.py
示例14: test_plot_dews_temps
def test_plot_dews_temps(self):
tpg = Tephigram()
tpg.plot(self.dews)
tpg.plot(self.temps)
self.check_graphic()
开发者ID:Izanna,项目名称:tephi,代码行数:5,代码来源:test_tephigram.py
示例15: test_color
def test_color(self):
tpg = Tephigram()
profile = tpg.plot(self.temps)
profile.barbs(self.barbs, color='green', zorder=10)
self.check_graphic()
开发者ID:Izanna,项目名称:tephi,代码行数:5,代码来源:test_tephigram.py
示例16: test_plot_dews_locator_numeric
def test_plot_dews_locator_numeric(self):
tpg = Tephigram(isotherm_locator=10, dry_adiabat_locator=10)
tpg.plot(self.dews)
self.check_graphic()
开发者ID:Izanna,项目名称:tephi,代码行数:4,代码来源:test_tephigram.py
示例17: test_plot_temps_custom
def test_plot_temps_custom(self):
tpg = Tephigram()
tpg.plot(self.temps, label='Dry-bulb emperature', linewidth=2, color='red', marker='o')
self.check_graphic()
开发者ID:dkillick,项目名称:tephi,代码行数:4,代码来源:test_tephigram.py
注:本文中的tephi.Tephigram类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论