Questions tagged [ticker]

357 questions
44
votes
6 answers

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

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…
Daniele B
  • 19,801
  • 29
  • 115
  • 173
26
votes
2 answers

tick frequency when using seaborn/matplotlib boxplot

I am plotting with seaborn a series of boxplots with sns.boxplot(full_array) where full_array contains 200 arrays. Therefore, I have 200 boxplots and ticks on the x-axis from 0 to 200. The xticks are too close to each other and I would like to show…
Michele
  • 263
  • 1
  • 3
  • 6
25
votes
5 answers

Ticker Stop behaviour in Golang

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 _ =…
whatupdave
  • 3,124
  • 5
  • 28
  • 32
19
votes
3 answers

How to handle onPause/onResume in Flutter App?

I'm new to Dart/Flutter and would like to build a simple app where a LinearProgressBar gets updated every second. Without getting too much into the actual code, I have the following setup working. A function that calculates the progress, based on…
forgemo
  • 4,634
  • 5
  • 22
  • 25
19
votes
3 answers

Continuously scrolling horizontal ticker containing images in jQuery?

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.)
Mathias Bynens
  • 144,855
  • 52
  • 216
  • 248
14
votes
2 answers

Matplotlib pyplot axes formatter

I have an image: Here in the y-axis I would like to get 5x10^-5 4x10^-5 and so on instead of 0.00005 0.00004. What I have tried so far is: fig = plt.figure() ax = fig.add_subplot(111) y_formatter =…
user3397243
  • 567
  • 2
  • 10
  • 20
13
votes
1 answer

Guava Ticker Cache expire

Google Guava tutorial said cache expiration can be tested with Ticker as my understanding, I can use it to force a quick expiration. am I right? but I tried in the following code, and it did not work, any suggestion? @Test public void…
user3644708
  • 2,466
  • 2
  • 16
  • 32
12
votes
4 answers

Yahoo Finance API stock/ticker lookup only allowing exact match

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…
jco40
  • 297
  • 3
  • 9
10
votes
2 answers

kilo (K) and mega (M) suffixes on matplotlib's axes

I would like to print values on axes not as 30000 or 7000000 but as 30K or 7M. It means to add K (kilo) suffix for x < 10^6 and M (mega) suffix for x >= 10^6. How can I do that? Current code snippet: ax = pylab.gca() formatter =…
Nikolay Vyahhi
  • 1,432
  • 1
  • 16
  • 30
10
votes
2 answers

Matplotlib: xticks every 15 minutes, starting on the hour

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…
user7606255
  • 101
  • 1
  • 1
  • 4
10
votes
4 answers

dynamically change ticker interval

I would like to change my ticker interval dynamically. I've written down an example to show you how I did. My use case is something else than an "accelerometer" but I hope that it gives you an idea. http://play.golang.org/p/6ANFnoE6pA package…
damoiser
  • 6,058
  • 3
  • 40
  • 66
8
votes
1 answer

How do you change ticks label sizes using Python's Bokeh?

I am new to bokeh and I'm trying to plot some data in a line plot. The x-axis, y-axis and thus the ticks should have a different size than default. Here is an example of my code: from bokeh.plotting import figure, show from bokeh.models import…
leo8a
  • 83
  • 1
  • 8
7
votes
2 answers

Can I turn off scientific notation in matplotlib bar chart?

I have a bar chart that looks like how I want it to look, except for the scientific notation on the y-axes. Some other solutions included using ax.yaxis.set_major_formatter(tick) which didn't work. Also, I tried checking whether this was an…
Avi
  • 73
  • 1
  • 3
7
votes
3 answers

Time Ticking in C# WPF MVVM

I am doing a program, which must have a clock hanging every second, main problem is that I am beginner in WPF and MVVM :) But otherwise my clock is running just not refreshing. I have special class for only Time and Date purpose. Here is my…
Pukaai
  • 367
  • 1
  • 4
  • 14
6
votes
1 answer

How to get a ticker symbol from a company name with the Google Finance API?

This matter (getting a symbol form a company name) has already been solved in the following thread with Yahoo's API and I found the first and third answers quite useful. I also noticed that the second answer dealt with Google Finance but it uses…
Plop
  • 61
  • 1
  • 1
  • 3
1
2 3
23 24