* Bug #12119 fixed - bar and barh had wrong x/y bounds.
+* Bug #12166 fixed - There was a bad label with drawaxis.
+
* Bug #12179 fixed - Fix an incompatibility with MPI version of HDF5.
* Bug #11965 fixed - Export to SVG converted texts in shapes.
*/
private Vector3d computeTicksDirection(Axis.TicksDirection direction) {
switch (direction) {
- case TOP:
- return new Vector3d(0, +1, 0);
- case BOTTOM:
- return new Vector3d(0, -1, 0);
- case LEFT:
- return new Vector3d(-1, 0, 0);
- default:
- return new Vector3d(+1, 0, 0);
+ case TOP:
+ return new Vector3d(0, +1, 0);
+ case BOTTOM:
+ return new Vector3d(0, -1, 0);
+ case LEFT:
+ return new Vector3d(-1, 0, 0);
+ default:
+ return new Vector3d(+1, 0, 0);
}
}
// 0 <= value <= 1
// Should find right index through given labels.
String[] ticksLabel = axis.getTicksLabels();
- int index = (int) (value * (ticksLabel.length - 1));
+ int index = (int) Math.round(value * (ticksLabel.length - 1));
if ((index < 0) || (index > ticksLabel.length)) {
return null;
} else {