Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

    Charts very slow to resize

    General Code/Help
    2
    5
    555
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      deedy last edited by

      Some of my plots have many data points.

      At some point, these plots become unresponsive.

      (1) Are there any settings to plot only a subset of values?

      (2) I also suspect that MultiCursor may be slowing things down as well. I tried commenting out (in plot.py):

              cursor = MultiCursor(
                  fig.canvas, list(self.pinf.daxis.values()),
                  useblit=True,
                  horizOn=True, vertOn=True,
                  horizMulti=False, vertMulti=True,
                  horizShared=True, vertShared=False,
                  color='black', lw=1, ls=':')
      
              self.pinf.cursors.append(cursor)
      

      But that breaks things.

      Any thoughts?

      1 Reply Last reply Reply Quote 0
      • B
        backtrader administrators last edited by

        Read the Docs: Docs - Plotting Date Ranges

        1 Reply Last reply Reply Quote 0
        • D
          deedy last edited by

          Thank you. I was looking for something that will "sparsify" the data, like for every 10 points only plot 1.

          Also, is there a way to disable the MultiCursor?

          Kind Regards

          1 Reply Last reply Reply Quote 0
          • B
            backtrader administrators last edited by

            Mock it! Monkey patch the module and create a Mock class which does nothing.

            1 Reply Last reply Reply Quote 0
            • D
              deedy last edited by

              Thanks I'll try it out

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Copyright © 2016, 2017, 2018 NodeBB Forums | Contributors
              $(document).ready(function () { app.coldLoad(); }); }