Examples of IPlot


Examples of net.sf.latexdraw.glib.models.interfaces.shape.IPlot

    assertEquals(1, PSTParser.errorLogs().size());
  }


  @Test public void testPsplot() throws ParseException {
    final IPlot plot = (IPlot)parser.parsePSTCode("\\psplot{0}{720}{x sin}").get().getShapeAt(0); //$NON-NLS-1$
    assertTrue(PSTParser.errorLogs().isEmpty());
    assertEquals(0.0, plot.getPlotMinX(), 0.0);
    assertEquals(720.0, plot.getPlotMaxX(), 0.0);
    assertEquals("x sin", plot.getPlotEquation()); //$NON-NLS-1$
  }
View Full Code Here

Examples of net.sf.latexdraw.glib.models.interfaces.shape.IPlot

    assertEquals("x sin", plot.getPlotEquation()); //$NON-NLS-1$
  }


  @Test public void testPsplotNbPoints() throws ParseException {
    final IPlot plot = (IPlot)parser.parsePSTCode("\\psplot[plotpoints=213]{0}{720}{x sin}").get().getShapeAt(0); //$NON-NLS-1$
    assertTrue(PSTParser.errorLogs().isEmpty());
    assertEquals(213, plot.getNbPlottedPoints());
  }
View Full Code Here

Examples of net.sf.latexdraw.glib.models.interfaces.shape.IPlot

    assertEquals(213, plot.getNbPlottedPoints());
  }


  @Test public void testPsplotPlotStyleCurve() throws ParseException {
    final IPlot plot = (IPlot)parser.parsePSTCode("\\psplot[plotstyle=curve]{0}{720}{x sin}").get().getShapeAt(0); //$NON-NLS-1$
    assertTrue(PSTParser.errorLogs().isEmpty());
    assertEquals(IPlotProp.PlotStyle.CURVE, plot.getPlotStyle());
  }
View Full Code Here

Examples of net.sf.latexdraw.glib.models.interfaces.shape.IPlot

    assertTrue(PSTParser.errorLogs().isEmpty());
    assertEquals(IPlotProp.PlotStyle.CURVE, plot.getPlotStyle());
  }

  @Test public void testPsplotPlotStyleCCurve() throws ParseException {
    final IPlot plot = (IPlot)parser.parsePSTCode("\\psplot[plotstyle=ccurve]{0}{720}{x sin}").get().getShapeAt(0); //$NON-NLS-1$
    assertTrue(PSTParser.errorLogs().isEmpty());
    assertEquals(IPlotProp.PlotStyle.CCURVE, plot.getPlotStyle());
  }
View Full Code Here

Examples of net.sf.latexdraw.glib.models.interfaces.shape.IPlot

    assertTrue(PSTParser.errorLogs().isEmpty());
    assertEquals(IPlotProp.PlotStyle.CCURVE, plot.getPlotStyle());
  }

  @Test public void testPsplotPlotStyleECurve() throws ParseException {
    final IPlot plot = (IPlot)parser.parsePSTCode("\\psplot[plotstyle=ecurve]{0}{720}{x sin}").get().getShapeAt(0); //$NON-NLS-1$
    assertTrue(PSTParser.errorLogs().isEmpty());
    assertEquals(IPlotProp.PlotStyle.ECURVE, plot.getPlotStyle());
  }
View Full Code Here

Examples of net.sf.latexdraw.glib.models.interfaces.shape.IPlot

    assertTrue(PSTParser.errorLogs().isEmpty());
    assertEquals(IPlotProp.PlotStyle.ECURVE, plot.getPlotStyle());
  }

  @Test public void testPsplotPlotStyleDots() throws ParseException {
    final IPlot plot = (IPlot)parser.parsePSTCode("\\psplot[plotstyle=dots]{0}{720}{x sin}").get().getShapeAt(0); //$NON-NLS-1$
    assertTrue(PSTParser.errorLogs().isEmpty());
    assertEquals(IPlotProp.PlotStyle.DOTS, plot.getPlotStyle());
  }
View Full Code Here

Examples of net.sf.latexdraw.glib.models.interfaces.shape.IPlot

    assertTrue(PSTParser.errorLogs().isEmpty());
    assertEquals(IPlotProp.PlotStyle.DOTS, plot.getPlotStyle());
  }

  @Test public void testPsplotPlotStyleLine() throws ParseException {
    final IPlot plot = (IPlot)parser.parsePSTCode("\\psplot[plotstyle=line]{0}{720}{x sin}").get().getShapeAt(0); //$NON-NLS-1$
    assertTrue(PSTParser.errorLogs().isEmpty());
    assertEquals(IPlotProp.PlotStyle.LINE, plot.getPlotStyle());
  }
View Full Code Here

Examples of net.sf.latexdraw.glib.models.interfaces.shape.IPlot

    assertTrue(PSTParser.errorLogs().isEmpty());
    assertEquals(IPlotProp.PlotStyle.LINE, plot.getPlotStyle());
  }

  @Test public void testPsplotPlotStylePloygon() throws ParseException {
    final IPlot plot = (IPlot)parser.parsePSTCode("\\psplot[plotstyle=polygon]{0}{720}{x sin}").get().getShapeAt(0); //$NON-NLS-1$
    assertTrue(PSTParser.errorLogs().isEmpty());
    assertEquals(IPlotProp.PlotStyle.POLYGON, plot.getPlotStyle());
  }
View Full Code Here

Examples of net.sf.latexdraw.glib.models.interfaces.shape.IPlot

    assertTrue(PSTParser.errorLogs().isEmpty());
    assertEquals(IPlotProp.PlotStyle.POLYGON, plot.getPlotStyle());
  }

  @Test public void testPsplotXUnit() throws ParseException {
    final IPlot plot = (IPlot)parser.parsePSTCode("\\psplot[xunit=0.1]{0}{720}{x sin}").get().getShapeAt(0); //$NON-NLS-1$
    assertTrue(PSTParser.errorLogs().isEmpty());
    assertEquals(0.1, plot.getXScale(), 0.0);
  }
View Full Code Here

Examples of net.sf.latexdraw.glib.models.interfaces.shape.IPlot

    assertTrue(PSTParser.errorLogs().isEmpty());
    assertEquals(0.1, plot.getXScale(), 0.0);
  }

  @Test public void testPsplotYUnit() throws ParseException {
    final IPlot plot = (IPlot)parser.parsePSTCode("\\psplot[yunit=0.1]{0}{720}{x sin}").get().getShapeAt(0); //$NON-NLS-1$
    assertTrue(PSTParser.errorLogs().isEmpty());
    assertEquals(0.1, plot.getYScale(), 0.0);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.