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

Skip to content

Andrew obliterate and redo #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Sep 19, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
2f2314b
obliterate.
theengineear Sep 5, 2014
865141d
redo run.py.
theengineear Sep 5, 2014
898e8aa
redo publish.py (test).
theengineear Sep 5, 2014
2573d0c
redo python_exceptions.py + publish.py (test).
theengineear Sep 5, 2014
f9887cd
redo mpl_exceptions.py + python publish.py (test).
theengineear Sep 5, 2014
a52d78d
redo Rscript ggplot_exceptions.r + python publish.py test.
theengineear Sep 5, 2014
e7868e1
url for data changed.
theengineear Sep 14, 2014
af21e4b
another place where the url needed to be changed.
theengineear Sep 14, 2014
3e42261
ran matlab exceptions
chriddyp Sep 14, 2014
1d5358b
Test-published matlab examples.
theengineear Sep 14, 2014
72924da
add temporary fix for 'r' code. (see notes below)
theengineear Sep 15, 2014
546b0cc
update auto-generated docs for 'r'.
theengineear Sep 15, 2014
cbf2c39
removed 'using Plotly' from julia sign_in (missed in refactor)
theengineear Sep 15, 2014
86a00a0
updated julia examples with `python run.py process julia`
theengineear Sep 15, 2014
629d5af
test-publish updates for r and julia
theengineear Sep 15, 2014
979bcb6
init files isn't just 'python' now and auto_open is removed.
theengineear Sep 15, 2014
3684ff7
Be more careful about where we stick init lines (see below).
theengineear Sep 15, 2014
9b725c4
rerun all examples with run.py / test-publish.
theengineear Sep 15, 2014
3730045
Translator was updated on streambed, we don't need these lines anymore.
theengineear Sep 18, 2014
859564d
Tricky bug. Threads were playing with a mutable, non-local variable.
theengineear Sep 19, 2014
b5918b2
Fresh run.py with updates from streambed changes.
theengineear Sep 19, 2014
6a9a8f9
Ran publish.py test on updated examples
theengineear Sep 19, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@

var plotly = require('plotly')('TestBot', 'r1neazxo9w')
var trace1 = {
x: [1, 2, 3, 4],
y: [0, 2, 3, 5],
Expand All @@ -11,5 +13,7 @@ var trace2 = {
type: "scatter"
};
var data = [trace1, trace2];

Plotly.plot(divid, data);
var graph_options = {filename: "callbacks-example-placeholder", fileopt: "overwrite"}
plotly.plot(data, graph_options, function (err, msg) {
console.log(msg);
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm... i don't think this are right. /js/ is for the javascript graphing library which has a different call signature than the node.js examples. the previous version of this example looked correct

8 changes: 6 additions & 2 deletions auto-docs/chart-types/area/basic-area/js/code.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@

var plotly = require('plotly')('TestBot', 'r1neazxo9w')
var trace1 = {
x: [1, 2, 3, 4],
y: [0, 2, 3, 5],
Expand All @@ -11,5 +13,7 @@ var trace2 = {
type: "scatter"
};
var data = [trace1, trace2];

Plotly.plot(divid, data);
var graph_options = {filename: "basic-area", fileopt: "overwrite"}
plotly.plot(data, graph_options, function (err, msg) {
console.log(msg);
});
4 changes: 1 addition & 3 deletions auto-docs/chart-types/area/basic-area/julia/code.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Plotly

{% if not username %}# Fill in with your personal username and API key
# or, use this public demo account
{% endif %}Plotly.signin({% if username %}"{{username}}"{% else %}"Julia-Demo-Account"{% endif %}, {% if api_key %}"{{api_key}}"{% else %}"hvkrsbg3uj"{% endif %})
Expand All @@ -17,6 +16,5 @@ trace2 = [
"type" => "scatter"
]
data = [trace1, trace2]

response = Plotly.plot([data], ["filename" => "basic-area", "fileopt" => "overwrite"])
response = Plotly.plot(data, ["filename" => "basic-area", "fileopt" => "overwrite"])
plot_url = response["url"]
1 change: 0 additions & 1 deletion auto-docs/chart-types/area/basic-area/matlab/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ trace2 = struct(...
'fill', 'tonexty', ...
'type', 'scatter');
data = {trace1, trace2};

response = plotly(data, struct('filename', 'basic-area', 'fileopt', 'overwrite'));
plot_url = response.url
1 change: 0 additions & 1 deletion auto-docs/chart-types/area/basic-area/nodejs/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ var trace2 = {
type: "scatter"
};
var data = [trace1, trace2];

var graph_options = {filename: "basic-area", fileopt: "overwrite"}
plotly.plot(data, graph_options, function (err, msg) {
console.log(msg);
Expand Down
2 changes: 0 additions & 2 deletions auto-docs/chart-types/area/basic-area/python/code.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import plotly.plotly as py
from plotly.graph_objs import *

{% if not username %}# Fill in with your personal username and API key
# or, use this public demo account
{% endif %}py.sign_in({% if username %}"{{username}}"{% else %}'Python-Demo-Account'{% endif %}, {% if api_key %}"{{api_key}}"{% else %}'gwt101uhh0'{% endif %})
Expand All @@ -16,5 +15,4 @@ trace2 = Scatter(
fill='tonexty'
)
data = Data([trace1, trace2])

plot_url = py.plot(data, filename='basic-area')
9 changes: 3 additions & 6 deletions auto-docs/chart-types/area/basic-area/r/code.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
library(plotly)

{% if not username %}# Fill in with your personal username and API key
# or, use this public demo account
{% endif %}p <- plotly(username={% if username %}"{{username}}"{% else %}'R-Demo-Account'{% endif %}, key={% if api_key %}"{{api_key}}"{% else %}'yu680v5eii'{% endif %})
{% endif %}py <- plotly(username={% if username %}"{{username}}"{% else %}'R-Demo-Account'{% endif %}, key={% if api_key %}"{{api_key}}"{% else %}'yu680v5eii'{% endif %})

trace1 <- list(
x = c(1, 2, 3, 4),
Expand All @@ -17,7 +16,5 @@ trace2 <- list(
type = "scatter"
)
data <- list(trace1, trace2)

response <- p$plotly(data, kwargs=list(filename="basic-area", fileopt="overwrite"))
url <- response$url
filename <- response$filename
response <- py$plotly(data, kwargs=list(filename="basic-area", fileopt="overwrite"))
url <- response$url
8 changes: 6 additions & 2 deletions auto-docs/chart-types/bar/bar-marker-array/js/code.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@

var plotly = require('plotly')('TestBot', 'r1neazxo9w')
var data = [
{
x: [1, 2, 3, 4],
Expand All @@ -6,5 +8,7 @@ var data = [
type: "bar"
}
];

Plotly.plot(divid, data);
var graph_options = {filename: "bar-marker-array", fileopt: "overwrite"}
plotly.plot(data, graph_options, function (err, msg) {
console.log(msg);
});
4 changes: 1 addition & 3 deletions auto-docs/chart-types/bar/bar-marker-array/julia/code.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Plotly

{% if not username %}# Fill in with your personal username and API key
# or, use this public demo account
{% endif %}Plotly.signin({% if username %}"{{username}}"{% else %}"Julia-Demo-Account"{% endif %}, {% if api_key %}"{{api_key}}"{% else %}"hvkrsbg3uj"{% endif %})
Expand All @@ -12,6 +11,5 @@ data = [
"type" => "bar"
]
]

response = Plotly.plot([data], ["filename" => "bar-marker-array", "fileopt" => "overwrite"])
response = Plotly.plot(data, ["filename" => "bar-marker-array", "fileopt" => "overwrite"])
plot_url = response["url"]
1 change: 0 additions & 1 deletion auto-docs/chart-types/bar/bar-marker-array/matlab/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ data = {...
'marker', struct('color', { {'#447adb', '#447adb', '#db5a44', '#447adb'} }), ...
'type', 'bar')...
};

response = plotly(data, struct('filename', 'bar-marker-array', 'fileopt', 'overwrite'));
plot_url = response.url
1 change: 0 additions & 1 deletion auto-docs/chart-types/bar/bar-marker-array/nodejs/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ var data = [
type: "bar"
}
];

var graph_options = {filename: "bar-marker-array", fileopt: "overwrite"}
plotly.plot(data, graph_options, function (err, msg) {
console.log(msg);
Expand Down
2 changes: 0 additions & 2 deletions auto-docs/chart-types/bar/bar-marker-array/python/code.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import plotly.plotly as py
from plotly.graph_objs import *

{% if not username %}# Fill in with your personal username and API key
# or, use this public demo account
{% endif %}py.sign_in({% if username %}"{{username}}"{% else %}'Python-Demo-Account'{% endif %}, {% if api_key %}"{{api_key}}"{% else %}'gwt101uhh0'{% endif %})
Expand All @@ -14,5 +13,4 @@ data = Data([
)
)
])

plot_url = py.plot(data, filename='bar-marker-array')
9 changes: 3 additions & 6 deletions auto-docs/chart-types/bar/bar-marker-array/r/code.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
library(plotly)

{% if not username %}# Fill in with your personal username and API key
# or, use this public demo account
{% endif %}p <- plotly(username={% if username %}"{{username}}"{% else %}'R-Demo-Account'{% endif %}, key={% if api_key %}"{{api_key}}"{% else %}'yu680v5eii'{% endif %})
{% endif %}py <- plotly(username={% if username %}"{{username}}"{% else %}'R-Demo-Account'{% endif %}, key={% if api_key %}"{{api_key}}"{% else %}'yu680v5eii'{% endif %})

data <- list(
list(
Expand All @@ -12,7 +11,5 @@ data <- list(
type = "bar"
)
)

response <- p$plotly(data, kwargs=list(filename="bar-marker-array", fileopt="overwrite"))
url <- response$url
filename <- response$filename
response <- py$plotly(data, kwargs=list(filename="bar-marker-array", fileopt="overwrite"))
url <- response$url
4 changes: 1 addition & 3 deletions auto-docs/chart-types/bar/bar-with-hover-text/julia/code.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Plotly

{% if not username %}# Fill in with your personal username and API key
# or, use this public demo account
{% endif %}Plotly.signin({% if username %}"{{username}}"{% else %}"Julia-Demo-Account"{% endif %}, {% if api_key %}"{{api_key}}"{% else %}"hvkrsbg3uj"{% endif %})
Expand All @@ -24,6 +23,5 @@ layout = [
],
"bargap" => 0.05
]

response = Plotly.plot([data], ["layout" => layout, "filename" => "bar-with-hover-text", "fileopt" => "overwrite"])
response = Plotly.plot(data, ["layout" => layout, "filename" => "bar-with-hover-text", "fileopt" => "overwrite"])
plot_url = response["url"]
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@ layout = struct(...
'zeroline', false, ...
'gridwidth', 2), ...
'bargap', 0.05);

response = plotly(data, struct('layout', layout, 'filename', 'bar-with-hover-text', 'fileopt', 'overwrite'));
plot_url = response.url
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ var layout = {
},
bargap: 0.05
};

var graph_options = {filename: "bar-with-hover-text", fileopt: "overwrite", layout: layout}
var graph_options = {layout: layout, filename: "bar-with-hover-text", fileopt: "overwrite"}
plotly.plot(data, graph_options, function (err, msg) {
console.log(msg);
});
2 changes: 0 additions & 2 deletions auto-docs/chart-types/bar/bar-with-hover-text/python/code.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import plotly.plotly as py
from plotly.graph_objs import *

{% if not username %}# Fill in with your personal username and API key
# or, use this public demo account
{% endif %}py.sign_in({% if username %}"{{username}}"{% else %}'Python-Demo-Account'{% endif %}, {% if api_key %}"{{api_key}}"{% else %}'gwt101uhh0'{% endif %})
Expand Down Expand Up @@ -31,5 +30,4 @@ layout = Layout(
bargap=0.05
)
fig = Figure(data=data, layout=layout)

plot_url = py.plot(fig, filename='bar-with-hover-text')
9 changes: 3 additions & 6 deletions auto-docs/chart-types/bar/bar-with-hover-text/r/code.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
library(plotly)

{% if not username %}# Fill in with your personal username and API key
# or, use this public demo account
{% endif %}p <- plotly(username={% if username %}"{{username}}"{% else %}'R-Demo-Account'{% endif %}, key={% if api_key %}"{{api_key}}"{% else %}'yu680v5eii'{% endif %})
{% endif %}py <- plotly(username={% if username %}"{{username}}"{% else %}'R-Demo-Account'{% endif %}, key={% if api_key %}"{{api_key}}"{% else %}'yu680v5eii'{% endif %})

data <- list(
list(
Expand All @@ -24,7 +23,5 @@ layout <- list(
),
bargap = 0.05
)

response <- p$plotly(data, kwargs=list(layout=layout, filename="bar-with-hover-text", fileopt="overwrite"))
url <- response$url
filename <- response$filename
response <- py$plotly(data, kwargs=list(layout=layout, filename="bar-with-hover-text", fileopt="overwrite"))
url <- response$url
8 changes: 6 additions & 2 deletions auto-docs/chart-types/bar/basic-bar/js/code.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@

var plotly = require('plotly')('TestBot', 'r1neazxo9w')
var data = [
{
x: ["giraffes", "orangutans", "monkeys"],
y: [20, 14, 23],
type: "bar"
}
];

Plotly.plot(divid, data);
var graph_options = {filename: "basic-bar", fileopt: "overwrite"}
plotly.plot(data, graph_options, function (err, msg) {
console.log(msg);
});
4 changes: 1 addition & 3 deletions auto-docs/chart-types/bar/basic-bar/julia/code.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Plotly

{% if not username %}# Fill in with your personal username and API key
# or, use this public demo account
{% endif %}Plotly.signin({% if username %}"{{username}}"{% else %}"Julia-Demo-Account"{% endif %}, {% if api_key %}"{{api_key}}"{% else %}"hvkrsbg3uj"{% endif %})
Expand All @@ -11,6 +10,5 @@ data = [
"type" => "bar"
]
]

response = Plotly.plot([data], ["filename" => "basic-bar", "fileopt" => "overwrite"])
response = Plotly.plot(data, ["filename" => "basic-bar", "fileopt" => "overwrite"])
plot_url = response["url"]
1 change: 0 additions & 1 deletion auto-docs/chart-types/bar/basic-bar/matlab/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ data = {...
'y', [20, 14, 23], ...
'type', 'bar')...
};

response = plotly(data, struct('filename', 'basic-bar', 'fileopt', 'overwrite'));
plot_url = response.url
1 change: 0 additions & 1 deletion auto-docs/chart-types/bar/basic-bar/nodejs/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ var data = [
type: "bar"
}
];

var graph_options = {filename: "basic-bar", fileopt: "overwrite"}
plotly.plot(data, graph_options, function (err, msg) {
console.log(msg);
Expand Down
2 changes: 0 additions & 2 deletions auto-docs/chart-types/bar/basic-bar/python/code.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import plotly.plotly as py
from plotly.graph_objs import *

{% if not username %}# Fill in with your personal username and API key
# or, use this public demo account
{% endif %}py.sign_in({% if username %}"{{username}}"{% else %}'Python-Demo-Account'{% endif %}, {% if api_key %}"{{api_key}}"{% else %}'gwt101uhh0'{% endif %})
Expand All @@ -11,5 +10,4 @@ data = Data([
y=[20, 14, 23]
)
])

plot_url = py.plot(data, filename='basic-bar')
9 changes: 3 additions & 6 deletions auto-docs/chart-types/bar/basic-bar/r/code.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
library(plotly)

{% if not username %}# Fill in with your personal username and API key
# or, use this public demo account
{% endif %}p <- plotly(username={% if username %}"{{username}}"{% else %}'R-Demo-Account'{% endif %}, key={% if api_key %}"{{api_key}}"{% else %}'yu680v5eii'{% endif %})
{% endif %}py <- plotly(username={% if username %}"{{username}}"{% else %}'R-Demo-Account'{% endif %}, key={% if api_key %}"{{api_key}}"{% else %}'yu680v5eii'{% endif %})

data <- list(
list(
Expand All @@ -11,7 +10,5 @@ data <- list(
type = "bar"
)
)

response <- p$plotly(data, kwargs=list(filename="basic-bar", fileopt="overwrite"))
url <- response$url
filename <- response$filename
response <- py$plotly(data, kwargs=list(filename="basic-bar", fileopt="overwrite"))
url <- response$url
8 changes: 6 additions & 2 deletions auto-docs/chart-types/bar/grouped-bar/js/code.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@

var plotly = require('plotly')('TestBot', 'r1neazxo9w')
var trace1 = {
x: ["giraffes", "orangutans", "monkeys"],
y: [20, 14, 23],
Expand All @@ -12,5 +14,7 @@ var trace2 = {
};
var data = [trace1, trace2];
var layout = {barmode: "group"};

Plotly.plot(divid, data, layout);
var graph_options = {layout: layout, filename: "grouped-bar", fileopt: "overwrite"}
plotly.plot(data, graph_options, function (err, msg) {
console.log(msg);
});
4 changes: 1 addition & 3 deletions auto-docs/chart-types/bar/grouped-bar/julia/code.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Plotly

{% if not username %}# Fill in with your personal username and API key
# or, use this public demo account
{% endif %}Plotly.signin({% if username %}"{{username}}"{% else %}"Julia-Demo-Account"{% endif %}, {% if api_key %}"{{api_key}}"{% else %}"hvkrsbg3uj"{% endif %})
Expand All @@ -18,6 +17,5 @@ trace2 = [
]
data = [trace1, trace2]
layout = ["barmode" => "group"]

response = Plotly.plot([data], ["layout" => layout, "filename" => "grouped-bar", "fileopt" => "overwrite"])
response = Plotly.plot(data, ["layout" => layout, "filename" => "grouped-bar", "fileopt" => "overwrite"])
plot_url = response["url"]
1 change: 0 additions & 1 deletion auto-docs/chart-types/bar/grouped-bar/matlab/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ trace2 = struct(...
'type', 'bar');
data = {trace1, trace2};
layout = struct('barmode', 'group');

response = plotly(data, struct('layout', layout, 'filename', 'grouped-bar', 'fileopt', 'overwrite'));
plot_url = response.url
3 changes: 1 addition & 2 deletions auto-docs/chart-types/bar/grouped-bar/nodejs/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ var trace2 = {
};
var data = [trace1, trace2];
var layout = {barmode: "group"};

var graph_options = {filename: "grouped-bar", fileopt: "overwrite", layout: layout}
var graph_options = {layout: layout, filename: "grouped-bar", fileopt: "overwrite"}
plotly.plot(data, graph_options, function (err, msg) {
console.log(msg);
});
Loading