filmov
tv
My Matplotlib multiple line plot is wrong

Показать описание
In the last video, we saw how to strip non-numerical characters from the Australian Stock Exchange (ASX) stock price percentage change data. This was obtained from an ASX URL that stores historical stock price data in the JSON format. In this video, I attempt to do a multiple line plot of “change in percent” for 5 ASX listed companies with Matplotlib. I then show that an interesting problem arises with my Matplotlib multiple line plot.
Note in the two lines of code:-
# 1 by 1 sub-plot 1st plot for the legend box
the comment above is incorrect. The Matplotlib function gca() gets current axes or creates one.
References
The ASX website:
Pandas:
JSON:
Anaconda Web Page:
Anaconda YouTube Channel:
Note in the two lines of code:-
# 1 by 1 sub-plot 1st plot for the legend box
the comment above is incorrect. The Matplotlib function gca() gets current axes or creates one.
References
The ASX website:
Pandas:
JSON:
Anaconda Web Page:
Anaconda YouTube Channel: