jfreechart - How to use GridArrangement and BlockContainer -
i create mxn grid of charts - similar
for in m*n: ax = fig.add_subplot(m, n, + 1)
for matplotlib
there appears supporting classes - within org.jfree.chart.block
package. have been unable locate documentation, examples, testcases using arrangement/layout set of charts.
pointers appreciated.
this part of api rather low-level, , used internally jfreechart. example, gridarrangement
may used create particular legend layout, within chart.
in opinion, easiest way create grid of charts, use swing jpanel
, gridlayout
, , fill grid charts.
jpanel grid = new jpanel( new gridlayout(m,n) ); for(int i=0; i<m*n; i++) grid.add(new chartpanel(createchart(i)));
you can use combinedplot
. allows add many plots want, either layed out side-by-side, or stacked vertically (but not on grid, far know). thing approach plots directly share common axis, , aligned nicely. (but depends on problem: charts share 1 common axis ? perhaps 2 ?)
Comments
Post a Comment