Forum & Documentation

User login

BasicPlotter.interpolateLine does wrong cast

This code looks bad (in org.knime.base.node.viz.plotter.basic.BasicPlotter.interpolateLine(BasicDrawingElement, boolean, boolean)):
double x1 = ((DoubleCell)domainValues.get(i).getX())
.getDoubleValue();
double y1 = ((DoubleCell)domainValues.get(i).getY())
.getDoubleValue();
double x2 = ((DoubleCell)domainValues.get(i + 1).getX())
.getDoubleValue();
double y2 = ((DoubleCell)domainValues.get(i + 1).getY())
.getDoubleValue();

The casts should be to DoubleValues. (This causes problems in some views, like the Hierarchical Clustering node's Distance view's changing the mapping method on any axis.)

Hi aborg, the reported bug is

Hi aborg, the reported bug is fixed as of KNIME v2.0.2. Enjoy and thanks again! Best, Fabian

Not at all. This is one of

Not at all. This is one of the advantages of open source projects. :)

You are absolutely right! It

You are absolutely right! It looks really really ugly. Thank you very much for this bug report - it will be fixed as soon as possible! It's great to get such useful feedback from you! Thanks again.