Skip to content

Commit 1ef3c78

Browse files
authored
Merge pull request #8123 from Lexachoc/fix-typo-in-contour
docs: fix typos in `contour` trace
2 parents 1a6dd12 + 53a2b8a commit 1ef3c78

4 files changed

Lines changed: 24 additions & 24 deletions

File tree

‎src/traces/contour/attributes.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ module.exports = extendFlat(
4545
hovertemplatefallback: heatmapAttrs.hovertemplatefallback,
4646
texttemplate: extendFlat({}, heatmapAttrs.texttemplate, {
4747
description: [
48-
'For this trace it only has an effect if `coloring` is set to *heatmap*.',
48+
'For this trace it only has an effect if `contours.coloring` is set to *heatmap*.',
4949
heatmapAttrs.texttemplate.description
5050
].join(' ')
5151
}),
5252
texttemplatefallback: heatmapAttrs.texttemplatefallback,
5353
textfont: extendFlat({}, heatmapAttrs.textfont, {
5454
description: [
55-
'For this trace it only has an effect if `coloring` is set to *heatmap*.',
55+
'For this trace it only has an effect if `contours.coloring` is set to *heatmap*.',
5656
heatmapAttrs.textfont.description
5757
].join(' ')
5858
}),
@@ -203,7 +203,7 @@ module.exports = extendFlat(
203203

204204
'*[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]`',
205205

206-
'*][*, *)(*, *](*, *)[* keep regions outside `value[0]` to value[1]`',
206+
'*][*, *)(*, *](*, *)[* keep regions outside `value[0]` to `value[1]`',
207207

208208
'Open vs. closed intervals make no difference to constraint display, but',
209209
'all versions are allowed.'
@@ -243,9 +243,9 @@ module.exports = extendFlat(
243243
min: 0,
244244
editType: 'style+colorbars',
245245
description: [
246-
'Sets the contour line width in (in px)',
246+
'Sets the contour line width (in px)',
247247
'Defaults to *0.5* when `contours.type` is *levels*.',
248-
'Defaults to *2* when `contour.type` is *constraint*.'
248+
'Defaults to *2* when `contours.type` is *constraint*.'
249249
].join(' ')
250250
},
251251
dash: dash,

‎src/traces/contour/convert_to_constraints.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = function(pathinfo, operation) {
2323
Lib.warn('Contour data invalid for the specified inequality operation.');
2424
}
2525

26-
// In this case there should be exactly one contour levels in pathinfo.
26+
// In this case there should be exactly one contour level in pathinfo.
2727
// We flip all of the data. This will draw the contour as closed.
2828
pi0 = pathinfo[0];
2929

‎src/types/generated/schema.d.ts‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2797,7 +2797,7 @@ export interface ContourData {
27972797
/** Sets the contour label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. */
27982798
labelformat?: string;
27992799
/**
2800-
* Sets the constraint operation. *=* keeps regions equal to `value` *<* and *<=* keep regions less than `value` *>* and *>=* keep regions greater than `value` *[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]` *][*, *)(*, *](*, *)[* keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed.
2800+
* Sets the constraint operation. *=* keeps regions equal to `value` *<* and *<=* keep regions less than `value` *>* and *>=* keep regions greater than `value` *[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]` *][*, *)(*, *](*, *)[* keep regions outside `value[0]` to `value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed.
28012801
* @default '='
28022802
*/
28032803
operation?: '=' | '<' | '>=' | '>' | '<=' | '[]' | '()' | '[)' | '(]' | '][' | ')(' | '](' | ')[';
@@ -2904,7 +2904,7 @@ export interface ContourData {
29042904
*/
29052905
smoothing?: number;
29062906
/**
2907-
* Sets the contour line width in (in px) Defaults to *0.5* when `contours.type` is *levels*. Defaults to *2* when `contour.type` is *constraint*.
2907+
* Sets the contour line width (in px) Defaults to *0.5* when `contours.type` is *levels*. Defaults to *2* when `contours.type` is *constraint*.
29082908
* Minimum: 0
29092909
*/
29102910
width?: number;
@@ -2942,9 +2942,9 @@ export interface ContourData {
29422942
showscale?: boolean;
29432943
/** Sets the text elements associated with each z value. */
29442944
text?: Datum[] | Datum[][] | TypedArray;
2945-
/** For this trace it only has an effect if `coloring` is set to *heatmap*. Sets the text font. */
2945+
/** For this trace it only has an effect if `contours.coloring` is set to *heatmap*. Sets the text font. */
29462946
textfont?: Font;
2947-
/** For this trace it only has an effect if `coloring` is set to *heatmap*. Template string used for rendering the information text that appears on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can't be found will be replaced with the specifier. For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. All attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `x`, `y`, `z` and `text`. */
2947+
/** For this trace it only has an effect if `contours.coloring` is set to *heatmap*. Template string used for rendering the information text that appears on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can't be found will be replaced with the specifier. For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. All attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `x`, `y`, `z` and `text`. */
29482948
texttemplate?: string;
29492949
/**
29502950
* Fallback string that's displayed when a variable referenced in a template is missing. If the boolean value 'false' is passed in, the specifier with the missing variable will be displayed.
@@ -3138,7 +3138,7 @@ export interface ContourcarpetData {
31383138
/** Sets the contour label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. */
31393139
labelformat?: string;
31403140
/**
3141-
* Sets the constraint operation. *=* keeps regions equal to `value` *<* and *<=* keep regions less than `value` *>* and *>=* keep regions greater than `value` *[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]` *][*, *)(*, *](*, *)[* keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed.
3141+
* Sets the constraint operation. *=* keeps regions equal to `value` *<* and *<=* keep regions less than `value` *>* and *>=* keep regions greater than `value` *[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]` *][*, *)(*, *](*, *)[* keep regions outside `value[0]` to `value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed.
31423142
* @default '='
31433143
*/
31443144
operation?: '=' | '<' | '>=' | '>' | '<=' | '[]' | '()' | '[)' | '(]' | '][' | ')(' | '](' | ')[';
@@ -3227,7 +3227,7 @@ export interface ContourcarpetData {
32273227
*/
32283228
smoothing?: number;
32293229
/**
3230-
* Sets the contour line width in (in px) Defaults to *0.5* when `contours.type` is *levels*. Defaults to *2* when `contour.type` is *constraint*.
3230+
* Sets the contour line width (in px) Defaults to *0.5* when `contours.type` is *levels*. Defaults to *2* when `contours.type` is *constraint*.
32313231
* Minimum: 0
32323232
*/
32333233
width?: number;
@@ -4677,7 +4677,7 @@ export interface Histogram2dcontourData {
46774677
/** Sets the contour label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. */
46784678
labelformat?: string;
46794679
/**
4680-
* Sets the constraint operation. *=* keeps regions equal to `value` *<* and *<=* keep regions less than `value` *>* and *>=* keep regions greater than `value` *[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]` *][*, *)(*, *](*, *)[* keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed.
4680+
* Sets the constraint operation. *=* keeps regions equal to `value` *<* and *<=* keep regions less than `value` *>* and *>=* keep regions greater than `value` *[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]` *][*, *)(*, *](*, *)[* keep regions outside `value[0]` to `value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed.
46814681
* @default '='
46824682
*/
46834683
operation?: '=' | '<' | '>=' | '>' | '<=' | '[]' | '()' | '[)' | '(]' | '][' | ')(' | '](' | ')[';
@@ -4823,9 +4823,9 @@ export interface Histogram2dcontourData {
48234823
* @default true
48244824
*/
48254825
showscale?: boolean;
4826-
/** For this trace it only has an effect if `coloring` is set to *heatmap*. Sets the text font. */
4826+
/** For this trace it only has an effect if `contours.coloring` is set to *heatmap*. Sets the text font. */
48274827
textfont?: Font;
4828-
/** For this trace it only has an effect if `coloring` is set to *heatmap*. Template string used for rendering the information text that appears on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can't be found will be replaced with the specifier. For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. All attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `x`, `y`, `z` and `text`. */
4828+
/** For this trace it only has an effect if `contours.coloring` is set to *heatmap*. Template string used for rendering the information text that appears on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can't be found will be replaced with the specifier. For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. All attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `x`, `y`, `z` and `text`. */
48294829
texttemplate?: string;
48304830
/**
48314831
* Fallback string that's displayed when a variable referenced in a template is missing. If the boolean value 'false' is passed in, the specifier with the missing variable will be displayed.

0 commit comments

Comments
 (0)