def test_beef_hull_plot(self):
    ' Test plotting BEEF hull. '
    from matador.hull import EnsembleHull
    from matador.scrapers import castep2dict
    expected_file = 'KP_beef_hull.svg'
    (cursor, s) = castep2dict((REAL_PATH + 'data/beef_files/*.castep'), db=False)
    self.assertEqual(len(s), 0)
    beef_hull = EnsembleHull(cursor, '_beef', elements=['K', 'P'], num_samples=10, energy_key='total_energy_per_atom', parameter_key='thetas')
    beef_hull.plot_hull(svg=True)
    self.assertTrue(os.path.isfile(expected_file))
Test plotting BEEF hull.
def test_beef_hull_plot(self):
    '  '
    from matador.hull import EnsembleHull
    from matador.scrapers import castep2dict
    expected_file = 'KP_beef_hull.svg'
    (cursor, s) = castep2dict((REAL_PATH + 'data/beef_files/*.castep'), db=False)
    self.assertEqual(len(s), 0)
    beef_hull = EnsembleHull(cursor, '_beef', elements=['K', 'P'], num_samples=10, energy_key='total_energy_per_atom', parameter_key='thetas')
    beef_hull.plot_hull(svg=True)
    self.assertTrue(os.path.isfile(expected_file))