gral icon indicating copy to clipboard operation
gral copied to clipboard

The import import de.erichseifert.gral.graphics.Histogram2D; cannot be resolved

Open scraly opened this issue 7 years ago • 1 comments

Hi,

when we try to create a class HistogramPlot which extends ExamplePanel, we have an issue in our IDE (and follow your examples).

The import import de.erichseifert.gral.graphics.Histogram2D; cannot be resolved.

scraly avatar Jul 11 '17 13:07 scraly

Hi, this probably comes pretty late. But maybe others have this issue, too. The Histogram2D class is not available anymore (it was in an older version). Simple Replace the "Histogram2D" to "Histogram1D". My Code there looks like this: Histogram1D histogram = new Histogram1D(data, Orientation.VERTICAL, new Number[] {-4.0, -3.2, -2.4, -1.6, -0.8, 0.0, 0.8, 1.6, 2.4, 3.6, 4.0}); DataSource histogram2d = new EnumeratedData(histogram, (-4.0 + -3.2)/2.0, 0.8); BarPlot plot = new BarPlot(histogram2d);

The rest is equal to the old file.

DerTricker avatar Apr 27 '19 10:04 DerTricker