Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9b725c4

Browse files
committed
rerun all examples with run.py / test-publish.
1 parent 3684ff7 commit 9b725c4

File tree

1,711 files changed

+4329
-2558
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,711 files changed

+4329
-2558
lines changed

auto-docs/callbacks/callbacks-subsection-placeholder/callbacks-example-placeholder/js/code.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
var plotly = require('plotly')('TestBot', 'r1neazxo9w')
23
var trace1 = {
34
x: [1, 2, 3, 4],
@@ -12,7 +13,7 @@ var trace2 = {
1213
type: "scatter"
1314
};
1415
var data = [trace1, trace2];
15-
var graph_options = {auto_open: false, fileopt: "overwrite", filename: "callbacks-example-placeholder"}
16+
var graph_options = {fileopt: "overwrite", filename: "callbacks-example-placeholder"}
1617
plotly.plot(data, graph_options, function (err, msg) {
1718
console.log(msg);
1819
});

auto-docs/chart-types/area/basic-area/js/code.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
var plotly = require('plotly')('TestBot', 'r1neazxo9w')
23
var trace1 = {
34
x: [1, 2, 3, 4],
@@ -12,7 +13,7 @@ var trace2 = {
1213
type: "scatter"
1314
};
1415
var data = [trace1, trace2];
15-
var graph_options = {auto_open: false, fileopt: "overwrite", filename: "basic-area"}
16+
var graph_options = {fileopt: "overwrite", filename: "basic-area"}
1617
plotly.plot(data, graph_options, function (err, msg) {
1718
console.log(msg);
1819
});

auto-docs/chart-types/area/basic-area/julia/code.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ using Plotly
22
{% if not username %}# Fill in with your personal username and API key
33
# or, use this public demo account
44
{% endif %}Plotly.signin({% if username %}"{{username}}"{% else %}"Julia-Demo-Account"{% endif %}, {% if api_key %}"{{api_key}}"{% else %}"hvkrsbg3uj"{% endif %})
5+
56
trace1 = [
67
"x" => [1, 2, 3, 4],
78
"y" => [0, 2, 3, 5],
@@ -15,5 +16,5 @@ trace2 = [
1516
"type" => "scatter"
1617
]
1718
data = [trace1, trace2]
18-
response = Plotly.plot(data, ["auto_open" => false, "fileopt" => "overwrite", "filename" => "basic-area"])
19+
response = Plotly.plot(data, ["fileopt" => "overwrite", "filename" => "basic-area"])
1920
plot_url = response["url"]

auto-docs/chart-types/area/basic-area/matlab/code.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{% if not username %}% Fill in with your personal username and API key
22
% or, use this public demo account
33
{% endif %}signin({% if username %}'{{username}}'{% else %}'MATLAB-Demo-Account'{% endif %}, {% if api_key %}'{{api_key}}'{% else %}'p42phiifti'{% endif %})
4+
45
trace1 = struct(...
56
'x', [1, 2, 3, 4], ...
67
'y', [0, 2, 3, 5], ...
@@ -12,5 +13,5 @@ trace2 = struct(...
1213
'fill', 'tonexty', ...
1314
'type', 'scatter');
1415
data = {trace1, trace2};
15-
response = plotly(data, struct('auto_open', false, 'fileopt', 'overwrite', 'filename', 'basic-area'));
16+
response = plotly(data, struct('fileopt', 'overwrite', 'filename', 'basic-area'));
1617
plot_url = response.url

auto-docs/chart-types/area/basic-area/nodejs/code.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{% if not username %}// Fill in with your personal username and API key
22
// or, use this public demo account
33
{% endif %}var plotly = require('plotly')({% if username %}'{{username}}'{% else %}'Node.js-Demo-Account'{% endif %},{% if api_key %}'{{api_key}}'{% else %}'dvlqkmw0zm'{% endif %});
4+
45
var trace1 = {
56
x: [1, 2, 3, 4],
67
y: [0, 2, 3, 5],
@@ -14,7 +15,7 @@ var trace2 = {
1415
type: "scatter"
1516
};
1617
var data = [trace1, trace2];
17-
var graph_options = {auto_open: false, fileopt: "overwrite", filename: "basic-area"}
18+
var graph_options = {fileopt: "overwrite", filename: "basic-area"}
1819
plotly.plot(data, graph_options, function (err, msg) {
1920
console.log(msg);
2021
});

auto-docs/chart-types/area/basic-area/python/code.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ from plotly.graph_objs import *
33
{% if not username %}# Fill in with your personal username and API key
44
# or, use this public demo account
55
{% endif %}py.sign_in({% if username %}"{{username}}"{% else %}'Python-Demo-Account'{% endif %}, {% if api_key %}"{{api_key}}"{% else %}'gwt101uhh0'{% endif %})
6+
67
trace1 = Scatter(
78
x=[1, 2, 3, 4],
89
y=[0, 2, 3, 5],
@@ -14,4 +15,4 @@ trace2 = Scatter(
1415
fill='tonexty'
1516
)
1617
data = Data([trace1, trace2])
17-
plot_url = py.plot(data, auto_open=False, filename='basic-area')
18+
plot_url = py.plot(data, filename='basic-area')

auto-docs/chart-types/area/basic-area/r/code.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ library(plotly)
22
{% if not username %}# Fill in with your personal username and API key
33
# or, use this public demo account
44
{% endif %}py <- plotly(username={% if username %}"{{username}}"{% else %}'R-Demo-Account'{% endif %}, key={% if api_key %}"{{api_key}}"{% else %}'yu680v5eii'{% endif %})
5+
56
trace1 <- list(
67
x = c(1, 2, 3, 4),
78
y = c(0, 2, 3, 5),
@@ -15,5 +16,5 @@ trace2 <- list(
1516
type = "scatter"
1617
)
1718
data <- list(trace1, trace2)
18-
response <- p$plotly(data, kwargs=list(auto_open=FALSE, fileopt="overwrite", filename="basic-area"))
19+
response <- p$plotly(data, kwargs=list(fileopt="overwrite", filename="basic-area"))
1920
url <- response$url

auto-docs/chart-types/bar/bar-marker-array/js/code.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
var plotly = require('plotly')('TestBot', 'r1neazxo9w')
23
var data = [
34
{
@@ -7,7 +8,7 @@ var data = [
78
type: "bar"
89
}
910
];
10-
var graph_options = {auto_open: false, fileopt: "overwrite", filename: "bar-marker-array"}
11+
var graph_options = {fileopt: "overwrite", filename: "bar-marker-array"}
1112
plotly.plot(data, graph_options, function (err, msg) {
1213
console.log(msg);
1314
});

auto-docs/chart-types/bar/bar-marker-array/julia/code.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ using Plotly
22
{% if not username %}# Fill in with your personal username and API key
33
# or, use this public demo account
44
{% endif %}Plotly.signin({% if username %}"{{username}}"{% else %}"Julia-Demo-Account"{% endif %}, {% if api_key %}"{{api_key}}"{% else %}"hvkrsbg3uj"{% endif %})
5+
56
data = [
67
[
78
"x" => [1, 2, 3, 4],
@@ -10,5 +11,5 @@ data = [
1011
"type" => "bar"
1112
]
1213
]
13-
response = Plotly.plot(data, ["auto_open" => false, "fileopt" => "overwrite", "filename" => "bar-marker-array"])
14+
response = Plotly.plot(data, ["fileopt" => "overwrite", "filename" => "bar-marker-array"])
1415
plot_url = response["url"]
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{% if not username %}% Fill in with your personal username and API key
22
% or, use this public demo account
33
{% endif %}signin({% if username %}'{{username}}'{% else %}'MATLAB-Demo-Account'{% endif %}, {% if api_key %}'{{api_key}}'{% else %}'p42phiifti'{% endif %})
4+
45
data = {...
56
struct(...
67
'x', [1, 2, 3, 4], ...
78
'y', [5, 4, -3, 2], ...
89
'marker', struct('color', { {'#447adb', '#447adb', '#db5a44', '#447adb'} }), ...
910
'type', 'bar')...
1011
};
11-
response = plotly(data, struct('auto_open', false, 'fileopt', 'overwrite', 'filename', 'bar-marker-array'));
12+
response = plotly(data, struct('fileopt', 'overwrite', 'filename', 'bar-marker-array'));
1213
plot_url = response.url
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{% if not username %}// Fill in with your personal username and API key
22
// or, use this public demo account
33
{% endif %}var plotly = require('plotly')({% if username %}'{{username}}'{% else %}'Node.js-Demo-Account'{% endif %},{% if api_key %}'{{api_key}}'{% else %}'dvlqkmw0zm'{% endif %});
4+
45
var data = [
56
{
67
x: [1, 2, 3, 4],
@@ -9,7 +10,7 @@ var data = [
910
type: "bar"
1011
}
1112
];
12-
var graph_options = {auto_open: false, fileopt: "overwrite", filename: "bar-marker-array"}
13+
var graph_options = {fileopt: "overwrite", filename: "bar-marker-array"}
1314
plotly.plot(data, graph_options, function (err, msg) {
1415
console.log(msg);
1516
});

auto-docs/chart-types/bar/bar-marker-array/python/code.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ from plotly.graph_objs import *
33
{% if not username %}# Fill in with your personal username and API key
44
# or, use this public demo account
55
{% endif %}py.sign_in({% if username %}"{{username}}"{% else %}'Python-Demo-Account'{% endif %}, {% if api_key %}"{{api_key}}"{% else %}'gwt101uhh0'{% endif %})
6+
67
data = Data([
78
Bar(
89
x=[1, 2, 3, 4],
@@ -12,4 +13,4 @@ data = Data([
1213
)
1314
)
1415
])
15-
plot_url = py.plot(data, auto_open=False, filename='bar-marker-array')
16+
plot_url = py.plot(data, filename='bar-marker-array')

auto-docs/chart-types/bar/bar-marker-array/r/code.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ library(plotly)
22
{% if not username %}# Fill in with your personal username and API key
33
# or, use this public demo account
44
{% endif %}py <- plotly(username={% if username %}"{{username}}"{% else %}'R-Demo-Account'{% endif %}, key={% if api_key %}"{{api_key}}"{% else %}'yu680v5eii'{% endif %})
5+
56
data <- list(
67
list(
78
x = c(1, 2, 3, 4),
@@ -10,5 +11,5 @@ data <- list(
1011
type = "bar"
1112
)
1213
)
13-
response <- p$plotly(data, kwargs=list(auto_open=FALSE, fileopt="overwrite", filename="bar-marker-array"))
14+
response <- p$plotly(data, kwargs=list(fileopt="overwrite", filename="bar-marker-array"))
1415
url <- response$url

auto-docs/chart-types/bar/bar-with-hover-text/julia/code.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ using Plotly
22
{% if not username %}# Fill in with your personal username and API key
33
# or, use this public demo account
44
{% endif %}Plotly.signin({% if username %}"{{username}}"{% else %}"Julia-Demo-Account"{% endif %}, {% if api_key %}"{{api_key}}"{% else %}"hvkrsbg3uj"{% endif %})
5+
56
data = [
67
[
78
"x" => ["Liam", "Sophie", "Jacob", "Mia", "William", "Olivia"],
@@ -22,5 +23,5 @@ layout = [
2223
],
2324
"bargap" => 0.05
2425
]
25-
response = Plotly.plot(data, ["layout" => layout, "auto_open" => false, "fileopt" => "overwrite", "filename" => "bar-with-hover-text"])
26+
response = Plotly.plot(data, ["layout" => layout, "fileopt" => "overwrite", "filename" => "bar-with-hover-text"])
2627
plot_url = response["url"]

auto-docs/chart-types/bar/bar-with-hover-text/matlab/code.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{% if not username %}% Fill in with your personal username and API key
22
% or, use this public demo account
33
{% endif %}signin({% if username %}'{{username}}'{% else %}'MATLAB-Demo-Account'{% endif %}, {% if api_key %}'{{api_key}}'{% else %}'p42phiifti'{% endif %})
4+
45
data = {...
56
struct(...
67
'x', { {'Liam', 'Sophie', 'Jacob', 'Mia', 'William', 'Olivia'} }, ...
@@ -18,5 +19,5 @@ layout = struct(...
1819
'zeroline', false, ...
1920
'gridwidth', 2), ...
2021
'bargap', 0.05);
21-
response = plotly(data, struct('layout', layout, 'auto_open', false, 'fileopt', 'overwrite', 'filename', 'bar-with-hover-text'));
22+
response = plotly(data, struct('layout', layout, 'fileopt', 'overwrite', 'filename', 'bar-with-hover-text'));
2223
plot_url = response.url

auto-docs/chart-types/bar/bar-with-hover-text/nodejs/code.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{% if not username %}// Fill in with your personal username and API key
22
// or, use this public demo account
33
{% endif %}var plotly = require('plotly')({% if username %}'{{username}}'{% else %}'Node.js-Demo-Account'{% endif %},{% if api_key %}'{{api_key}}'{% else %}'dvlqkmw0zm'{% endif %});
4+
45
var data = [
56
{
67
x: ["Liam", "Sophie", "Jacob", "Mia", "William", "Olivia"],
@@ -21,7 +22,7 @@ var layout = {
2122
},
2223
bargap: 0.05
2324
};
24-
var graph_options = {layout: layout, auto_open: false, fileopt: "overwrite", filename: "bar-with-hover-text"}
25+
var graph_options = {layout: layout, fileopt: "overwrite", filename: "bar-with-hover-text"}
2526
plotly.plot(data, graph_options, function (err, msg) {
2627
console.log(msg);
2728
});

auto-docs/chart-types/bar/bar-with-hover-text/python/code.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ from plotly.graph_objs import *
33
{% if not username %}# Fill in with your personal username and API key
44
# or, use this public demo account
55
{% endif %}py.sign_in({% if username %}"{{username}}"{% else %}'Python-Demo-Account'{% endif %}, {% if api_key %}"{{api_key}}"{% else %}'gwt101uhh0'{% endif %})
6+
67
data = Data([
78
Bar(
89
x=['Liam', 'Sophie', 'Jacob', 'Mia', 'William', 'Olivia'],
@@ -29,4 +30,4 @@ layout = Layout(
2930
bargap=0.05
3031
)
3132
fig = Figure(data=data, layout=layout)
32-
plot_url = py.plot(fig, auto_open=False, filename='bar-with-hover-text')
33+
plot_url = py.plot(fig, filename='bar-with-hover-text')

auto-docs/chart-types/bar/bar-with-hover-text/r/code.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ library(plotly)
22
{% if not username %}# Fill in with your personal username and API key
33
# or, use this public demo account
44
{% endif %}py <- plotly(username={% if username %}"{{username}}"{% else %}'R-Demo-Account'{% endif %}, key={% if api_key %}"{{api_key}}"{% else %}'yu680v5eii'{% endif %})
5+
56
data <- list(
67
list(
78
x = c("Liam", "Sophie", "Jacob", "Mia", "William", "Olivia"),
@@ -22,5 +23,5 @@ layout <- list(
2223
),
2324
bargap = 0.05
2425
)
25-
response <- p$plotly(data, kwargs=list(layout=layout, auto_open=FALSE, fileopt="overwrite", filename="bar-with-hover-text"))
26+
response <- p$plotly(data, kwargs=list(layout=layout, fileopt="overwrite", filename="bar-with-hover-text"))
2627
url <- response$url
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
var plotly = require('plotly')('TestBot', 'r1neazxo9w')
23
var data = [
34
{
@@ -6,7 +7,7 @@ var data = [
67
type: "bar"
78
}
89
];
9-
var graph_options = {auto_open: false, fileopt: "overwrite", filename: "basic-bar"}
10+
var graph_options = {fileopt: "overwrite", filename: "basic-bar"}
1011
plotly.plot(data, graph_options, function (err, msg) {
1112
console.log(msg);
1213
});

auto-docs/chart-types/bar/basic-bar/julia/code.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ using Plotly
22
{% if not username %}# Fill in with your personal username and API key
33
# or, use this public demo account
44
{% endif %}Plotly.signin({% if username %}"{{username}}"{% else %}"Julia-Demo-Account"{% endif %}, {% if api_key %}"{{api_key}}"{% else %}"hvkrsbg3uj"{% endif %})
5+
56
data = [
67
[
78
"x" => ["giraffes", "orangutans", "monkeys"],
89
"y" => [20, 14, 23],
910
"type" => "bar"
1011
]
1112
]
12-
response = Plotly.plot(data, ["auto_open" => false, "fileopt" => "overwrite", "filename" => "basic-bar"])
13+
response = Plotly.plot(data, ["fileopt" => "overwrite", "filename" => "basic-bar"])
1314
plot_url = response["url"]
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{% if not username %}% Fill in with your personal username and API key
22
% or, use this public demo account
33
{% endif %}signin({% if username %}'{{username}}'{% else %}'MATLAB-Demo-Account'{% endif %}, {% if api_key %}'{{api_key}}'{% else %}'p42phiifti'{% endif %})
4+
45
data = {...
56
struct(...
67
'x', { {'giraffes', 'orangutans', 'monkeys'} }, ...
78
'y', [20, 14, 23], ...
89
'type', 'bar')...
910
};
10-
response = plotly(data, struct('auto_open', false, 'fileopt', 'overwrite', 'filename', 'basic-bar'));
11+
response = plotly(data, struct('fileopt', 'overwrite', 'filename', 'basic-bar'));
1112
plot_url = response.url
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{% if not username %}// Fill in with your personal username and API key
22
// or, use this public demo account
33
{% endif %}var plotly = require('plotly')({% if username %}'{{username}}'{% else %}'Node.js-Demo-Account'{% endif %},{% if api_key %}'{{api_key}}'{% else %}'dvlqkmw0zm'{% endif %});
4+
45
var data = [
56
{
67
x: ["giraffes", "orangutans", "monkeys"],
78
y: [20, 14, 23],
89
type: "bar"
910
}
1011
];
11-
var graph_options = {auto_open: false, fileopt: "overwrite", filename: "basic-bar"}
12+
var graph_options = {fileopt: "overwrite", filename: "basic-bar"}
1213
plotly.plot(data, graph_options, function (err, msg) {
1314
console.log(msg);
1415
});

auto-docs/chart-types/bar/basic-bar/python/code.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ from plotly.graph_objs import *
33
{% if not username %}# Fill in with your personal username and API key
44
# or, use this public demo account
55
{% endif %}py.sign_in({% if username %}"{{username}}"{% else %}'Python-Demo-Account'{% endif %}, {% if api_key %}"{{api_key}}"{% else %}'gwt101uhh0'{% endif %})
6+
67
data = Data([
78
Bar(
89
x=['giraffes', 'orangutans', 'monkeys'],
910
y=[20, 14, 23]
1011
)
1112
])
12-
plot_url = py.plot(data, auto_open=False, filename='basic-bar')
13+
plot_url = py.plot(data, filename='basic-bar')

auto-docs/chart-types/bar/basic-bar/r/code.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ library(plotly)
22
{% if not username %}# Fill in with your personal username and API key
33
# or, use this public demo account
44
{% endif %}py <- plotly(username={% if username %}"{{username}}"{% else %}'R-Demo-Account'{% endif %}, key={% if api_key %}"{{api_key}}"{% else %}'yu680v5eii'{% endif %})
5+
56
data <- list(
67
list(
78
x = c("giraffes", "orangutans", "monkeys"),
89
y = c(20, 14, 23),
910
type = "bar"
1011
)
1112
)
12-
response <- p$plotly(data, kwargs=list(auto_open=FALSE, fileopt="overwrite", filename="basic-bar"))
13+
response <- p$plotly(data, kwargs=list(fileopt="overwrite", filename="basic-bar"))
1314
url <- response$url

0 commit comments

Comments
 (0)