3xhile
(Gerald Tiel)
October 16, 2021, 4:35am
1
Hi,
I’m trying to get BTC prices in a graph but it won’t display the values on the y-axis. It has 440 BTC prices stored. Here is the code:
plt.subplot(2,1,1)
r = list(range(0,440))
f = pl
plt.plot(r,f)
plt.title(‘1st subplot’)
plt.show()
Any help would be greatly appreciated.
ullix
(Ullix)
October 16, 2021, 7:39am
2
Why is it even possible to plot 400 y values over 440 x-values?
You are not showing the content of ‘pl’. What is it?
3xhile
(Gerald Tiel)
October 16, 2021, 3:45pm
3
It’s 440 values that were stored, I wrote it down wrongly. pl is the list with BTC prices.
ullix
(Ullix)
October 17, 2021, 11:40am
4
What the numbers stand for is not relevant for programming. Though it is kind of odd that real world prices are sequential numbers, except for two outliers?
Give e.g the first 5 list items of pl, plus the maximum and minimum entry in pl.
3xhile
(Gerald Tiel)
October 17, 2021, 2:44pm
5
No the graph is displaying it wrong. The numbers are all between 50k and 52k, the BTC prices during the that time. How is this possible ?