Example #1
0
 def test_alphanumeric_arrow_labels_using_ax(self):
     orig_fig, ax = plt.subplots()
     fig, pos = plot_markov_model(self.P,
                                  arrow_labels=self.P_mfpt,
                                  arrow_label_format='mfpts = %f frames',
                                  ax=ax)
     assert type(fig) is matplotlib.figure.Figure
     assert fig == orig_fig
Example #2
0
 def test_alphanumeric_arrow_labels(self):
     fig, pos = plot_markov_model(self.P,
                                  arrow_labels=self.P_mfpt,
                                  arrow_label_format='mfpts = %f frames')
     assert type(fig) is matplotlib.figure.Figure
Example #3
0
 def test_forced_no_arrows_labels(self):
     fig, pos = plot_markov_model(self.P, arrow_labels=None)
     assert type(fig) is matplotlib.figure.Figure
Example #4
0
 def test_numeric_arrow_labels(self):
     fig, pos = plot_markov_model(self.P, arrow_labels=self.P)
     assert type(fig) is matplotlib.figure.Figure
Example #5
0
 def test_plot_markov_model(self):
     fig, pos = plot_markov_model(self.P)
     assert type(fig) is matplotlib.figure.Figure