摘要
虽然mplfinance提供了便捷的K线图绘制功能,但其仅包含基本的K线图绘制函数,缺乏支持用户与K线图之间各种交互的功能。通过对键盘事件和鼠标事件的响应,用户可以利用键盘执行K线图的缩放和平移操作,通过移动鼠标查看特定位置的数据,从而实现与K线图的互动。
Although mplfinance can conveniently plot candlestick charts,it only provides basic functions for drawing candlestick charts and lacks various interactions between users and the chart.By responding to keyboard and mouse events,users can zoom in and out or pan the chart using the keyboard,and view data related to the mouse position by moving the mouse,thus achieving interaction between users and the candlestick chart.
作者
刘华煜
LIU Huayu(School of Mathematical Science,Luoyang Normal University,Luoyang,Henan 471934,China)
出处
《计算机应用文摘》
2023年第24期71-73,76,共4页
Chinese Journal of Computer Application