another fix for Y ticks.

This commit is contained in:
Martin Preuss
2026-01-05 00:43:31 +01:00
parent aefbc413a6
commit 1ac5c428bd

View File

@@ -78,7 +78,7 @@
vRun+=vStep; \n vRun+=vStep; \n
} \n } \n
GWEN_Buffer_free(dbuf); \n GWEN_Buffer_free(dbuf); \n
return ($(struct_prefix)_HasAtLeastNLevelTicks(st, level, level?1:4))?1:0; \n return ($(struct_prefix)_HasAtLeastNLevelTicks(st, level, level?2:4))?1:0; \n
} \n } \n
</content> </content>
</inline> </inline>
@@ -110,7 +110,7 @@
vRun-=vStep; \n vRun-=vStep; \n
} \n } \n
GWEN_Buffer_free(dbuf); \n GWEN_Buffer_free(dbuf); \n
return ($(struct_prefix)_HasAtLeastNLevelTicks(st, level, level?1:4))?1:0; \n return ($(struct_prefix)_HasAtLeastNLevelTicks(st, level, level?2:4))?1:0; \n
} \n } \n
</content> </content>
</inline> </inline>
@@ -181,6 +181,8 @@
rv=_genLog10Ticks(st, vStart, v, vMin, vMax, nextLevel, st-&gt;precision); \n rv=_genLog10Ticks(st, vStart, v, vMin, vMax, nextLevel, st-&gt;precision); \n
if (rv) \n if (rv) \n
nextLevel++; \n nextLevel++; \n
else \n
$(struct_prefix)_RemoveLevelTicks(st, nextLevel); \n
v/=2.0; \n v/=2.0; \n
\n \n
if (nextLevel&gt;=3) \n if (nextLevel&gt;=3) \n
@@ -189,6 +191,8 @@
rv=_genLog10Ticks(st, vStart, v, vMin, vMax, nextLevel, st-&gt;precision); \n rv=_genLog10Ticks(st, vStart, v, vMin, vMax, nextLevel, st-&gt;precision); \n
if (rv) \n if (rv) \n
nextLevel++; \n nextLevel++; \n
else \n
$(struct_prefix)_RemoveLevelTicks(st, nextLevel); \n
v/=5.0; \n v/=5.0; \n
} /* for */ \n } /* for */ \n
} \n } \n