Example #1
0
 def test_pivot(self, nodeid):
     tephigram = Tephigram()
     tprofile = tephigram.plot(self.temps)
     tprofile.barbs(self.barbs, gutter=0.2, pivot="tip", length=8)
     dprofile = tephigram.plot(self.dews)
     dprofile.barbs(self.barbs, gutter=0.3, pivot="middle", length=8)
     self.check_graphic(nodeid)
Example #2
0
 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()
Example #3
0
 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()
Example #4
0
 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()
Example #5
0
 def test_plot_temps_custom(self):
     tpg = Tephigram()
     tpg.plot(self.temps,
              label='Dry-bulb temperature',
              linewidth=2,
              color='red',
              marker='o')
     self.check_graphic()
Example #6
0
 def test_plot_dews_custom(self):
     tpg = Tephigram()
     tpg.plot(self.dews,
              label='Dew-point temperature',
              linewidth=2,
              color='blue',
              marker='s')
     self.check_graphic()
Example #7
0
 def test_plot_temps_custom(self, nodeid):
     tephigram = Tephigram()
     tephigram.plot(
         self.temps,
         label="Dry-bulb temperature",
         linewidth=2,
         color="red",
         marker="o",
     )
     self.check_graphic(nodeid)
Example #8
0
 def test_plot_dews_custom(self, nodeid):
     tephigram = Tephigram()
     tephigram.plot(
         self.dews,
         label="Dew-point temperature",
         linewidth=2,
         color="blue",
         marker="s",
     )
     self.check_graphic(nodeid)
Example #9
0
 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()
Example #10
0
 def test_barbs_from_file(self, nodeid):
     tephigram = Tephigram()
     dews = _expected_barbs.T[:, :2]
     barbs = np.column_stack(
         (_expected_barbs[2], _expected_barbs[3], _expected_barbs[0]))
     profile = tephigram.plot(dews)
     profile.barbs(barbs, zorder=10)
     self.check_graphic(nodeid)
Example #11
0
 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()
Example #12
0
 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()
Example #13
0
 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()
Example #14
0
 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()
Example #15
0
 def test_color(self, nodeid):
     tephigram = Tephigram()
     profile = tephigram.plot(self.temps)
     profile.barbs(self.barbs, color="green", zorder=10)
     self.check_graphic(nodeid)
Example #16
0
 def test_plot_dews_locator_isotherm_object(self):
     tpg = Tephigram(isotherm_locator=tephi.Locator(10))
     tpg.plot(self.dews)
     self.check_graphic()
Example #17
0
 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()
Example #18
0
 def test_length(self, nodeid):
     tephigram = Tephigram()
     profile = tephigram.plot(self.temps)
     profile.barbs(self.barbs, gutter=0.9, length=10, zorder=10)
     self.check_graphic(nodeid)
Example #19
0
 def test_plot_dews_temps(self, nodeid):
     tephigram = Tephigram()
     tephigram.plot(self.dews)
     tephigram.plot(self.temps)
     self.check_graphic(nodeid)
Example #20
0
 def test_plot_anchor(self, nodeid):
     tephigram = Tephigram(anchor=[(1000, 0), (300, 0)])
     tephigram.plot(self.dews)
     self.check_graphic(nodeid)
Example #21
0
 def test_plot_temps_label(self):
     tpg = Tephigram()
     tpg.plot(self.temps, label='Dry-bulb temperature')
     self.check_graphic()
Example #22
0
 def test_plot_dews_locator_adiabat_object(self):
     tpg = Tephigram(dry_adiabat_locator=tephi.Locator(10))
     tpg.plot(self.dews)
     self.check_graphic()
Example #23
0
 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()
Example #24
0
 def test_plot_dews_temps(self):
     tpg = Tephigram()
     tpg.plot(self.dews)
     tpg.plot(self.temps)
     self.check_graphic()
Example #25
0
 def test_color(self):
     tpg = Tephigram()
     profile = tpg.plot(self.temps)
     profile.barbs(self.barbs, color='green', zorder=10)
     self.check_graphic()
Example #26
0
 def test_plot_temps_label(self, nodeid):
     tephigram = Tephigram()
     tephigram.plot(self.temps, label="Dry-bulb temperature")
     self.check_graphic(nodeid)
Example #27
0
 def test_plot_dews_label(self, nodeid):
     tephigram = Tephigram()
     tephigram.plot(self.dews, label="Dew-point temperature")
     self.check_graphic(nodeid)
Example #28
0
 def test_barbs(self):
     tpg = Tephigram()
     profile = tpg.plot(self.temps)
     profile.barbs(self.barbs, zorder=10)
     self.check_graphic()
Example #29
0
 def test_plot_anchor(self):
     tpg = Tephigram(anchor=[(1000, 0), (300, 0)])
     tpg.plot(self.dews)
     self.check_graphic()
Example #30
0
 def test_plot_temps_label(self):
     tpg = Tephigram()
     tpg.plot(self.temps, label='Dry-bulb temperature')
     self.check_graphic()
Example #31
0
 def test_plot_dews_locator_adiabat_object(self):
     tpg = Tephigram(dry_adiabat_locator=tephi.Locator(10))
     tpg.plot(self.dews)
     self.check_graphic()
Example #32
0
 def test_plot_dews_label(self):
     tpg = Tephigram()
     tpg.plot(self.dews, label='Dew-point temperature')
     self.check_graphic()
Example #33
0
 def test_color(self):
     tpg = Tephigram()
     profile = tpg.plot(self.temps)
     profile.barbs(self.barbs, color='green', zorder=10)
     self.check_graphic()
Example #34
0
 def test_plot_dews_locator_isotherm_object(self):
     tpg = Tephigram(isotherm_locator=tephi.Locator(10))
     tpg.plot(self.dews)
     self.check_graphic()
Example #35
0
 def test_plot_dews_label(self):
     tpg = Tephigram()
     tpg.plot(self.dews, label='Dew-point temperature')
     self.check_graphic()
Example #36
0
 def test_plot_dews_locator_numeric(self):
     tpg = Tephigram(isotherm_locator=10, dry_adiabat_locator=10)
     tpg.plot(self.dews)
     self.check_graphic()
Example #37
0
 def test_plot_dews_locator_numeric(self):
     tpg = Tephigram(isotherm_locator=10, dry_adiabat_locator=10)
     tpg.plot(self.dews)
     self.check_graphic()
Example #38
0
 def test_plot_anchor(self):
     tpg = Tephigram(anchor=[(1000, 0), (300, 0)])
     tpg.plot(self.dews)
     self.check_graphic()
Example #39
0
 def test_plot_dews_locator_isotherm_object(self, nodeid):
     tephigram = Tephigram(isotherm_locator=tephi.Locator(10))
     tephigram.plot(self.dews)
     self.check_graphic(nodeid)
Example #40
0
 def test_barbs(self):
     tpg = Tephigram()
     profile = tpg.plot(self.temps)
     profile.barbs(self.barbs, zorder=10)
     self.check_graphic()
Example #41
0
 def test_plot_dews_locator_adiabat_object(self, nodeid):
     tephigram = Tephigram(dry_adiabat_locator=tephi.Locator(10))
     tephigram.plot(self.dews)
     self.check_graphic(nodeid)
Example #42
0
 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()
Example #43
0
 def test_plot_dews_locator_numeric(self, nodeid):
     tephigram = Tephigram(isotherm_locator=10, dry_adiabat_locator=10)
     tephigram.plot(self.dews)
     self.check_graphic(nodeid)
Example #44
0
 def test_plot_dews_locator_object(self, nodeid):
     locator = tephi.Locator(10)
     tephigram = Tephigram(isotherm_locator=locator,
                           dry_adiabat_locator=locator)
     tephigram.plot(self.dews)
     self.check_graphic(nodeid)
Example #45
0
 def test_plot_dews_temps(self):
     tpg = Tephigram()
     tpg.plot(self.dews)
     tpg.plot(self.temps)
     self.check_graphic()