- Real-time updates to mplfinance plots are accomplished through the technique known as "animation"
mplfinance
animation requires the use ofmplfinance
External Axes Mode- External Axes Mode allows mplfinance users to create and manage their own Figure and Axes (SubPlots), and pass Axes objects into mplfinance. This also gives users access to matplotlib's animation features.
- It can be tricky to display animations properly in jupyter notebooks,
therefore, to keep things simple, the mplfinance animation examples are scripts. - To run the animation examples, clone this repository, then
cd
into themplfinance/examples
folder, and run: - NOTE: There are comments, in each of the above example files, that explain what's going on and how to use animation with mplfinance. You can view the code by clicking each of the above links.