These are chat archives for jheinen/GR.jl

28th
Mar 2016
Spencer Russell
@ssfrr
Mar 28 2016 04:23
GR.jl is super impressive. I'm interested in realtime plots and it was super easy to get up and running and the plots are really responsive. I put together an example in the PortAudio.jl repo. In general are you expecting that people will use Plots.jl rather than GR.jl directly? Does the Plots.jl interface support doing the interactive realtime updates?
This message was deleted
Josef Heinen
@jheinen
Mar 28 2016 08:43
Happy to see that you can use GR for realtime graphics. It is the developers' choice whether to use Plots.jl, the GR.jl convenience layer or GR.jl directly - there should be minimal overhead. I replaced the GR functions by one(!) (MATLAB-like) convenience function: plot(fs, abs(fft(buf)[fmin..fmax]), xlim=(fs[1],fs[end]), ylim=(0,100), xlog=true) - and it turns out that your script is still responsive.
Spencer Russell
@ssfrr
Mar 28 2016 15:58
Awesome. I was going to ask if there was a way to get axes on the plot without manually specifying the ticks, so this is great. One issue is that the x axis doesn't appear to be log-scale and I get a stream of "auto-adjust X tick marks" printed to STDOUT
Josef Heinen
@jheinen
Mar 28 2016 16:12
@ssfrr please ensure that fs[1] is > 0 :smile:
Spencer Russell
@ssfrr
Mar 28 2016 16:13
ah, OK. makes sense. I suppose better to throw the warning and rescale rather than throw away the DC data. :)