Ejemplo 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')
Ejemplo 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')
Ejemplo n.º 3
0
 def test_ptraj_unicode_labels(self):
     # smoke test
     plots.plot_traj(self.sparse, mpp=0.5)
Ejemplo n.º 4
0
 def test_ptraj_empty(self):
     suppress_plotting()
     f = lambda: plots.plot_traj(DataFrame(columns=self.sparse.columns))
     self.assertRaises(ValueError, f)
Ejemplo n.º 5
0
 def test_labeling_sparse_trajectories(self):
     suppress_plotting()
     plots.plot_traj(self.sparse, label=True)
Ejemplo n.º 6
0
 def test_labeling_sparse_trajectories(self):
     suppress_plotting()
     plots.plot_traj(self.sparse, label=True)
Ejemplo n.º 7
0
 def test_ptraj_unicode_labels(self):
     # smoke test
     plots.plot_traj(self.sparse, mpp=0.5)
Ejemplo n.º 8
0
 def test_ptraj_empty(self):
     suppress_plotting()
     f = lambda: plots.plot_traj(DataFrame(columns=self.sparse.columns))
     self.assertRaises(ValueError, f)