diff --git a/src/plots/cartesian/axes.js b/src/plots/cartesian/axes.js index bd872d7f9af..a09a719b403 100644 --- a/src/plots/cartesian/axes.js +++ b/src/plots/cartesian/axes.js @@ -1705,7 +1705,7 @@ axes.doTicks = function(gd, axid, skipTitle) { labelShift = ax.ticklen * Math.sin(caRad); } - if(ax.ticks === 'outside' || ax.showline) { + if(ax.showticklabels && (ax.ticks === 'outside' || ax.showline)) { labelStandoff += 0.2 * ax.tickfont.size; } diff --git a/tasks/util/container_commands.js b/tasks/util/container_commands.js index 39c96676186..b4f1f3e3429 100644 --- a/tasks/util/container_commands.js +++ b/tasks/util/container_commands.js @@ -59,11 +59,13 @@ function getRunCI(commands) { commands = ['export CIRCLECI=1', containerCommands.cdHome].concat(commands); var commandsJoined = '"' + commands.join(' && ') + '"'; + var containerId = '$(docker inspect --format \'{{.Id}}\' ' + constants.testContainerName + ')'; return [ 'sudo', - 'lxc-attach -n', - '$(docker inspect --format \'{{.Id}}\' ' + constants.testContainerName + ')', + 'lxc-attach', + '-n', containerId, + '-f', '/var/lib/docker/containers/' + containerId + '/config.lxc', '-- bash -c', commandsJoined ].join(' '); diff --git a/test/image/baselines/axes_line_noticklabels.png b/test/image/baselines/axes_line_noticklabels.png new file mode 100644 index 00000000000..20ca059a88c Binary files /dev/null and b/test/image/baselines/axes_line_noticklabels.png differ diff --git a/test/image/mocks/axes_line_noticklabels.json b/test/image/mocks/axes_line_noticklabels.json new file mode 100644 index 00000000000..d55bbb48270 --- /dev/null +++ b/test/image/mocks/axes_line_noticklabels.json @@ -0,0 +1,18 @@ +{ + "data": [{ + "x": [0, 1, 2, 3, 4, 5, 6, 7, 8], + "y": [0, 1, 2, 3, 4, 5, 6, 7, 8] + }], + "layout": { + "xaxis": { + "title": "x axis line w/o tick labels", + "showline": true, + "showticklabels": false + }, + "yaxis": { + "title": "y axis line w/o tick labels", + "showline": true, + "showticklabels": false + } + } +}