Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix some typos
  • Loading branch information
camdecoster committed Aug 27, 2025
commit 4c5c55efe5d7b5a1a85951bdfd0eae8f9c2407ff
2 changes: 1 addition & 1 deletion src/components/colorbar/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ function drawColorBar(g, opts, gd) {
ax.tickfont.size :
0
) + (
ax.ticks !== 'intside' ?
ax.ticks !== 'inside' ?
opts.ticklen || 0 :
0
);
Expand Down
2 changes: 1 addition & 1 deletion src/plot_api/plot_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ function assertExtendTracesArgs(gd, update, indices, maxPoints) {
(!(key in maxPoints) || !Array.isArray(maxPoints[key]) ||
maxPoints[key].length !== update[key].length)) {
throw new Error('when maxPoints is set as a key:value object it must contain a 1:1 ' +
'corrispondence with the keys and number of traces in the update object');
'correspondence with the keys and number of traces in the update object');
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions test/jasmine/tests/plot_api_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1903,12 +1903,12 @@ describe('Test plot api', function() {
expect(function() {
Plotly.extendTraces(gd, {x: [[1]]}, [0], {y: [1]});
}).toThrow(new Error('when maxPoints is set as a key:value object it must contain a 1:1 ' +
'corrispondence with the keys and number of traces in the update object'));
'correspondence with the keys and number of traces in the update object'));

expect(function() {
Plotly.extendTraces(gd, {x: [[1]]}, [0], {x: [1, 2]});
}).toThrow(new Error('when maxPoints is set as a key:value object it must contain a 1:1 ' +
'corrispondence with the keys and number of traces in the update object'));
'correspondence with the keys and number of traces in the update object'));
});

it('should throw an error when update keys mismatch trace keys', function() {
Expand Down