ticker

How to specify n-th ticker for bokeh plot from python side, where n is the number of tickers

ぐ巨炮叔叔 提交于 2019-12-02 05:27:53
The other day, I asked about how to control tickers: How to show only evey nth categorical tickers in Bokeh Now I need to supply n from outside of Coffeescript, where n is the every n-th ticker. Based on the code snippet provided by bigreddot and by referring to the code examples shown below links: https://bokeh.pydata.org/en/latest/docs/user_guide/extensions_gallery/widget.html#userguide-extensions-examples-widget How do I use custom labels for ticks in Bokeh? I came up with the following very minimal code although I don't have knowledge about Coffescript. In fact, however, it does not work.

Matplotlib: xticks every 15 minutes, starting on the hour

一曲冷凌霜 提交于 2019-12-01 05:01:32
I am trying to plot values of temperature against time with the time formatted as HH:MM. I am able to set the xticks to recur every 15 minutes but the first tick is at the first time (e.g. 04:40). Is there a way to shift the ticks to occur on the hour and on the concurrent quarter-hours (04:45, 05:00, 05:15, etc.)? My current code is as follows: import matplotlib.pyplot as plt import matplotlib.dates as md import datetime as dt ## Dummy times and temperatures time = [dt.datetime(2017,2,15,4,40),dt.datetime(2017,2,15,4,46),dt.datetime(2017,2,15,4,52),dt.datetime(2017,2,15,4,58),dt.datetime(2017

Yahoo Finance API stock/ticker lookup only allowing exact match

落爺英雄遲暮 提交于 2019-11-30 05:03:36
Until yesterday a query such as this http://autoc.finance.yahoo.com/autoc?query=a&callback=YAHOO.Finance.SymbolSuggest.ssCallback yielded a long list of fuzzy/broadmatch results for both ticker and company name. Since today you are a.) required to specific region and language and b.) it is only yielding exact match results only for the ticker and not for the company name. Thus usually you get only one results back. Thus for http://autoc.finance.yahoo.com/autoc?query=y&region=US&lang=en&callback=YAHOO.Finance.SymbolSuggest.ssCallback there's now only one result: YAHOO.Finance.SymbolSuggest

Ticker Stop behaviour in Golang

无人久伴 提交于 2019-11-30 02:04:25
If I am ranging over a ticker channel and call stop() the channel is stopped but not closed. In this Example: package main import ( "time" "log" ) func main() { ticker := time.NewTicker(1 * time.Second) go func(){ for _ = range ticker.C { log.Println("tick") } log.Println("stopped") }() time.Sleep(3 * time.Second) log.Println("stopping ticker") ticker.Stop() time.Sleep(3 * time.Second) } Running produces: 2013/07/22 14:26:53 tick 2013/07/22 14:26:54 tick 2013/07/22 14:26:55 tick 2013/07/22 14:26:55 stopping ticker So that goroutine never exits. Is there a better way to handle this case? Should

Golang: Implementing a cron / executing tasks at a specific time

孤者浪人 提交于 2019-11-30 01:45:12
I have been looking around for examples on how to implement a function that allows you to execute tasks at a certain time in Go, but I couldn't find anything. I implemented one myself and I am sharing it in the answers, so other people can have a reference for their own implementation. This is a general implementation, which lets you set: interval period hour to tick minute to tick second to tick UPDATED: (the memory leak was fixed) import ( "fmt" "time" ) const INTERVAL_PERIOD time.Duration = 24 * time.Hour const HOUR_TO_TICK int = 23 const MINUTE_TO_TICK int = 00 const SECOND_TO_TICK int =

An automatically scrolling live ticker (like the “Top Tweets” of Twitter)

馋奶兔 提交于 2019-11-29 00:14:17
Is there a good Javascript library for generating an automatically scrolling list like the "Top Tweets" on the Twitter homepage? Preferable as jQuery plugin. It should also support AJAX functionality (to add new list items dynamically). As we were not really satisfied with the existing solutions we implemented one from scratch. Our solution is a fully jQuery UI compatible ticker plugin (also compatible with their theming framework) and fully unit tested. We didn't yet have the time to test it under every browser, so feedback is welcome (for problems please open issues on the below Github

How to show only evey nth categorical tickers in Bokeh

我与影子孤独终老i 提交于 2019-11-28 10:18:39
问题 There was the same question two years ago. It seemed that evey nth categorical tickers was not supported at that time. https://stackoverflow.com/questions/34949298/python-bokeh-show-only-every-second-categorical-ticker My bokeh version is 0.12.13. I wonder it is supported now. Simply setting p.xaxis.ticker = ['A', 'B, 'C'] does not work(error is thrown) In my dashbaord, the initial plot size is one quarter of browser view port and the x axis is crowded with many ticker and labels. So I want

Continuously scrolling horizontal ticker containing images in jQuery?

笑着哭i 提交于 2019-11-28 06:26:04
I would like to do something like this: http://javascript.about.com/library/blcmarquee1.htm The script I referenced however seems to be a bit laggy (outdated?), so I was wondering if anyone knew of a better solution. (jQuery solutions welcome.) megaSteve4 Just found this — jQuery-driven, and has images. I’m intending to use it for a current project. http://logicbox.net/jquery/simplyscroll/ UPDATE: I have now used this in production code. The plugin is capable of looping 70+ 150×65px images pretty smoothly - which a number of another plugin I tried similar to this were failing on. NOTE it

Continuously scrolling horizontal ticker containing images in jQuery?

别等时光非礼了梦想. 提交于 2019-11-27 01:25:33
问题 I would like to do something like this: http://javascript.about.com/library/blcmarquee1.htm The script I referenced however seems to be a bit laggy (outdated?), so I was wondering if anyone knew of a better solution. (jQuery solutions welcome.) 回答1: Just found this — jQuery-driven, and has images. I’m intending to use it for a current project. http://logicbox.net/jquery/simplyscroll/ UPDATE: I have now used this in production code. The plugin is capable of looping 70+ 150×65px images pretty