Hi,
i want to draw my curves (sin, cos, ...) sinusoidal. That means, i need a method like creatScatterPlot, or createLineChart of the class ChartFactory to do that.
Is there such a thing?
when no, how can i do that mit JFreeChart?
Thanks
kalissow
sinusoidal curve mit JFreeChart ???
Hi,
We are using a a class that extends "AbstractXYDataset" combined with a XYPlot to draw our curves (like sin or cos). see post "low values in a XYPlot, axis range limitation" to see the results.
does it help ?
Hugues.
We are using a a class that extends "AbstractXYDataset" combined with a XYPlot to draw our curves (like sin or cos). see post "low values in a XYPlot, axis range limitation" to see the results.
does it help ?
Hugues.
SAMTECH, Integrating CAE towards Professional Solutions : www.samcef.com
this is our java class to store the values.
with methods like :public class FunctionViewerData extends AbstractXYDataset{
private Vector<double[]> myXDataVector;
private Vector<double[]> myYDataVector;
then a frame with :/*
* get the number of point in a function
*/
public int getItemCount(int n){
...
/**
* get the ith X value
*/
public double getXValue(int theSeries,int theItem){
myXYPlot = new XYPlot();
myXYPlot.setDataset("aninstanceofFunctionViewerData );
myChart = new JFreeChart(myTitle, myFont, myXYPlot, true);
SAMTECH, Integrating CAE towards Professional Solutions : www.samcef.com