Skip to content

Commit 89a2d91

Browse files
committed
skipticklabels > ticklabelstep
1 parent a72616a commit 89a2d91

17 files changed

+34
-34
lines changed

src/components/colorbar/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ module.exports = overrideAll({
166166
ticklen: axesAttrs.ticklen,
167167
tickwidth: axesAttrs.tickwidth,
168168
tickcolor: axesAttrs.tickcolor,
169-
skipticklabels: axesAttrs.skipticklabels,
169+
ticklabelstep: axesAttrs.ticklabelstep,
170170
showticklabels: axesAttrs.showticklabels,
171171
tickfont: fontAttrs({
172172
description: 'Sets the color bar\'s tick label font'

src/components/colorbar/draw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ function mockColorBarAxis(gd, opts, zrange) {
933933
showticklabels: opts.showticklabels,
934934
ticklabelposition: opts.ticklabelposition,
935935
ticklabeloverflow: opts.ticklabeloverflow,
936-
skipticklabels: opts.skipticklabels,
936+
ticklabelstep: opts.ticklabelstep,
937937
tickfont: opts.tickfont,
938938
tickangle: opts.tickangle,
939939
tickformat: opts.tickformat,

src/plots/cartesian/axes.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ axes.calcTicks = function calcTicks(ax, opts) {
835835
x = axes.tickIncrement(x, ax.dtick, !axrev, ax.calendar);
836836
}
837837

838-
var skipticklabels = ax.skipticklabels;
838+
var ticklabelstep = ax.ticklabelstep;
839839

840840
var maxTicks = Math.max(1000, ax._length || 0);
841841
var tickVals = [];
@@ -887,7 +887,7 @@ axes.calcTicks = function calcTicks(ax, opts) {
887887
value: x
888888
};
889889

890-
if(skipticklabels && (id % (skipticklabels + 1))) {
890+
if(ticklabelstep && (id % (ticklabelstep + 1))) {
891891
obj.skipLabel = true;
892892
}
893893

@@ -3007,7 +3007,7 @@ axes.drawLabels = function(gd, ax, opts) {
30073007
var axLetter = axId.charAt(0);
30083008
var cls = opts.cls || axId + 'tick';
30093009

3010-
var vals = ax.skipticklabels ?
3010+
var vals = ax.ticklabelstep ?
30113011
opts.vals.filter(function(d) { return !d.skipLabel; }) :
30123012
opts.vals;
30133013

src/plots/cartesian/layout_attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ module.exports = {
412412
'To set ticks every 4 years, set `dtick` to *M48*'
413413
].join(' ')
414414
},
415-
skipticklabels: {
415+
ticklabelstep: {
416416
valType: 'integer',
417417
min: 0,
418418
dflt: 0,

src/plots/cartesian/tick_label_defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module.exports = function handleTickLabelDefaults(containerIn, containerOut, coe
2828
color: dfltFontColor
2929
});
3030

31-
if(!options.noSkipticklabels) coerce('skipticklabels');
31+
if(!options.noTicklabelstep) coerce('ticklabelstep');
3232

3333
if(!options.noAng) coerce('tickangle');
3434

src/plots/gl3d/layout/axis_defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module.exports = function supplyLayoutDefaults(layoutIn, layoutOut, options) {
4343
showGrid: true,
4444
noTickson: true,
4545
noTicklabelmode: true,
46-
noSkipticklabels: true,
46+
noTicklabelstep: true,
4747
noTicklabelposition: true,
4848
noTicklabeloverflow: true,
4949
bgColor: options.bgColor,

src/plots/polar/layout_attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var axisTickAttrs = overrideAll({
3232
ticklen: axesAttrs.ticklen,
3333
tickwidth: axesAttrs.tickwidth,
3434
tickcolor: axesAttrs.tickcolor,
35-
skipticklabels: axesAttrs.skipticklabels,
35+
ticklabelstep: axesAttrs.ticklabelstep,
3636
showticklabels: axesAttrs.showticklabels,
3737
showtickprefix: axesAttrs.showtickprefix,
3838
tickprefix: axesAttrs.tickprefix,

src/plots/smith/layout_defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function handleDefaults(contIn, contOut, coerce, opts) {
8383
}
8484

8585
handleTickLabelDefaults(axIn, axOut, coerceAxis, axOut.type, {
86-
noSkipticklabels: true,
86+
noTicklabelstep: true,
8787
noAng: !isRealAxis,
8888
noExp: true,
8989
font: {

src/plots/ternary/layout_attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var ternaryAxesAttrs = {
2525
ticklen: axesAttrs.ticklen,
2626
tickwidth: axesAttrs.tickwidth,
2727
tickcolor: axesAttrs.tickcolor,
28-
skipticklabels: axesAttrs.skipticklabels,
28+
ticklabelstep: axesAttrs.ticklabelstep,
2929
showticklabels: axesAttrs.showticklabels,
3030
showtickprefix: axesAttrs.showtickprefix,
3131
tickprefix: axesAttrs.tickprefix,

src/traces/carpet/ab_defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function mimickAxisDefaults(traceIn, traceOut, fullLayout, dfltColor) {
3030
var axOut = Template.newContainer(traceOut, axName);
3131

3232
var defaultOptions = {
33-
noSkipticklabels: true,
33+
noTicklabelstep: true,
3434
tickfont: 'x',
3535
id: axLetter + 'axis',
3636
letter: axLetter,

0 commit comments

Comments
 (0)