Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Commit 14df226

Browse files
Fix extension
1 parent a49a913 commit 14df226

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎lib/matplotlib/_plotly_helpers.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ def save(cls, fig):
1010
try:
1111
plot = tools.mpl_to_plotly(fig)
1212
json = plot.to_json()
13-
timestamp = datetime.utcnow()
14-
file = open("plots/{}.html".format(timestamp), "w")
13+
timestamp = datetime.utcnow().timestamp()
14+
file = open("plots/{}.json".format(timestamp), "w")
1515
file.write(json)
1616
file.close()
1717
except:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /