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



  • 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.


  • administrators

    @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:


Log in to reply
 

});