Esempio n. 1
0
 def test_ptraj_t_column(self):
     suppress_plotting()
     df = self.sparse.copy()
     cols = list(df.columns)
     cols[cols.index('frame')] = 'arbitrary name'
     df.columns = cols
     plots.plot_traj(df, t_column='arbitrary name')
Esempio n. 2
0
 def test_ptraj_t_column(self):
     suppress_plotting()
     df = self.sparse.copy()
     cols = list(df.columns)
     cols[cols.index('frame')] = 'arbitrary name'
     df.columns = cols
     plots.plot_traj(df, t_column='arbitrary name')
Esempio n. 3
0
 def test_ptraj_unicode_labels(self):
     # smoke test
     plots.plot_traj(self.sparse, mpp=0.5)
Esempio n. 4
0
 def test_ptraj_empty(self):
     suppress_plotting()
     f = lambda: plots.plot_traj(DataFrame(columns=self.sparse.columns))
     self.assertRaises(ValueError, f)
Esempio n. 5
0
 def test_labeling_sparse_trajectories(self):
     suppress_plotting()
     plots.plot_traj(self.sparse, label=True)
Esempio n. 6
0
 def test_labeling_sparse_trajectories(self):
     suppress_plotting()
     plots.plot_traj(self.sparse, label=True)
Esempio n. 7
0
 def test_ptraj_unicode_labels(self):
     # smoke test
     plots.plot_traj(self.sparse, mpp=0.5)
Esempio n. 8
0
 def test_ptraj_empty(self):
     suppress_plotting()
     f = lambda: plots.plot_traj(DataFrame(columns=self.sparse.columns))
     self.assertRaises(ValueError, f)