Skip to content

Commit

Permalink
Merge pull request plotly#21 from plotly/clean-up
Browse files Browse the repository at this point in the history
Clean up
  • Loading branch information
etpinard committed Jul 23, 2014
2 parents 58f63ab + cd4c8bb commit 7d56c7d
Show file tree
Hide file tree
Showing 862 changed files with 6,857 additions and 5,288 deletions.
9 changes: 7 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
Expand Up @@ -21,8 +21,13 @@ layout = Layout(
family='Raleway, sans-serif'
),
showlegend=False,
xaxis={'tickangle': -45},
yaxis={'zeroline': False, 'gridwidth': 2},
xaxis=XAxis(
tickangle=-45
),
yaxis=YAxis(
zeroline=False,
gridwidth=2
),
bargap=0.05
)
fig = Figure(data=data, layout=layout)
Expand Down
6 changes: 1 addition & 5 deletions auto-docs/chart-types/bar/grouped-bar/js/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ var trace2 = {
type: "bar"
};
var data = [trace1, trace2];
var layout = {
xaxis: {type: "category"},
barmode: "group",
categories: ["giraffes", "orangutans", "monkeys"]
};
var layout = {barmode: "group"};

Plotly.plot(divid, data, layout);
6 changes: 1 addition & 5 deletions auto-docs/chart-types/bar/grouped-bar/julia/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ trace2 = [
"type" => "bar"
]
data = [trace1, trace2]
layout = [
"xaxis" => ["type" => "category"],
"barmode" => "group",
"categories" => ["giraffes", "orangutans", "monkeys"]
]
layout = ["barmode" => "group"]

response = Plotly.plot([data], ["layout" => layout, "filename" => "grouped-bar", "fileopt" => "overwrite"])
plot_url = response["url"]
5 changes: 1 addition & 4 deletions auto-docs/chart-types/bar/grouped-bar/matlab/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ trace2 = struct(...
'name', 'LA Zoo', ...
'type', 'bar');
data = {trace1, trace2};
layout = struct(...
'xaxis', struct('type', 'category'), ...
'barmode', 'group', ...
'categories', { {'giraffes', 'orangutans', 'monkeys'} });
layout = struct('barmode', 'group');

response = plotly(data, struct('layout', layout, 'filename', 'grouped-bar', 'fileopt', 'overwrite'));
plot_url = response.url
6 changes: 1 addition & 5 deletions auto-docs/chart-types/bar/grouped-bar/nodejs/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ var trace2 = {
type: "bar"
};
var data = [trace1, trace2];
var layout = {
xaxis: {type: "category"},
barmode: "group",
categories: ["giraffes", "orangutans", "monkeys"]
};
var layout = {barmode: "group"};

