Exemplo n.º 1
0
	for j in range(len(pixA)):
		arrayA[j] = pixA[j]
		arrayB[j] = pixB[j]
	
	print "arrayA.length = " + str(len(pixA)) + ",  arrayA.length = " + str(len(pixB))
	twoDimArr = array([arrayA, arrayB], Class.forName('[D'))

	dataset.addSeries("roi: "+rois[i].getName(), twoDimArr)


# set the background color for the chart...
chart.setBackgroundPaint(Color.white);

plot = chart.getPlot()
plot.setBackgroundPaint(Color.white)
plot.setRangeGridlinesVisible(False)
plot.setAxisOffset(RectangleInsets.ZERO_INSETS)

# Make a buffered image, create imageplus and show
#bi = chart.createBufferedImage(600, 400) 
#imp = ImagePlus("Chart Test", bi)
#imp.show()

# Or show a JFreeChart ChartFrame
frame = ChartFrame("test", chart)
frame.pack()
frame.show()