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
Jfreechart in Weka
-
- Posts: 1
- Joined: Mon May 09, 2016 4:35 pm
- antibot: No, of course not.
Re: Jfreechart in Weka
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!
-
- Posts: 1634
- Joined: Sat Feb 17, 2007 1:51 pm
Re: Jfreechart in Weka
To me, that sounds like a question to a weka forum.
Re: Jfreechart in Weka
they said the opposite in the wekalistparadoxoff wrote:To me, that sounds like a question to a weka forum.
-
- Posts: 1634
- Joined: Sat Feb 17, 2007 1:51 pm
Re: Jfreechart in Weka
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.
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.