Jfreechart in Weka

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
XPeriment
Posts: 2
Joined: Sun May 15, 2016 6:20 pm
antibot: No, of course not.

Jfreechart in Weka

Post by XPeriment » Sun May 15, 2016 6:24 pm

Hey guys,

I've installed the Jfreechart package in Weka.
And I've created multiple ROC curves in the knowledge workflow of Weka.

However I want to change the graph background color as well as the lines width and colors.
In weka's GUI there's "Renderer options" which I currently put: -color=/last
But I don't know the other args that can be used in order to design my graph..

Please help,

thanks in advance
Amir

FatherLuke
Posts: 1
Joined: Mon May 09, 2016 4:35 pm
antibot: No, of course not.

Re: Jfreechart in Weka

Post by FatherLuke » Sun May 15, 2016 8:10 pm

I experience the same issue. Any help would be much appreciated.
Dixie Chicks are now in US! Look at Dixie Chicks tour dates so you won't miss any concert!

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: Jfreechart in Weka

Post by paradoxoff » Mon May 16, 2016 11:38 am

To me, that sounds like a question to a weka forum.

XPeriment
Posts: 2
Joined: Sun May 15, 2016 6:20 pm
antibot: No, of course not.

Re: Jfreechart in Weka

Post by XPeriment » Mon May 16, 2016 11:57 am

paradoxoff wrote:To me, that sounds like a question to a weka forum.
they said the opposite in the wekalist :)

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: Jfreechart in Weka

Post by paradoxoff » Tue May 17, 2016 10:27 am

Apparently, you are controlling the appearance of your chart from within the weka Gui by typing "-color=/last" somewhere in this Gui.
Since the command "-color=/last" is not part of the JFreeChart api (at least, I do not know any component in JFreeChart that can be configured in such a way), weka is apparently interpreting the "-color=/last" command and translates that to a call to the JFreeChart api. And this translation is obviously aprt of weka and not of JFreeChart.
Do you have a link to the weka forum where you asked that question?
[edit] I found this entry in the weka wiki, and also the source code for the JFreeChartOffscreenChartRenderer. The renderer doesn´t appear to directly allow a further fine tuning of the chart. But the renderer is internally using the ChartFactory of JFreeChart to create the charts. In order to get a different background color of the plot, you can create an instance of org.jfree.chart.StandardChartTheme, call setChartBackgroundPaint and setPlotBackgroundPaint on it, and finally call ChartFactory.setChartTheme(yourModifiedChartTheme).
The "only" problem that remains is how to integrate that code into a new JFreeChartOffscreenChartRenderer, and how to make weka use this new JFreeChartOffscreenChartRenderer. And this, finally, appears to be a wquestion for the weka experts.

Locked