@Test
public void testComputeDiagonal1()
{
final String X="axisX", Y="axisY";
final RGraph<Double> g=new RBagPlot(X,Y, new File("someName"));
g.setXboundaries(5.5, -34.);
g.setYboundaries(5.5, -34.);
g.add(5.5,34.);g.add(5.5,34.);g.add(5.5,2.);g.add(7.5,2.);
checkForCorrectException(new whatToRun() { public @Override void run() {
g.getDrawingCommand();
}},IllegalArgumentException.class,"empty");
}