ffn plot on pycharm
pedroabi opened this issue · comments
I have been using matplotlib to plot some charts on pycharm IDE
import matplotlib.pyplot as plt
plt.plot([1, 2, 3, 4, 5])
plt.show()
It has been working.
I have imported ffn and now my chart, the pycharm is not plotting my chart anymore. I suppose that the import is overwritting configuration
import ffn
Any suggestion?
Just got it!
if "DISPLAY" not in os.environ:
if matplotlib.__version__ > "2.":
matplotlib.use("agg", force=False)
else:
matplotlib.use("agg", warn=False)
os.environ["DISPLAY"] = "TRUE"