Skip to content

Commit 14d2203

Browse files
committed
Fixing necessary imports for 2d-denstiy string doc examples
1 parent 00e97a9 commit 14d2203

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plotly/tools.py

+4
Original file line numberDiff line numberDiff line change
@@ -1515,6 +1515,8 @@ def create_2D_density(x, y, colorscale='Earth', ncontours=20,
15151515
import plotly.plotly as py
15161516
from plotly.tools import FigureFactory as FF
15171517
1518+
import numpy as np
1519+
15181520
# Make data points
15191521
t = np.linspace(-1,1.2,2000)
15201522
x = (t**3)+(0.3*np.random.randn(2000))
@@ -1532,6 +1534,8 @@ def create_2D_density(x, y, colorscale='Earth', ncontours=20,
15321534
import plotly.plotly as py
15331535
from plotly.tools import FigureFactory as FF
15341536
1537+
import numpy as np
1538+
15351539
# Make data points
15361540
t = np.linspace(-1,1.2,2000)
15371541
x = (t**3)+(0.3*np.random.randn(2000))

0 commit comments

Comments
 (0)