本文整理匯總了Python中Plotter.Plotter.globe_plotter方法的典型用法代碼示例。如果您正苦於以下問題:Python Plotter.globe_plotter方法的具體用法?Python Plotter.globe_plotter怎麽用?Python Plotter.globe_plotter使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Plotter.Plotter
的用法示例。
在下文中一共展示了Plotter.globe_plotter方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: make_test_data
# 需要導入模塊: from Plotter import Plotter [as 別名]
# 或者: from Plotter.Plotter import globe_plotter [as 別名]
make_test_data()
list_of_names_to_fetch_intraday_reports_for = [
'hari_intraday',
]
list_of_names_to_fetch_EoD_reports_for = [
'hari',
]
today2pm = datetime.datetime.now().replace(
hour=14, minute=0,
second=0, microsecond=0
)
# while datetime.datetime.now() < today2pm:
while True:
time.sleep(1) # sleep for 15 seconds
print 'woke up at : {}'.format(time.ctime())
print Report(list_of_names_to_fetch_intraday_reports_for)
print 'sleeping at : {}'.format(time.ctime())
# update the End-of-Day prices with intraday
# wipe away intraday prices
print Report(list_of_names_to_fetch_EoD_reports_for)
Plotter.globe_plotter(Plotter.get_plot_buffer())
# after everything is done
My_db_class.close_db()