@@ -14,7 +14,7 @@ const version_id = 'dev',
1414
1515/** @summary version date
1616 * @desc Release date in format day/month/year like '14/04/2022' */
17- version_date = '10/03 /2026',
17+ version_date = '8/04 /2026',
1818
1919/** @summary version id and date
2020 * @desc Produced by concatenation of {@link version_id} and {@link version_date}
@@ -81644,8 +81644,12 @@ class JSRootMenu {
8164481644 addTAxisMenu(EAxisBits, painter, faxis, kind, axis_painter, frame_painter) {
8164581645 const is_gaxis = faxis._typename === clTGaxis;
8164681646
81647- this.add('Divisions', () => this.input('Set Ndivisions', faxis.fNdivisions, 'int', 0).then(val => {
81648- faxis.fNdivisions = val; painter.interactiveRedraw('pad', `exec:SetNdivisions(${val})`, kind);
81647+ this.add('Divisions', () => this.input('Set Ndivisions', is_gaxis ? faxis.fNdiv : faxis.fNdivisions, 'int').then(val => {
81648+ if (is_gaxis)
81649+ faxis.fNdiv = val;
81650+ else
81651+ faxis.fNdivisions = val;
81652+ painter.interactiveRedraw('pad', `exec:SetNdivisions(${val})`, kind);
8164981653 }));
8165081654
8165181655 if (kind !== 'v') {
@@ -82990,7 +82994,7 @@ const AxisPainterMethods = {
8299082994
8299182995 /** @summary Produce axis ticks */
8299282996 produceTicks(ndiv, ndiv2) {
82993- if (!this.noticksopt) {
82997+ if (!this.noticksopt && !this.exact_ticks ) {
8299482998 const total = ndiv * (ndiv2 || 1);
8299582999
8299683000 if (this.log)
@@ -83263,14 +83267,18 @@ class TAxisPainter extends ObjectPainter {
8326383267 else
8326483268 this.gr = this.func;
8326583269
83266- delete this.format;// remove formatting func
83270+ delete this.format; // remove formatting func
8326783271
8326883272 let ndiv = 508;
8326983273 if (this.is_gaxis)
8327083274 ndiv = axis.fNdiv;
8327183275 else if (axis)
83272- ndiv = axis.fNdivisions ? Math.max(axis.fNdivisions, 4) : 0 ;
83276+ ndiv = axis.fNdivisions;
8327383277
83278+ this.exact_ticks = ndiv < 0;
83279+ if (this.exact_ticks)
83280+ ndiv = Math.abs(ndiv);
83281+ ndiv = Math.max(ndiv, 4);
8327483282 this.nticks = ndiv % 100;
8327583283 this.nticks2 = (ndiv % 10000 - this.nticks) / 100;
8327683284 this.nticks3 = Math.floor(ndiv / 10000);
0 commit comments