コード例 #1
0
 def plot_history_dialog(self):
     if plot_history is None:
         self.parent.show_message(
             _("Can't plot history.") + '\n' +
             _("Perhaps some dependencies are missing...") + " (matplotlib?)")
         return
     try:
         plt = plot_history(self.transactions)
         plt.show()
     except NothingToPlotException as e:
         self.parent.show_message(str(e))
コード例 #2
0
ファイル: history_list.py プロジェクト: ivansib/electrum-sib
 def plot_history_dialog(self):
     if plot_history is None:
         self.parent.show_message(
             _("Can't plot history.") + '\n' +
             _("Perhaps some dependencies are missing...") + " (matplotlib?)")
         return
     try:
         plt = plot_history(self.transactions)
         plt.show()
     except NothingToPlotException as e:
         self.parent.show_message(str(e))
コード例 #3
0
 def plot_history_dialog(self):
     if plot_history is None:
         self.parent.show_message(
             _("Can't plot history.") + '\n' +
             _("Perhaps some dependencies are missing...") + " (matplotlib?)")
         return
     try:
         res = []
         for tx_item, children in self.hm.tx_tree[::-1]:
             if children:
                 res.extend(children[::-1])
             res.append(tx_item)
         plt = plot_history(res)
         plt.show()
     except NothingToPlotException as e:
         self.parent.show_message(str(e))