Skip to content

Commit

Permalink
Merge pull request #108 from xingetouzi/fix-plot
Browse files Browse the repository at this point in the history
fix plot numpy.int64 bug
  • Loading branch information
cheatm authored May 25, 2019
2 parents 0fa3cfd + 6beec02 commit a68586f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vnpy/trader/utils/htmlplot/xcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,8 @@ def align(self):
(number, _id, ikey)
] = index
aligned, allIndex = alignment(indexes, self.freq)
self.allIndex.update(allIndex.to_dict())
for key, value in allIndex.items():
self.allIndex[int(key)] = value
for key, value in aligned.items():
number, _id, ikey = key
self.figures[number].plots[_id].align(ikey, value)
Expand Down

0 comments on commit a68586f

Please sign in to comment.