@@ -27,6 +27,9 @@ def test_mesh_base(self):
27
27
self .assertEqual (test_mesh_base .frequency_hz_ymax , 3 )
28
28
self .assertIsNone (test_mesh_base .colormap )
29
29
self .assertEqual (test_mesh_base .units_frequency , "Hz" )
30
+ test_mesh_base = pb .MeshBase (time = np .array ([0 , 1 , 2 , 3 ]), frequency = np .array ([0 , 1 , 2 , 3 ]))
31
+ self .assertEqual (test_mesh_base .frequency_hz_ymin , 1 )
32
+ self .assertEqual (test_mesh_base .frequency_hz_ymax , 3 )
30
33
31
34
def test_mesh_base_freq_scal (self ):
32
35
test_mesh_base = pb .MeshBase (time = np .array ([1 , 2 , 3 ]), frequency = np .array ([1 , 2 , 3 ]),
@@ -69,6 +72,7 @@ class MeshPanelTest(unittest.TestCase):
69
72
def test_mesh_panel (self ):
70
73
test_mesh_panel = pb .MeshPanel (tfr = np .array ([1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ]))
71
74
self .assertTrue (test_mesh_panel .is_auto_color_min_max ())
75
+ self .assertEqual (test_mesh_panel .panel_label_color , "k" )
72
76
73
77
def test_mesh_user_panel (self ):
74
78
test_mesh_panel = pb .MeshPanel (tfr = np .array ([1 , 2 , 3 ]), colormap_scaling = "user" , color_min = 5 , color_max = 10 )
@@ -85,7 +89,7 @@ class WaveformBaseTest(unittest.TestCase):
85
89
def test_waveform_base (self ):
86
90
test_wf_base = pb .WaveformPlotBase (station_id = "test" , figure_title = "test" )
87
91
self .assertFalse (test_wf_base .label_panel_show )
88
- self .assertIsNone (test_wf_base .labels_fontweight )
92
+ self .assertEqual (test_wf_base .labels_fontweight , "bold" )
89
93
self .assertIsNone (test_wf_base .waveform_color )
90
94
91
95
@@ -96,6 +100,7 @@ def test_waveform_panel(self):
96
100
self .assertEqual (test_wf_panel .label , "(wf)" )
97
101
self .assertEqual (test_wf_panel .yscaling , "auto" )
98
102
self .assertEqual (test_wf_panel .ytick_style , "plain" )
103
+ self .assertEqual (test_wf_panel .panel_label_color , "k" )
99
104
100
105
def test_waveform_panel_yscaling (self ):
101
106
test_wf_panel = pb .WaveformPanel (sig = np .array ([1 , 2 , 3 ]), time = np .array ([1 , 2 , 3 ]), yscaling = "test" )
0 commit comments