10000 Update plotly.py · punalpatel/python-api@b7888fd · GitHub
[go: up one dir, main page]

Skip to content

Commit b7888fd

Browse files
committed
Update plotly.py
1 parent d51b52b commit b7888fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plotly/plotly.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ def plot(self, *args, **kwargs):
8787
pass
8888
return res
8989

90-
def fig2plotly(self, fig):
90+
def fig2plotly(self, fig, **kwargs):
9191
try:
9292
import matplotlylib
9393
except as e:
94-
print("Uh oh! matplotlylib not installed. Install with pip (depends on matplotlib):\n$ sudo pip install matplotlylib")
94+
print("Aw, snap! matplotlylib not installed. Install with pip (depends on matplotlib):\n$ sudo pip install matplotlylib")
9595
raise e
96-
matplotlylib.fig2plotly(fig, username=self.username, key=self.api_key)
96+
matplotlylib.fig2plotly(fig, username=self.un, api_key=self.key, **kwargs)
9797

9898
def __callplot(self, *args, **kwargs):
9999
''' Make a plot in plotly.

0 commit comments

Comments
 (0)
0