-3
我下載了這個例子http://www.java2s.com/Code/Java/Chart/JFreeChartContourPlotDemo2.htm,只更改tmpDoubleYY,tmpDoubleXX,tmpDoubleZZ中的值與我自己的,但如何chage值到colorBar?Jfree海圖ColorBar的輪廓圖chage值
我下載了這個例子http://www.java2s.com/Code/Java/Chart/JFreeChartContourPlotDemo2.htm,只更改tmpDoubleYY,tmpDoubleXX,tmpDoubleZZ中的值與我自己的,但如何chage值到colorBar?Jfree海圖ColorBar的輪廓圖chage值
我的問題是如何與ContourPlot更改彩條(Z軸)的範圍,答案是:
public class Plot extends ContourPlot{
public Plot(ContourDataset dataset, ValueAxis domainAxis, ValueAxis rangeAxis, ColorBar colorBar, double colorBarMinValue, double colorBarMaxValue) {
super(dataset, domainAxis, rangeAxis, colorBar);
colorBar.setMaximumValue(colorBarMaxValue);
colorBar.setMinimumValue(colorBarMinValue);
}
}
你的問題可能不會得到儘可能關閉一個真正的問題,如果你沒有提供足夠的信息來說明你想要達到的目標(當然你嘗試過的) –