График не отображается - PullRequest
0 голосов
/ 03 июня 2019

Отображаются детали графика (оси, метки, легенда, заголовок). Но фактическая линия сюжета не отображается.

Здесь код

import numpy as np
import matplotlib.pyplot as mpl
from sklearn.preprocessing import scale
from TFANN import ANNR
from google.colab import files

#reads data from the file and ceates a matrix with only the dates and the prices 

stock_data = np.loadtxt('FB.csv', delimiter=",", skiprows=1, usecols=(1, 4))

#scales the data to smaller values
stock_data=scale(stock_data)

#gets the price and dates from the matrix
prices = stock_data[:, 1].reshape(-1, 1)
dates = stock_data[:, 0].reshape(-1, 1)

#creates a plot of the data and then displays it
mpl.plot(dates[:, 0], prices[:, 0], label='5 Year Chart')
#
mpl.xticks(rotation=70)
mpl.xlabel("Year")
mpl.ylabel("Price")
mpl.xlim(2015,2019)
mpl.ylim(50,250)
mpl.legend()
mpl.title('Trend Analysis')

mpl.show()

пожалуйста, помогите

...