Skip to content

Commit b3b5a66

Browse files
committed
deploying
1 parent 97b12ba commit b3b5a66

File tree

838 files changed

+267
-8124
lines changed

Some content is hidden

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

838 files changed

+267
-8124
lines changed

2015/04/09/button-bind.html

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
1-
import plotly.plotly as py
2-
import plotly.graph_objs as go
1+
% Learn about API authentication here: https://plot.ly/matlab/getting-started
2+
% Find your api_key here: https://plot.ly/settings/api
33

4-
import numpy as np
4+
[X,Y,Z] = peaks;
5+
contour(X,Y,Z,20)
56

6-
size = 100
7-
x = np.linspace(-2*np.pi, 2*np.pi, size)
8-
y = np.linspace(-2*np.pi, 2*np.pi, size)
9-
z = np.empty((size, size))
10-
for i, xi in enumerate(x):
11-
for j, yj in enumerate(y):
12-
r2 = (xi**2+yj**2)
13-
z[i][j] = np.sin(xi)*np.cos(yj)*np.sin(r2)/(np.log(r2+1))
14-
15-
data = [go.Contour(z=z, x=x, y=y)]
16-
plot_url = py.plot(data, filename='simple-contour')
7+
% PLOTLY
8+
response = fig2plotly();
9+
plotly_url = response.url;

2015/04/09/privacy-false.html

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
# Learn about API authentication here: https://plot.ly/pandas/getting-started
2-
# Find your api_key here: https://plot.ly/settings/api
1+
// Learn about API authentication here: https://plot.ly/nodejs/getting-started
2+
// Find your api_key here: https://plot.ly/settings/api
33

4-
import plotly.plotly as py
5-
import plotly.graph_objs as go
4+
require('plotly')(username, api_key);
65

7-
data = [
8-
go.Scatter(
9-
x=[0, 2, 4],
10-
y=[0, 4, 2]
11-
)
12-
]
13-
plot_url = py.plot(data, filename='privacy-false', world_readable=False)
6+
var data = [
7+
{
8+
x: [0, 2, 4],
9+
y: [0, 4, 2],
10+
type: "scatter"
11+
}
12+
];
13+
var graphOptions = {filename: "privacy-false", world_readable: false, fileopt: "overwrite"};
14+
plotly.plot(data, graphOptions, function (err, msg) {
15+
console.log(msg);
16+
});

2015/04/09/privacy-true.html

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
# Learn about API authentication here: https://plot.ly/pandas/getting-started
2-
# Find your api_key here: https://plot.ly/settings/api
1+
// Learn about API authentication here: https://plot.ly/nodejs/getting-started
2+
// Find your api_key here: https://plot.ly/settings/api
33

4-
import plotly.plotly as py
5-
import plotly.graph_objs as go
4+
require('plotly')(username, api_key);
65

7-
data = [
8-
go.Scatter(
9-
x=[0, 2, 4],
10-
y=[0, 4, 2]
11-
)
12-
]
13-
plot_url = py.plot(data, filename='privacy-true', world_readable=True)
6+
var data = [
7+
{
8+
x: [0, 2, 4],
9+
y: [0, 4, 2],
10+
type: "scatter"
11+
}
12+
];
13+
var graphOptions = {filename: "privacy-true", world_readable: true, fileopt: "overwrite"};
14+
plotly.plot(data, graphOptions, function (err, msg) {
15+
console.log(msg);
16+
});

2015/04/09/sliders-bind.html

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import plotly.plotly as py
2-
from plotly.graph_objs import *
3-
import pandas as pd
4-
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/2014_orange_stock.csv')
5-
df.head()
6-
trace = Scatter( x=df['AAPL_x'], y=df['AAPL_y'], mode='markers', marker=dict(size=4) )
7-
data = Data([trace])
8-
url = py.plot(data, filename='line-scatter-aapl')
1+
x = linspace(datenum(2009,01,01),datenum(2010,01,01),30);
2+
y = rand(1,30);
3+
plotlydate = convertDate(x);
4+
plot(plotlydate,y,'-.ob');
5+
plotlyfig = fig2plotly(gcf,'filename','MATLAB/date-example');
6+
plotlyfig.layout.xaxis1.type = 'date';
7+
plotly(plotlyfig);

2019/08/16/basic_density_mapbox.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,6 @@
279279

280280

281281

282-
283-
284282
<img src="https://images.plot.ly/language-icons/api-home/js-logo.png" alt="Plotly.js">
285283

286284

2019/08/16/earthquack_density.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,6 @@
279279

280280

281281

282-
283-
284282
<img src="https://images.plot.ly/language-icons/api-home/js-logo.png" alt="Plotly.js">
285283

286284

2019/08/16/multi_density-mapbox.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,6 @@
279279

280280

281281

282-
283-
284282
<img src="https://images.plot.ly/language-icons/api-home/js-logo.png" alt="Plotly.js">
285283

286284

ggplot2/aes/index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,6 @@
288288

289289

290290

291-
292-
293291
<img src="https://images.plot.ly/language-icons/api-home/ggplot2-logo.png" alt="">
294292

295293

ggplot2/animations/index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,6 @@
288288

289289

290290

291-
292-
293291
<img src="https://images.plot.ly/language-icons/api-home/ggplot2-logo.png" alt="">
294292

295293

ggplot2/axis-text/index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,6 @@
288288

289289

290290

291-
292-
293291
<img src="https://images.plot.ly/language-icons/api-home/ggplot2-logo.png" alt="">
294292

295293

0 commit comments

Comments
 (0)