furechan / mplchart

Classic Stock Charts in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chart.plot isn't plotting

eldargoren opened this issue · comments

Hi, this project looks amazing.
I couldn't print the chart for some reason so I just copied the demo but it didn't do anything,
Any Idea why?

image

I do have data in prices dataframe.

Hi @eldargoren,

The example in the README is meant to be run from a notebook cell. When running from a script you have to call chart.show() or alternatively plt.show() after chart.plot(...). See chart-from-script.py in the examples folder. I will try and clarify the README ...

Thanks!
But it’s pretty weird because I ran it in a notebook cell. I Will try soon your suggestion.

@furechan
Also nothing :(
image

Hi,

Not sure what is going on. Maybe you have a custom notebook/matplotlib configuration ?

Few things to try:

  1. Check Matplotlib backend
import matplotlib as mpl
mpl.get_backend()
  1. Try matplotlib inline if not already configured inline
%matplotlib inline
  1. Try an empty plot to make sure matplotlib works
import matplotlib.pyplot as plt
plt.plot()
plt.show()

Hope this helps ...

You're a genius!
Probably an import of something of matplotlib screwed this up, idk which one.
The graphs are truly amazing.
Thanks!