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/

    Weired plot when log Y-axis

    General Code/Help
    plotting
    2
    3
    350
    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.
    • M
      malemale last edited by

      Re: plot with logarithmic y axis
      0_1547574957430_wrongLog.png image url)

      When trying to plot a log with

      data.plotinfo.plotlog = True
      data.plotinfo.plotylimited = True
      

      all the buy/sells move to the upper margin and the whole OHLC is not really seen anymore.
      Given that also the price tag on the left moved up, it is like everything was compressed to one line on the upper margin

      The code is a very straight forward copy from the documentation and runs well without any other setup:
      https://github.com/rolandkofler/midterm/blob/master/Basic.py

      thanks

      1 Reply Last reply Reply Quote 0
      • M
        malemale last edited by

        data.plotinfo.plotylimited = False if you plot log, is the correct answer

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

          Thank you ... you overtook me!

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