Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
scraly opened this issue Jul 11, 2017 · 1 comment

Comments

@scraly
Copy link

scraly commented Jul 11, 2017

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.

@DerTricker
Copy link

DerTricker commented Apr 27, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants