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