use of net.sf.latexdraw.model.api.shape.Plot in project latexdraw by arnobl.
the class TestParsingPlotCommands method testPsplotNotPolar.
@Test
public void testPsplotNotPolar() {
parser("\\psplot[polarplot=false]{0}{720}{x sin}");
final Plot plot = getShapeAt(0);
assertFalse(plot.isPolar());
}
use of net.sf.latexdraw.model.api.shape.Plot in project latexdraw by arnobl.
the class TestParsingPlotCommands method testPsplotStar.
@Test
public void testPsplotStar() {
parser("\\psplot*[plotpoints=200]{0}{720}{x sin}");
final Plot plot = getShapeAt(0);
assertEquals(0d, plot.getPlotMinX(), 0.00001);
assertEquals(720d, plot.getPlotMaxX(), 0.00001);
assertEquals("x sin", plot.getPlotEquation());
assertEquals(FillingStyle.PLAIN, plot.getFillingStyle());
}
use of net.sf.latexdraw.model.api.shape.Plot in project latexdraw by arnobl.
the class TestParsingPlotCommands method testPsplotNbPoints.
@Test
public void testPsplotNbPoints() {
parser("\\psplot[plotpoints=213]{0}{720}{x sin}");
final Plot plot = getShapeAt(0);
assertEquals(213, plot.getNbPlottedPoints());
}
use of net.sf.latexdraw.model.api.shape.Plot in project latexdraw by arnobl.
the class TestParsingPlotCommands method testPsplot.
@Test
public void testPsplot() {
parser("\\psplot{0}{720}{x sin}");
final Plot plot = getShapeAt(0);
assertEquals(0d, plot.getPlotMinX(), 0.00001);
assertEquals(720d, plot.getPlotMaxX(), 0.00001);
assertEquals("x sin", plot.getPlotEquation());
}
use of net.sf.latexdraw.model.api.shape.Plot in project latexdraw by arnobl.
the class TestParsingPlotCommands method testPsplotYUnit.
@Test
public void testPsplotYUnit() {
parser("\\psplot[yunit=0.1]{0}{720}{x sin}");
final Plot plot = getShapeAt(0);
assertEquals(0.1, plot.getYScale(), 0.00001);
}
Aggregations