I think my problem is that the renderer for the plot is null and the data is 
therefore not displayed. I have tried with the following but the result is red 
lines on a gray background - not black diamonds on a white background :(

Any suggestions as to what I am doing wrong?

        // set the plot properties
        plot = new IDAXYPlot(dataset, rtRange, mzRange, xAxis, yAxis);
        plot.setBackgroundPaint(Color.white);
        plot.setDomainGridlinesVisible(false);
        plot.setRangeGridlinesVisible(false);

        // set XY plot renderer
        XYItemRenderer renderer = new StandardXYItemRenderer();
        renderer.setSeriesShape(0, ShapeUtilities.createDiamond(5));
        renderer.setSeriesPaint(0, Color.black);
        plot.setRenderer(renderer);

/Thomas

-----Original Message-----
From: TFRD (Thomas Franck Dyrlund) [mailto:t...@steno.dk] 
Sent: 10. juli 2015 09:22
To: Developer discussion
Subject: Re: [Mzmine-devel] XYZSeries

I have my data in my IDADataSet where I have defined the getX(), getY() and 
getZ() functions. But when I run the module no data is shown in the plot. Can 
you see what I am doing wrong?

/Thomas

-----Original Message-----
From: Tomas Pluskal [mailto:plu...@gmail.com]
Sent: 9. juli 2015 18:19
To: Developer discussion
Subject: Re: [Mzmine-devel] XYZSeries

Hi Thomas,

> I am stuck at how       to write each pair of x,y data to the chart as data 
> points - please see IDAXYPlot.java. Can you help?

I am not sure if I understand the question. You should have your data in the 
data set. Then you add the data set to the plot. There is no need to add the 
data points to the plot - the plot should automatically obtain them from the 
data set.

Best,

Tomas

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that you need 
to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Mzmine-devel mailing list
Mzmine-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mzmine-devel

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that you need 
to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Mzmine-devel mailing list
Mzmine-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mzmine-devel

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Mzmine-devel mailing list
Mzmine-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mzmine-devel

Reply via email to