Coder Social home page Coder Social logo

Comments (2)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
Same problem with this: 
https://code.google.com/p/jmathplot/wiki/CustomPlotExample

Original comment by [email protected] on 6 Nov 2013 at 9:54

from jmathplot.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
The same problem with a scatter plot.

NetBeans 7.4 & Java 1.7
Windows 7 Home Premium

Code used:

double[] x={0.1,0.5,1,2.5,5,10,25,50};
double[] y={1633,7610,14930,35347,69403,141643,402754,850161};
Plot2DPanel plot=new Plot2DPanel();
plot.addScatterPlot("Tetrachloroethene",x,y);
BaseLabel title=new BaseLabel("Tetrachloroethene",Color.RED,0.5,1.1);
plot.addPlotable(title);
plot.setAxisLabels("Concentration (ug/L)","Response");
plot.getAxis(0).setLabelPosition(0.5,-0.15);
plot.getAxis(1).setLabelPosition(-0.15,0.5);
plot.getAxis(1).setLabelAngle(-PI/2);
JFrame frame=new JFrame("Plot");
frame.setSize(640,480);
frame.setContentPane(plot);
frame.setVisible(true);

Original comment by [email protected] on 11 Apr 2014 at 5:01

Attachments:

from jmathplot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.