Home » U++ Library support » ScatterDraw & ScatterCtrl » zooming produces too many labels on x axis
Re: zooming produces too many labels on x axis [message #44417 is a reply to message #44416] |
Mon, 09 March 2015 00:24  |
aftershock
Messages: 143 Registered: May 2008
|
Experienced Member |
|
|
I found the code
This is the fix of line 1138 in scatterDraw.cpp
Quote:if (!IsNull(maxMajorUnitsX)) {
if (xRange < 2*xMajorUnit)
xMajorUnit = xRange/maxMajorUnitsX;
else if (xRange/xMajorUnit > maxMajorUnitsX)
xMajorUnit = xRange/maxMajorUnitsX;
AdjustMinUnitX();
}
Probably similar fix needed for this
Quote:if (!IsNull(maxMajorUnitsY)) {
if (yRange < 2*yMajorUnit) {
yMajorUnit /= 5;
yMajorUnit2 /= 5;
} else if (yRange/yMajorUnit > maxMajorUnitsY) {
yMajorUnit *= 5;
yMajorUnit2 *= 5;
}
AdjustMinUnitY();
}
yMajorUnit = yRange/maxMajorUnitsy;
aftershock
[Updated on: Thu, 12 March 2015 09:49] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Jul 06 19:13:59 CEST 2025
Total time taken to generate the page: 0.03685 seconds
|