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/

    new users, one error plotting

    General Discussion
    2
    2
    436
    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
      Mar Co last edited by

      Hello,

      I have just started to use backtrader. It lloks nice!
      I am getting the following error:

      /usr/local/lib/python3.6/dist-packages/backtrader/plot/plot.py:127: UserWarning:
      This call to matplotlib.use() has no effect because the backend has already
      been chosen; matplotlib.use() must be called before pylab, matplotlib.pyplot,
      or matplotlib.backends is imported for the first time.

      and the plot does not seem very nice.
      Do you have an idea why I am getting this error?

      Kindly let me know.
      Thanks.-
      Regards.

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

        @mar-co said in new users, one error plotting:

        This call to matplotlib.use() has no effect because the backend has already
        been chosen; matplotlib.use() must be called before pylab, matplotlib.pyplot,
        or matplotlib.backends is imported for the first time

        It would seem you already made a call to matplotlib or imported something. Or you are running inside an environment which does it for you.

        Or read this:

        • https://community.backtrader.com/topic/772/better-matplotlib-support-in-jupyter/
        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors