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/

    Plotnames in Bokeh too long

    General Code/Help
    2
    4
    428
    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.
    • F
      FredYellow last edited by

      Hello all,

      An annoying problem I've been struggling to fix is that the names of the lines I plot are too long. This makes the graph quite unreadable as you can see in the attached screenshot.

      0_1556127031782_Untitled.png

      My classname is Levels and the plotlines are 1..5. It's the whole section in the red rectangles that I'd like to remove.

      I know this problem is probably more related to Bokeh as opposed to BT, however I think it'll be very useful for some BT users as Bokeh plotting offers such versatility.

      Anyone have any advice?

      F 1 Reply Last reply Reply Quote 0
      • F
        FredYellow @FredYellow last edited by

        @FredYellow Bump

        1 Reply Last reply Reply Quote 0
        • F
          FredYellow last edited by

          Fixed using
          def _plotlabel(self)

          1 Reply Last reply Reply Quote 0
          • vbs
            vbs last edited by

            Sorry, I didn't see this thread earlier. Does it still happend in 1.0.0? If yes then could you post an example of the code that produced this in the plotting thread or as a Github issue? Thanks.

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