var graph_options = {filename: "grouped-bar", fileopt: "overwrite", layout: layout}
plotly.plot(data, graph_options, function (err, msg) {
Expand Down
4 changes: 1 addition & 3 deletions auto-docs/chart-types/bar/grouped-bar/python/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ trace2 = Bar(
)
data = Data([trace1, trace2])
layout = Layout(
xaxis={'type': 'category'},
barmode='group',
categories=['giraffes', 'orangutans', 'monkeys']
barmode='group'
)
fig = Figure(data=data, layout=layout)

Expand Down
6 changes: 1 addition & 5 deletions auto-docs/chart-types/bar/grouped-bar/r/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ trace2 <- list(
type = "bar"
)
data <- list(trace1, trace2)
layout <- list(
xaxis = list(type = "category"),
barmode = "group",
categories = c("giraffes", "orangutans", "monkeys")
)
layout <- list(barmode = "group")

response <- p$plotly(data, kwargs=list(layout=layout, filename="grouped-bar", fileopt="overwrite"))
url <- response$url
Expand Down
6 changes: 1 addition & 5 deletions auto-docs/chart-types/bar/stacked-bar/js/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ var trace2 = {
type: "bar"
};
var data = [trace1, trace2];
var layout = {
xaxis: {type: "category"},
barmode: "stack",
categories: ["giraffes", "orangutans", "monkeys"]
};
var layout = {barmode: "stack"};

Plotly.plot(divid, data, layout);
6 changes: 1 addition & 5 deletions auto-docs/chart-types/bar/stacked-bar/julia/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ trace2 = [
"type" => "bar"
]
data = [trace1, trace2]
layout = [
"xaxis" => ["type" => "category"],
"barmode" => "stack",
"categories" => ["giraffes", "orangutans", "monkeys"]
]
layout = ["barmode" => "stack"]

response = Plotly.plot([data], ["layout" => layout, "filename" => "stacked-bar", "fileopt" => "overwrite"])
plot_url = response["url"]
5 changes: 1 addition & 4 deletions auto-docs/chart-types/bar/stacked-bar/matlab/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ trace2 = struct(...
'name', 'LA Zoo', ...
'type', 'bar');
data = {trace1, trace2};
layout = struct(...
'xaxis', struct('type', 'category'), ...
'barmode', 'stack', ...
'categories', { {'giraffes', 'orangutans', 'monkeys'} });
layout = struct('barmode', 'stack');

response = plotly(data, struct('layout', layout, 'filename', 'stacked-bar', 'fileopt', 'overwrite'));
plot_url = response.url
6 changes: 1 addition & 5 deletions auto-docs/chart-types/bar/stacked-bar/nodejs/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ var trace2 = {
type: "bar"
};
var data = [trace1, trace2];
var layout = {
xaxis: {type: "category"},
barmode: "stack",
categories: ["giraffes", "orangutans", "monkeys"]
};
var layout = {barmode: "stack"};

var graph_options = {filename: "stacked-bar", fileopt: "overwrite", layout: layout}
plotly.plot(data, graph_options, function (err, msg) {
Expand Down
4 changes: 1 addition & 3 deletions auto-docs/chart-types/bar/stacked-bar/python/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ trace2 = Bar(
)
data = Data([trace1, trace2])
layout = Layout(
xaxis={'type': 'category'},
barmode='stack',
categories=['giraffes', 'orangutans', 'monkeys']
barmode='stack'
)
fig = Figure(data=data, layout=layout)

Expand Down
6 changes: 1 addition & 5 deletions auto-docs/chart-types/bar/stacked-bar/r/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ trace2 <- list(
type = "bar"
)
data <- list(trace1, trace2)
layout <- list(
xaxis = list(type = "category"),
barmode = "stack",
categories = c("giraffes", "orangutans", "monkeys")
)
layout <- list(barmode = "stack")

response <- p$plotly(data, kwargs=list(layout=layout, filename="stacked-bar", fileopt="overwrite"))
url <- response$url
Expand Down
18 changes: 9 additions & 9 deletions auto-docs/chart-types/bar/style-bar/js/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ var data = [trace1, trace2];
var layout = {
title: "US Export of Plastic Scrap",
xaxis: {tickfont: {
color: "rgb(107, 107, 107)",
size: 14
size: 14,
color: "rgb(107, 107, 107)"
}},
yaxis: {
tickfont: {
color: "rgb(107, 107, 107)",
size: 14
},
title: "USD (millions)",
titlefont: {
color: "rgb(107, 107, 107)",
size: 16
size: 16,
color: "rgb(107, 107, 107)"
},
title: "USD (millions)"
tickfont: {
size: 14,
color: "rgb(107, 107, 107)"
}
},
legend: {
x: 0,
Expand Down
18 changes: 9 additions & 9 deletions auto-docs/chart-types/bar/style-bar/julia/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ data = [trace1, trace2]
layout = [
"title" => "US Export of Plastic Scrap",
"xaxis" => ["tickfont" => [
"color" => "rgb(107, 107, 107)",
"size" => 14
"size" => 14,
"color" => "rgb(107, 107, 107)"
]],
"yaxis" => [
"tickfont" => [
"color" => "rgb(107, 107, 107)",
"size" => 14
],
"title" => "USD (millions)",
"titlefont" => [
"color" => "rgb(107, 107, 107)",
"size" => 16
"size" => 16,
"color" => "rgb(107, 107, 107)"
],
"title" => "USD (millions)"
"tickfont" => [
"size" => 14,
"color" => "rgb(107, 107, 107)"
]
],
"legend" => [
"x" => 0,
Expand Down
16 changes: 8 additions & 8 deletions auto-docs/chart-types/bar/style-bar/matlab/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ data = {trace1, trace2};
layout = struct(...
'title', 'US Export of Plastic Scrap', ...
'xaxis', struct('tickfont', struct(...
'color', 'rgb(107, 107, 107)', ...
'size', 14)), ...
'size', 14, ...
'color', 'rgb(107, 107, 107)')), ...
'yaxis', struct(...
'tickfont', struct(...
'color', 'rgb(107, 107, 107)', ...
'size', 14), ...
'title', 'USD (millions)', ...
'titlefont', struct(...
'color', 'rgb(107, 107, 107)', ...
'size', 16), ...
'title', 'USD (millions)'), ...
'size', 16, ...
'color', 'rgb(107, 107, 107)'), ...
'tickfont', struct(...
'size', 14, ...
'color', 'rgb(107, 107, 107)')), ...
'legend', struct(...
'x', 0, ...
'y', 1.0, ...
Expand Down
18 changes: 9 additions & 9 deletions auto-docs/chart-types/bar/style-bar/nodejs/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ var data = [trace1, trace2];
var layout = {
title: "US Export of Plastic Scrap",
xaxis: {tickfont: {
color: "rgb(107, 107, 107)",
size: 14
size: 14,
color: "rgb(107, 107, 107)"
}},
yaxis: {
tickfont: {
color: "rgb(107, 107, 107)",
size: 14
},
title: "USD (millions)",
titlefont: {
color: "rgb(107, 107, 107)",
size: 16
size: 16,
color: "rgb(107, 107, 107)"
},
title: "USD (millions)"
tickfont: {
size: 14,
color: "rgb(107, 107, 107)"
}
},
legend: {
x: 0,
Expand Down
19 changes: 17 additions & 2 deletions auto-docs/chart-types/bar/style-bar/python/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,23 @@ trace2 = Bar(
data = Data([trace1, trace2])
layout = Layout(
title='US Export of Plastic Scrap',
xaxis={'tickfont': {'color': 'rgb(107, 107, 107)', 'size': 14}},
yaxis={'tickfont': {'color': 'rgb(107, 107, 107)', 'size': 14}, 'titlefont': {'color': 'rgb(107, 107, 107)', 'size': 16}, 'title': 'USD (millions)'},
xaxis=XAxis(
tickfont=Font(
size=14,
color='rgb(107, 107, 107)'
)
),
yaxis=YAxis(
title='USD (millions)',
titlefont=Font(
size=16,
color='rgb(107, 107, 107)'
),
tickfont=Font(
size=14,
color='rgb(107, 107, 107)'
)
),
legend=Legend(
x=0,
y=1.0,
Expand Down
18 changes: 9 additions & 9 deletions auto-docs/chart-types/bar/style-bar/r/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ data <- list(trace1, trace2)
layout <- list(
title = "US Export of Plastic Scrap",
xaxis = list(tickfont = list(
color = "rgb(107, 107, 107)",
size = 14
size = 14,
color = "rgb(107, 107, 107)"
)),
yaxis = list(
tickfont = list(
color = "rgb(107, 107, 107)",
size = 14
),
title = "USD (millions)",
titlefont = list(
color = "rgb(107, 107, 107)",
size = 16
size = 16,
color = "rgb(107, 107, 107)"
),
title = "USD (millions)"
tickfont = list(
size = 14,
color = "rgb(107, 107, 107)"
)
),
legend = list(
x = 0,
Expand Down
11 changes: 7 additions & 4 deletions auto-docs/chart-types/box/box-grouped/js/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ var trace3 = {
type: "box"
};
var data = [trace1, trace2, trace3];
var layout = {yaxis: {
zeroline: false,
title: "normalized moisture"
}};
var layout = {
yaxis: {
title: "normalized moisture",
zeroline: false
},
boxmode: "group"
};

Plotly.plot(divid, data, layout);
11 changes: 7 additions & 4 deletions auto-docs/chart-types/box/box-grouped/julia/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ trace3 = [
"type" => "box"
]
data = [trace1, trace2, trace3]
layout = ["yaxis" => [
"zeroline" => false,
"title" => "normalized moisture"
]]
layout = [
"yaxis" => [
"title" => "normalized moisture",
"zeroline" => false
],
"boxmode" => "group"
]

response = Plotly.plot([data], ["layout" => layout, "filename" => "box-grouped", "fileopt" => "overwrite"])
plot_url = response["url"]
8 changes: 5 additions & 3 deletions auto-docs/chart-types/box/box-grouped/matlab/code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ trace3 = struct(...
'marker', struct('color', '#FF851B'), ...
'type', 'box');
data = {trace1, trace2, trace3};
layout = struct('yaxis', struct(...
'zeroline', false, ...
'title', 'normalized moisture'));
layout = struct(...
'yaxis', struct(...
'title', 'normalized moisture', ...
'zeroline', false), ...
'boxmode', 'group');

response = plotly(data, struct('layout', layout, 'filename', 'box-grouped', 'fileopt', 'overwrite'));
plot_url = response.url
Loading

0 comments on commit 7d56c7d

Please sign in to comment.