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

Skip to content

Commit bdeb41f

Browse files
author
Joseph Damiba
committed
updating plot to newPlot()
1 parent ddff2e1 commit bdeb41f

File tree

151 files changed

+158
-158
lines changed

Some content is hidden

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

151 files changed

+158
-158
lines changed

_posts/plotly_js/2015-04-05-plotly_js-index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ <h1>Plotly JavaScript Open Source Graphing Library</h1>
5858
x: 0, y: 0, xref: 'paper', yref: 'paper'
5959
}]
6060
}
61-
Plotly.plot(document.getElementById('contour-plot'), [trace], layout, {showLink: false});
61+
Plotly.newPlot(document.getElementById('contour-plot'), [trace], layout, {showLink: false});
6262
});</code></pre>
6363

6464

@@ -104,7 +104,7 @@ <h1>Plotly JavaScript Open Source Graphing Library</h1>
104104
}
105105
};
106106

107-
Plotly.plot(document.getElementById('wind-speed'), [trace], layout, {showLink: false});
107+
Plotly.newPlot(document.getElementById('wind-speed'), [trace], layout, {showLink: false});
108108
});</code></pre>
109109

110110

_posts/plotly_js/2015-07-21-plotlyjs-getting-started.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,18 @@ <h2 >Start plotting!</h2>
6464
<pre><code class="hljs html">&lt;div id="tester" style="width:600px;height:250px;"&gt;&lt;/div&gt;</code></pre>
6565

6666
<p>
67-
Now you can make interactive plotly.js charts using <code class="no-padding">Plotly.plot()</code>.
67+
Now you can make interactive plotly.js charts using <code class="no-padding">Plotly.newPlot()</code>.
6868
</p>
6969
<pre><code class="hljs javascript">&lt;script&gt;
7070
TESTER = document.getElementById('tester');
71-
Plotly.plot( TESTER, [{
71+
Plotly.newPlot( TESTER, [{
7272
x: [1, 2, 3, 4, 5],
7373
y: [1, 2, 4, 8, 16] }], {
7474
margin: { t: 0 } } );
7575
&lt;/script&gt;</code></pre>
7676

7777
<p>
78-
Now you can pass Plotly.plot() either the ID of the DIV ("tester") or the DIV DOM element (<code class="no-padding">TESTER</code>).
78+
Now you can pass Plotly.newPlot() either the ID of the DIV ("tester") or the DIV DOM element (<code class="no-padding">TESTER</code>).
7979
</p>
8080

8181
</div>

_posts/plotly_js/3d/3d-cone/2018-06-12-basic-3d-cone.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
}
2222
}
2323

24-
Plotly.plot('myDiv',data,layout)
24+
Plotly.newPlot('myDiv',data,layout)

_posts/plotly_js/3d/3d-cone/2018-06-12-lighting.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,4 @@
123123
margin: {t: 0, b: 0, l: 0, r: 0}
124124
}
125125

126-
Plotly.plot('myDiv',data,layout)
126+
Plotly.newPlot('myDiv',data,layout)

_posts/plotly_js/3d/3d-cone/2018-06-12-multiple-3d-cone.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@
3535
width: 800
3636
}
3737

38-
Plotly.plot('myDiv', data, layout)
38+
Plotly.newPlot('myDiv', data, layout)

_posts/plotly_js/3d/3d-line/2015-04-09-3d-line-spiral.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
c.push(i)
2424
}
2525

26-
Plotly.plot('myDiv', [{
26+
Plotly.newPlot('myDiv', [{
2727
type: 'scatter3d',
2828
mode: 'lines',
2929
x: x,

_posts/plotly_js/3d/3d-line/2015-04-09-simple-3d-line+markers.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
c.push(i)
2424
}
2525

26-
Plotly.plot('myDiv', [{
26+
Plotly.newPlot('myDiv', [{
2727
type: 'scatter3d',
2828
mode: 'lines+markers',
2929
x: x,

_posts/plotly_js/3d/3d-line/2015-04-09-simple-3d-line-plot.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
var y = unpack(rows , 'y');
1616
var z = unpack(rows , 'z');
1717
var c = unpack(rows , 'color');
18-
Plotly.plot('myDiv', [{
18+
Plotly.newPlot('myDiv', [{
1919
type: 'scatter3d',
2020
mode: 'lines',
2121
x: x,

_posts/plotly_js/3d/3d-mesh/2016-06-16-cube-mesh.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@
2626
}
2727
];
2828

29-
Plotly.plot('myDiv', data, {});
29+
Plotly.newPlot('myDiv', data, {});

_posts/plotly_js/3d/3d-mesh/2016-06-16-tetrahedron.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
}
2424
];
2525

26-
Plotly.plot('myDiv', data, {});
26+
Plotly.newPlot('myDiv', data, {});

0 commit comments

Comments
 (0)