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/

    Get chart as matplotlib figure

    General Code/Help
    2
    3
    62
    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.
    • P
      ph-l-pp last edited by

      I created a custom dashboard to display information about the back test. I would like to be able to add the chart (cerebro.plot()) to this dashboard. In order to achieve this I would need to be able to get the matplotlib figure object. Is there a way to get the figure without displaying it?

      Thanks

      1 Reply Last reply Reply Quote 0
      • run-out
        run-out last edited by

        @ph-l-pp I'm sure there's an easier and more elegant solution, but this works.

        RunBacktest.com

        1 Reply Last reply Reply Quote 2
        • P
          ph-l-pp last edited by

          @run-out Exactly what I needed. Thank you.

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors