Skip to content

Commit 7ed64e9

Browse files
committed
Site updated at 2018-11-28 15:26:18 UTC
1 parent a0505a8 commit 7ed64e9

File tree

47 files changed

+3520
-143
lines changed

Some content is hidden

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

47 files changed

+3520
-143
lines changed

.rake_tasks~

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
deploy
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
function getrandom(num , mul)
2+
{
3+
var value = [ ]
4+
var i;
5+
for(i=0;i<=num;i++)
6+
{
7+
rand = Math.random() * mul;
8+
value.push(rand);
9+
}
10+
return value;
11+
}
12+
13+
var i;
14+
traces = [];
15+
names = ['cube', 'data', 'auto', 'manual'];
16+
for (i=1; i<5; i++){
17+
traces.push({
18+
x: getrandom(20, 4),
19+
y: getrandom(20, 3),
20+
z: getrandom(20, 5),
21+
opacity:0.5,
22+
mode: "markers",
23+
type: "mesh3d",
24+
scene: "scene" + i,
25+
name: names[i-1]
26+
}
27+
)
28+
}
29+
30+
var layout = {
31+
scene:{
32+
aspectmode:'cube',
33+
domain:{row:0, column:0}
34+
},
35+
scene2:{
36+
aspectmode:'data',
37+
domain:{row:1, column:0}
38+
},
39+
scene3:{
40+
aspectmode:'auto',
41+
domain:{row:0, column:1}
42+
},
43+
scene4:{
44+
aspectmode:'manual',
45+
aspectratio: {x:1, y:1, z:2},
46+
domain: {row:1, column:1}
47+
},
48+
grid:{
49+
pattern: 'independent',
50+
rows:2,
51+
columns:2
52+
},
53+
54+
};
55+
56+
Plotly.plot('myDiv', traces, layout);
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
var data = [
22
{
3-
x: [0.0, 0.10101010101, 0.20202020202, 0.30303030303, 0.40404040404, 0.505050505051, 0.606060606061, 0.707070707071, 0.808080808081, 0.909090909091, 1.0101010101, 1.11111111111, 1.21212121212, 1.31313131313, 1.41414141414, 1.51515151515, 1.61616161616, 1.71717171717, 1.81818181818, 1.91919191919, 2.0202020202, 2.12121212121, 2.22222222222, 2.32323232323, 2.42424242424, 2.52525252525, 2.62626262626, 2.72727272727, 2.82828282828, 2.92929292929, 3.0303030303, 3.13131313131, 3.23232323232, 3.33333333333, 3.43434343434, 3.53535353535, 3.63636363636, 3.73737373737, 3.83838383838, 3.93939393939, 4.0404040404, 4.14141414141, 4.24242424242, 4.34343434343, 4.44444444444, 4.54545454545, 4.64646464646, 4.74747474747, 4.84848484848, 4.94949494949, 5.05050505051, 5.15151515152, 5.25252525253, 5.35353535354, 5.45454545455, 5.55555555556, 5.65656565657, 5.75757575758, 5.85858585859, 5.9595959596, 6.06060606061, 6.16161616162, 6.26262626263, 6.36363636364, 6.46464646465, 6.56565656566, 6.66666666667, 6.76767676768, 6.86868686869, 6.9696969697, 7.07070707071, 7.17171717172, 7.27272727273, 7.37373737374, 7.47474747475, 7.57575757576, 7.67676767677, 7.77777777778, 7.87878787879, 7.9797979798, 8.08080808081, 8.18181818182, 8.28282828283, 8.38383838384, 8.48484848485, 8.58585858586, 8.68686868687, 8.78787878788, 8.88888888889, 8.9898989899, 9.09090909091, 9.19191919192, 9.29292929293, 9.39393939394, 9.49494949495, 9.59595959596, 9.69696969697, 9.79797979798, 9.89898989899, 10.0],
3+
x: [0.0, 0.1, 0.2, 0.3, 0.4, 0.51, 0.61, 0.71, 0.81, 0.91, 1.01, 1.11, 1.21, 1.31, 1.41, 1.52, 1.62, 1.72, 1.82, 1.92, 2.02, 2.12, 2.22, 2.32, 2.42, 2.53, 2.63, 2.73, 2.83, 2.93, 3.03, 3.13, 3.23, 3.33, 3.43, 3.54, 3.64, 3.74, 3.84, 3.94, 4.04, 4.14, 4.24, 4.34, 4.44, 4.55, 4.65, 4.75, 4.85, 4.95, 5.05, 5.15, 5.25, 5.35, 5.45, 5.56, 5.66, 5.76, 5.86, 5.96, 6.06, 6.16, 6.26, 6.36, 6.46, 6.57, 6.67, 6.77, 6.87, 6.97, 7.07, 7.17, 7.27, 7.37, 7.47, 7.58, 7.68, 7.78, 7.88, 7.98, 8.08, 8.18, 8.28, 8.38, 8.48, 8.59, 8.69, 8.79, 8.89, 8.99, 9.09, 9.19, 9.29, 9.39, 9.49, 9.6, 9.7, 9.8, 9.9, 10.0],
44
y: [63, 65, 78, 92, 12, 50, 17, 31, 1, 25, 76, 66, 83, 38, 95, 23, 20, 88, 31, 26, 39, 74, 11, 84, 7, 13, 30, 85, 80, 47, 12, 89, 12, 35, 99, 78, 77, 56, 26, 13, 96, 55, 19, 88, 31, 1, 42, 39, 99, 62, 68, 61, 45, 44, 10, 25, 89, 82, 28, 2, 24, 1, 32, 16, 29, 40, 55, 75, 20, 41, 67, 33, 92, 14, 16, 22, 86, 55, 37, 42, 42, 85, 60, 11, 54, 3, 34, 29, 59, 28, 25, 67, 90, 10, 29, 16, 51, 17, 2, 34],
55
mode: "markers"
66
}
77
];
88
var layout = {
99
title: "Reversed Axis with Min/Max",
1010
xaxis: {
11-
autorange: "reversed",
12-
range: [0, 10]
11+
range: [10, 0]
1312
}
1413
};
1514
Plotly.plot('myDiv', data, layout);
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
Plotly.d3.csv('https://raw.githubusercontent.com/michaelbabyn/plot_data/master/sin_saddle.csv', function(err, rows){
2+
function unpack(rows, key) {
3+
return rows.map(function(row) { return row[key]; });
4+
}
5+
6+
var z_data = [ ];
7+
for(i=0;i<100;i++)
8+
{
9+
z_data.push(unpack(rows,i));
10+
}
11+
12+
var data = [{
13+
z: z_data,
14+
type: 'surface',
15+
colorscale: 'Viridis',
16+
lighting: {ambient: 0.9}
17+
},
18+
{
19+
z: z_data,
20+
type: 'surface',
21+
scene: 'scene2',
22+
colorscale:'Viridis',
23+
lighting: {ambient: 0.2}
24+
}
25+
];
26+
27+
var layout = {
28+
title: 'Ambient Lighting',
29+
grid: {
30+
rows: 1,
31+
columns: 2,
32+
pattern: 'independent',
33+
},
34+
scene:{
35+
aspectmode:'cube',
36+
domain:{row:0, column:0}
37+
},
38+
scene2:{
39+
aspectmode:'cube',
40+
domain:{row:0, column:1}
41+
}
42+
};
43+
Plotly.newPlot('myDiv', data, layout);
44+
});
45+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
Plotly.d3.csv('https://raw.githubusercontent.com/michaelbabyn/plot_data/master/sin_saddle.csv', function(err, rows){
2+
function unpack(rows, key) {
3+
return rows.map(function(row) { return row[key]; });
4+
}
5+
6+
var z_data = []
7+
for(i=0;i<100;i++)
8+
{
9+
z_data.push(unpack(rows,i));
10+
}
11+
12+
var data = [{
13+
z: z_data,
14+
type: 'surface',
15+
colorscale:'Viridis',
16+
lighting: {diffuse: 0.9}
17+
},
18+
{
19+
z: z_data,
20+
type: 'surface',
21+
scene: 'scene2',
22+
colorscale:'Viridis',
23+
lighting: {diffuse: 0.1}
24+
}
25+
];
26+
27+
var layout = {
28+
title: 'Diffuse Reflection',
29+
grid: {
30+
rows: 1,
31+
columns: 2,
32+
pattern: 'independent',
33+
},
34+
scene:{
35+
aspectmode:'cube',
36+
domain:{row:0, column:0}
37+
},
38+
scene2:{
39+
aspectmode:'cube',
40+
domain:{row:0, column:1}
41+
}
42+
};
43+
Plotly.newPlot('myDiv', data, layout);
44+
});
45+

