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

Skip to content

Commit 12c60e2

Browse files
committed
Merge pull request plotly#39 from plotly/andrew-obliterate-and-redo
Andrew obliterate and redo
2 parents 892d979 + 6a9a8f9 commit 12c60e2

File tree

2,880 files changed

+12305
-45362
lines changed

Some content is hidden

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

2,880 files changed

+12305
-45362
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2+
var plotly = require('plotly')('TestBot', 'r1neazxo9w')
13
var trace1 = {
24
x: [1, 2, 3, 4],
35
y: [0, 2, 3, 5],
@@ -11,5 +13,7 @@ var trace2 = {
1113
type: "scatter"
1214
};
1315
var data = [trace1, trace2];
14-
15-
Plotly.plot(divid, data);
16+
var graph_options = {filename: "callbacks-example-placeholder", fileopt: "overwrite"}
17+
plotly.plot(data, graph_options, function (err, msg) {
18+
console.log(msg);
19+
});

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2+
var plotly = require('plotly')('TestBot', 'r1neazxo9w')
13
var trace1 = {
24
x: [1, 2, 3, 4],
35
y: [0, 2, 3, 5],
@@ -11,5 +13,7 @@ var trace2 = {
1113
type: "scatter"
1214
};
1315
var data = [trace1, trace2];
14-
15-
Plotly.plot(divid, data);
16+
var graph_options = {filename: "basic-area", fileopt: "overwrite"}
17+
plotly.plot(data, graph_options, function (err, msg) {
18+
console.log(msg);
19+
});

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Plotly
2-
32
{% if not username %}# Fill in with your personal username and API key
43
# or, use this public demo account
54
{% endif %}Plotly.signin({% if username %}"{{username}}"{% else %}"Julia-Demo-Account"{% endif %}, {% if api_key %}"{{api_key}}"{% else %}"hvkrsbg3uj"{% endif %})
@@ -17,6 +16,5 @@ trace2 = [
1716
"type" => "scatter"
1817
]
1918
data = [trace1, trace2]
20-
21-
response = Plotly.plot([data], ["filename" => "basic-area", "fileopt" => "overwrite"])
19+
response = Plotly.plot(data, ["filename" => "basic-area", "fileopt" => "overwrite"])
2220
plot_url = response["url"]

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ trace2 = struct(...
1313
'fill', 'tonexty', ...
1414
'type', 'scatter');
1515
data = {trace1, trace2};
16-
1716
response = plotly(data, struct('filename', 'basic-area', 'fileopt', 'overwrite'));
1817
plot_url = response.url

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ var trace2 = {
1515
type: "scatter"
1616
};
1717
var data = [trace1, trace2];
18-
1918
var graph_options = {filename: "basic-area", fileopt: "overwrite"}
2019
plotly.plot(data, graph_options, function (err, msg) {
2120
console.log(msg);

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import plotly.plotly as py
22
from plotly.graph_objs import *
3-
43
{% if not username %}# Fill in with your personal username and API key
54
# or, use this public demo account
65
{% endif %}py.sign_in({% if username %}"{{username}}"{% else %}'Python-Demo-Account'{% endif %}, {% if api_key %}"{{api_key}}"{% else %}'gwt101uhh0'{% endif %})
@@ -16,5 +15,4 @@ trace2 = Scatter(
1615
fill='tonexty'
1716
)
1817
data = Data([trace1, trace2])
19-
2018
plot_url = py.plot(data, filename='basic-area')

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
library(plotly)
2-
32
{% if not username %}# Fill in with your personal username and API key
43
# or, use this public demo account
5-
{% endif %}p <- plotly(username={% if username %}"{{username}}"{% else %}'R-Demo-Account'{% endif %}, key={% if api_key %}"{{api_key}}"{% else %}'yu680v5eii'{% endif %})
4+
{% endif %}py <- plotly(username={% if username %}"{{username}}"{% else %}'R-Demo-Account'{% endif %}, key={% if api_key %}"{{api_key}}"{% else %}'yu680v5eii'{% endif %})
65

76
trace1 <- list(
87
x = c(1, 2, 3, 4),
@@ -17,7 +16,5 @@ trace2 <- list(
1716
type = "scatter"
1817
)
1918
data <- list(trace1, trace2)
20-
21-
response <- p$plotly(data, kwargs=list(filename="basic-area", fileopt="overwrite"))
22-
url <- response$url
23-
filename <- response$filename
19+
response <- py$plotly(data, kwargs=list(filename="basic-area", fileopt="overwrite"))
20+
url <- response$url
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2+
var plotly = require('plotly')('TestBot', 'r1neazxo9w')
13
var data = [
24
{
35
x: [1, 2, 3, 4],
@@ -6,5 +8,7 @@ var data = [
68
type: "bar"
79
}
810
];
9-
10-
Plotly.plot(divid, data);
11+
var graph_options = {filename: "bar-marker-array", fileopt: "overwrite"}
12+
plotly.plot(data, graph_options, function (err, msg) {
13+
console.log(msg);
14+
});

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Plotly
2-
32
{% if not username %}# Fill in with your personal username and API key
43
# or, use this public demo account
54
{% endif %}Plotly.signin({% if username %}"{{username}}"{% else %}"Julia-Demo-Account"{% endif %}, {% if api_key %}"{{api_key}}"{% else %}"hvkrsbg3uj"{% endif %})
@@ -12,6 +11,5 @@ data = [
1211
"type" => "bar"
1312
]
1413
]
15-
16-
response = Plotly.plot([data], ["filename" => "bar-marker-array", "fileopt" => "overwrite"])
14+
response = Plotly.plot(data, ["filename" => "bar-marker-array", "fileopt" => "overwrite"])
1715
plot_url = response["url"]

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ data = {...
99
'marker', struct('color', { {'#447adb', '#447adb', '#db5a44', '#447adb'} }), ...
1010
'type', 'bar')...
1111
};
12-
1312
response = plotly(data, struct('filename', 'bar-marker-array', 'fileopt', 'overwrite'));
1413
plot_url = response.url

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ var data = [
1010
type: "bar"
1111
}
1212
];
13-
1413
var graph_options = {filename: "bar-marker-array", fileopt: "overwrite"}
1514
plotly.plot(data, graph_options, function (err, msg) {
1615
console.log(msg);

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import plotly.plotly as py
22
from plotly.graph_objs import *
3-
43
{% if not username %}# Fill in with your personal username and API key
54
# or, use this public demo account
65
{% endif %}py.sign_in({% if username %}"{{username}}"{% else %}'Python-Demo-Account'{% endif %}, {% if api_key %}"{{api_key}}"{% else %}'gwt101uhh0'{% endif %})
@@ -14,5 +13,4 @@ data = Data([
1413
)
1514
)
1615
])
17-
1816
plot_url = py.plot(data, filename='bar-marker-array')
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
library(plotly)
2-
32
{% if not username %}# Fill in with your personal username and API key
43
# or, use this public demo account
5-
{% endif %}p <- plotly(username={% if username %}"{{username}}"{% else %}'R-Demo-Account'{% endif %}, key={% if api_key %}"{{api_key}}"{% else %}'yu680v5eii'{% endif %})
4+
{% endif %}py <- plotly(username={% if username %}"{{username}}"{% else %}'R-Demo-Account'{% endif %}, key={% if api_key %}"{{api_key}}"{% else %}'yu680v5eii'{% endif %})
65

76
data <- list(
87
list(
@@ -12,7 +11,5 @@ data <- list(
1211
type = "bar"
1312
)
1413
)
15-
16-
response <- p$plotly(data, kwargs=list(filename="bar-marker-array", fileopt="overwrite"))
17-
url <- response$url
18-
filename <- response$filename
14+
response <- py$plotly(data, kwargs=list(filename="bar-marker-array", fileopt="overwrite"))
15+
url <- response$url

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Plotly
2-
32
{% if not username %}# Fill in with your personal username and API key
43
# or, use this public demo account
54
{% endif %}Plotly.signin({% if username %}"{{username}}"{% else %}"Julia-Demo-Account"{% endif %}, {% if api_key %}"{{api_key}}"{% else %}"hvkrsbg3uj"{% endif %})
@@ -24,6 +23,5 @@ layout = [
2423
],
2524
"bargap" => 0.05
2625
]
27-
28-
response = Plotly.plot([data], ["layout" => layout, "filename" => "bar-with-hover-text", "fileopt" => "overwrite"])
26+
response = Plotly.plot(data, ["layout" => layout, "filename" => "bar-with-hover-text", "fileopt" => "overwrite"])
2927
plot_url = response["url"]

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,5 @@ layout = struct(...
1919
'zeroline', false, ...
2020
'gridwidth', 2), ...
2121
'bargap', 0.05);
22-
2322
response = plotly(data, struct('layout', layout, 'filename', 'bar-with-hover-text', 'fileopt', 'overwrite'));
2423
plot_url = response.url

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ var layout = {
2222
},
2323
bargap: 0.05
2424
};
25-
26-
var graph_options = {filename: "bar-with-hover-text", fileopt: "overwrite", layout: layout}
25+
var graph_options = {layout: layout, filename: "bar-with-hover-text", fileopt: "overwrite"}
2726
plotly.plot(data, graph_options, function (err, msg) {
2827
console.log(msg);
2928
});

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import plotly.plotly as py
22
from plotly.graph_objs import *
3-
43
{% if not username %}# Fill in with your personal username and API key
54
# or, use this public demo account
65
{% endif %}py.sign_in({% if username %}"{{username}}"{% else %}'Python-Demo-Account'{% endif %}, {% if api_key %}"{{api_key}}"{% else %}'gwt101uhh0'{% endif %})
@@ -31,5 +30,4 @@ layout = Layout(
3130
bargap=0.05
3231
)
3332
fig = Figure(data=data, layout=layout)
34-
3533
plot_url = py.plot(fig, filename='bar-with-hover-text')

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
library(plotly)
2-
32
{% if not username %}# Fill in with your personal username and API key
43
# or, use this public demo account
5-
{% endif %}p <- plotly(username={% if username %}"{{username}}"{% else %}'R-Demo-Account'{% endif %}, key={% if api_key %}"{{api_key}}"{% else %}'yu680v5eii'{% endif %})
4+
{% endif %}py <- plotly(username={% if username %}"{{username}}"{% else %}'R-Demo-Account'{% endif %}, key={% if api_key %}"{{api_key}}"{% else %}'yu680v5eii'{% endif %})
65

76
data <- list(
87
list(
@@ -24,7 +23,5 @@ layout <- list(
2423
),
2524
bargap = 0.05
2625
)
27-
28-
response <- p$plotly(data, kwargs=list(layout=layout, filename="bar-with-hover-text", fileopt="overwrite"))
29-
url <- response$url
30-
filename <- response$filename
26+
response <- py$plotly(data, kwargs=list(layout=layout, filename="bar-with-hover-text", fileopt="overwrite"))
27+
url <- response$url
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
2+
var plotly = require('plotly')('TestBot', 'r1neazxo9w')
13
var data = [
24
{
35
x: ["giraffes", "orangutans", "monkeys"],
46
y: [20, 14, 23],
57
type: "bar"
68
}
79
];
8-
9-
Plotly.plot(divid, data);
10+
var graph_options = {filename: "basic-bar", fileopt: "overwrite"}
11+
plotly.plot(data, graph_options, function (err, msg) {
12+
console.log(msg);
13+
});

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Plotly
2-
32
{% if not username %}# Fill in with your personal username and API key
43
# or, use this public demo account
54
{% endif %}Plotly.signin({% if username %}"{{username}}"{% else %}"Julia-Demo-Account"{% endif %}, {% if api_key %}"{{api_key}}"{% else %}"hvkrsbg3uj"{% endif %})
@@ -11,6 +10,5 @@ data = [
1110
"type" => "bar"
1211
]
1312
]
14-
15-
response = Plotly.plot([data], ["filename" => "basic-bar", "fileopt" => "overwrite"])
13+
response = Plotly.plot(data, ["filename" => "basic-bar", "fileopt" => "overwrite"])
1614
plot_url = response["url"]

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ data = {...
88
'y', [20, 14, 23], ...
99
'type', 'bar')...
1010
};
11-
1211
response = plotly(data, struct('filename', 'basic-bar', 'fileopt', 'overwrite'));
1312
plot_url = response.url

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ var data = [
99
type: "bar"
1010
}
1111
];
12-
1312
var graph_options = {filename: "basic-bar", fileopt: "overwrite"}
1413
plotly.plot(data, graph_options, function (err, msg) {
1514
console.log(msg);

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import plotly.plotly as py
22
from plotly.graph_objs import *
3-
43
{% if not username %}# Fill in with your personal username and API key
54
# or, use this public demo account
65
{% endif %}py.sign_in({% if username %}"{{username}}"{% else %}'Python-Demo-Account'{% endif %}, {% if api_key %}"{{api_key}}"{% else %}'gwt101uhh0'{% endif %})
@@ -11,5 +10,4 @@ data = Data([
1110
y=[20, 14, 23]
1211
)
1312
])
14-
1513
plot_url = py.plot(data, filename='basic-bar')
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
library(plotly)
2-
32
{% if not username %}# Fill in with your personal username and API key
43
# or, use this public demo account
5-
{% endif %}p <- plotly(username={% if username %}"{{username}}"{% else %}'R-Demo-Account'{% endif %}, key={% if api_key %}"{{api_key}}"{% else %}'yu680v5eii'{% endif %})
4+
{% endif %}py <- plotly(username={% if username %}"{{username}}"{% else %}'R-Demo-Account'{% endif %}, key={% if api_key %}"{{api_key}}"{% else %}'yu680v5eii'{% endif %})
65

76
data <- list(
87
list(
@@ -11,7 +10,5 @@ data <- list(
1110
type = "bar"
1211
)
1312
)
14-
15-
response <- p$plotly(data, kwargs=list(filename="basic-bar", fileopt="overwrite"))
16-
url <- response$url
17-
filename <- response$filename
13+
response <- py$plotly(data, kwargs=list(filename="basic-bar", fileopt="overwrite"))
14+
url <- response$url

auto-docs/chart-types/bar/grouped-bar/js/code.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2+
var plotly = require('plotly')('TestBot', 'r1neazxo9w')
13
var trace1 = {
24
x: ["giraffes", "orangutans", "monkeys"],
35
y: [20, 14, 23],
@@ -12,5 +14,7 @@ var trace2 = {
1214
};
1315
var data = [trace1, trace2];
1416
var layout = {barmode: "group"};
15-
16-
Plotly.plot(divid, data, layout);
17+
var graph_options = {layout: layout, filename: "grouped-bar", fileopt: "overwrite"}
18+
plotly.plot(data, graph_options, function (err, msg) {
19+
console.log(msg);
20+
});

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Plotly
2-
32
{% if not username %}# Fill in with your personal username and API key
43
# or, use this public demo account
54
{% endif %}Plotly.signin({% if username %}"{{username}}"{% else %}"Julia-Demo-Account"{% endif %}, {% if api_key %}"{{api_key}}"{% else %}"hvkrsbg3uj"{% endif %})
@@ -18,6 +17,5 @@ trace2 = [
1817
]
1918
data = [trace1, trace2]
2019
layout = ["barmode" => "group"]
21-
22-
response = Plotly.plot([data], ["layout" => layout, "filename" => "grouped-bar", "fileopt" => "overwrite"])
20+
response = Plotly.plot(data, ["layout" => layout, "filename" => "grouped-bar", "fileopt" => "overwrite"])
2321
plot_url = response["url"]

auto-docs/chart-types/bar/grouped-bar/matlab/code.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,5 @@ trace2 = struct(...
1414
'type', 'bar');
1515
data = {trace1, trace2};
1616
layout = struct('barmode', 'group');
17-
1817
response = plotly(data, struct('layout', layout, 'filename', 'grouped-bar', 'fileopt', 'overwrite'));
1918
plot_url = response.url

auto-docs/chart-types/bar/grouped-bar/nodejs/code.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ var trace2 = {
1616
};
1717
var data = [trace1, trace2];
1818
var layout = {barmode: "group"};
19-
20-
var graph_options = {filename: "grouped-bar", fileopt: "overwrite", layout: layout}
19+
var graph_options = {layout: layout, filename: "grouped-bar", fileopt: "overwrite"}
2120
plotly.plot(data, graph_options, function (err, msg) {
2221
console.log(msg);
2322
});

0 commit comments

Comments
 (0)