2018/11/22/surface_fresnel.html

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
Plotly.d3.csv('https://raw.githubusercontent.com/michaelbabyn/plot_data/master/sin_saddle.csv', function(err, rows){
2+
function unpack(rows, key) {
3+
return rows.map(function(row) { return row[key]; });
4+
}
5+
6+
var z_data = [];
7+
for(i=0;i<100;i++)
8+
{
9+
z_data.push(unpack(rows,i));
10+
}
11+
12+
var data = [{
13+
z: z_data,
14+
type: 'surface',
15+
colorscale:'Viridis',
16+
lighting: {fresnel: 0.1}
17+
},
18+
{
19+
z: z_data,
20+
type: 'surface',
21+
scene: 'scene2',
22+
colorscale:'Viridis',
23+
lighting: {fresnel: 5}
24+
}
25+
];
26+
27+
var layout = {
28+
title: 'Fresnel',
29+
grid: {
30+
rows: 1,
31+
columns: 2,
32+
pattern: 'independent',
33+
},
34+
scene:{
35+
aspectmode:'cube',
36+
domain:{row:0, column:0}
37+
},
38+
scene2:{
39+
aspectmode:'cube',
40+
domain:{row:0, column:1}
41+
}
42+
};
43+
Plotly.newPlot('myDiv', data, layout);
44+
});
45+

2018/11/22/surface_reference.html

Whitespace-only changes.

2018/11/22/surface_roughness.html

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
Plotly.d3.csv('https://raw.githubusercontent.com/michaelbabyn/plot_data/master/sin_saddle.csv', function(err, rows){
2+
function unpack(rows, key) {
3+
return rows.map(function(row) { return row[key]; });
4+
}
5+
6+
var z_data = [];
7+
for(i=0;i<100;i++)
8+
{
9+
z_data.push(unpack(rows,i));
10+
}
11+
12+
var data = [{
13+
z: z_data,
14+
type: 'surface',
15+
colorscale:'Viridis',
16+
lighting: {roughness: 0.9}
17+
},
18+
{
19+
z: z_data,
20+
type: 'surface',
21+
scene: 'scene2',
22+
colorscale:'Viridis',
23+
lighting: {roughness: 0.2}
24+
}
25+
];
26+
27+
var layout = {
28+
title: 'Roughness',
29+
grid: {
30+
rows: 1,
31+
columns: 2,
32+
pattern: 'independent',
33+
},
34+
scene:{
35+
aspectmode:'cube',
36+
domain:{row:0, column:0}
37+
},
38+
scene2:{
39+
aspectmode:'cube',
40+
domain:{row:0, column:1}
41+
}
42+
};
43+
Plotly.newPlot('myDiv', data, layout);
44+
});
45+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
Plotly.d3.csv('https://raw.githubusercontent.com/michaelbabyn/plot_data/master/sin_saddle.csv', function(err, rows){
2+
function unpack(rows, key) {
3+
return rows.map(function(row) { return row[key]; });
4+
}
5+
6+
var z_data = [];
7+
for(i=0;i<100;i++)
8+
{
9+
z_data.push(unpack(rows,i));
10+
}
11+
12+
var data = [{
13+
z: z_data,
14+
type: 'surface',
15+
colorscale:'Viridis',
16+
lighting: {specular: 0.1}
17+
},
18+
{
19+
z: z_data,
20+
type: 'surface',
21+
scene: 'scene2',
22+
colorscale:'Viridis',
23+
lighting: {specular: 2}
24+
}
25+
];
26+
27+
var layout = {
28+
title: 'Specular Reflection',
29+
grid: {
30+
rows: 1,
31+
columns: 2,
32+
pattern: 'independent',
33+
},
34+
scene:{
35+
aspectmode:'cube',
36+
domain:{row:0, column:0}
37+
},
38+
scene2:{
39+
aspectmode:'cube',
40+
domain:{row:0, column:1}
41+
},
42+
};
43+
Plotly.newPlot('myDiv', data, layout);
44+
});
45+

get_plotschema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
plotschema = requests.get('https://api.plot.ly/v2/plot-schema/?sha1=%27%27',
77
headers={'plotly-client-platform': 'python'},
88
auth=('plotly_docs', 'ikwqmjam2o')).content
9-
f = open('_data/plotschema.json', 'w')
9+
f = open('_data/plotschema.json', 'wb')
1010
f.write(plotschema)

0 commit comments

Comments
 (0)