[julia-users] Ignoring NaNs

2014-02-05 Thread Roger Herikstad
Hi, Are there equivalent functions to Matlab's nanmean and nanstd, i.e. functions for computing mean and standard deviation while ignoring NaN's? It's simple to put something together, of course, e.g. function nanmean(x) mean(~isnan(x)) end but it would nice to have as part of Base, or perhap

[julia-users] Re: Announcement: JuliaBio SIG

2014-02-05 Thread Roger Herikstad
Hi! I'm a neuroscientist by trade and I would definitely be interested in this initiative. I've already started translating/rewriting some of our in-house analysis code from Matlab/Python to Julia (mostly information theory/neural coding related stuff) and I would be happy to share whatever I h

[julia-users] Winston scatter plot

2014-02-12 Thread Roger Herikstad
Hi, I'm enjoying the ease with which Winston allows me to create beautiful plots. However, I often have the need to create scatter plots consisting of ~1e5 points. This is currently too slow, and for those situations I resort to Matlab using the excellent Matlab.jl (https://github.com/lindahua

[julia-users] wildcard characters in shell commands

2014-02-19 Thread Roger Herikstad
Hi, I'm a bit surprised that this doesn't work _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_)| Documentation: http://docs.julialang.org _ _ _| |_ __ _ | Type "help()" to list help topics | | | | | | |/ _` | | | | |_| | | | (_| | | Version

[julia-users] Re: wildcard characters in shell commands

2014-02-19 Thread Roger Herikstad
at it is the shell who does the expansion, > and not ls. > > Ivar > > kl. 11:27:22 UTC+1 onsdag 19. februar 2014 skrev Roger Herikstad følgende: >> >> Hi, >> I'm a bit surprised that this doesn't work >> >> >> _ _ _(_)_

Re: [julia-users] wildcard characters in shell commands

2014-02-19 Thread Roger Herikstad
lob.glob("*.txt")) > > Cheers, Kevin > > On Wednesday, February 19, 2014, Roger Herikstad > wrote: > Hi, > I'm a bit surprised that this doesn't work > > _ _ _(_)_ | A fresh approach to technical computing > (_) | (_) (_)| Document

Re: [julia-users] Winston scatter plot

2014-02-27 Thread Roger Herikstad
y 13, 2014 2:24:25 PM UTC+8, Mike Nolta wrote: > > Thanks Roger! I'll give this a try. > > -Mike > > On Wed, Feb 12, 2014 at 11:57 PM, Roger Herikstad > > wrote: > > Hi, > > I'm enjoying the ease with which Winston allows me to create beautifu

Re: [julia-users] Winston scatter plot

2014-03-01 Thread Roger Herikstad
roper timing experiments to quantify the difference. On Saturday, March 1, 2014 11:10:56 PM UTC+8, Andreas Lobinger wrote: > > Hello colleague, > > On Friday, February 28, 2014 6:59:13 AM UTC+1, Roger Herikstad wrote: >> >> Hi all, >> I tried to get a better understandi

Re: [julia-users] Winston scatter plot

2014-03-01 Thread Roger Herikstad
much faster. I'll try running some proper timing > experiments to quantify the difference. > > On Saturday, March 1, 2014 11:10:56 PM UTC+8, Andreas Lobinger wrote: >> >> Hello colleague, >> >> On Friday, February 28, 2014 6:59:13 AM UTC+1, Roger Herik

[julia-users] Check for gui/console session (Mavericks)

2014-03-02 Thread Roger Herikstad
Hi list, While running some code in parallel on my Mavericks system using Julia Version 0.3.0-prerelease+1741, I needed to prevent importing Tk if the current user did not have a console session, as this would crash the worker processes. In case it might be of general interest, this was my solu

Re: [julia-users] Check for gui/console session (Mavericks)

2014-03-03 Thread Roger Herikstad
I tried that, but my scenario is that I'm logged into a machine via ssh. It would still be an interactive session, but there is no console on which to show any graphics. Regards, Roger Herikstad > On 3 Mar, 2014, at 20:20, Tim Holy wrote: > > There's a function `isinte

Re: [julia-users] Winston scatter plot

2014-03-06 Thread Roger Herikstad
s. It gives me a decent speedup that is good enough for most of my use. If my solution seems OK to people, I can issue a pull request. https://github.com/grero/Winston.jl/commit/e63f7ef2137a6932143a0c53a2c8e65ecdebec7e On Sunday, March 2, 2014 9:47:13 AM UTC+8, Roger Herikstad wrote: > > Hi

Re: [julia-users] Winston scatter plot

2014-03-06 Thread Roger Herikstad
without vectorized graphics. > Wishing a happy day, >Andreas > > On Thursday, March 6, 2014 9:50:43 AM UTC+1, Roger Herikstad wrote: >> >> Hi, >> I tried to modify the scatter plot code in Winston to make use of the >> push_group/pop_group code, but for some r

Re: [julia-users] Winston scatter plot

2014-03-06 Thread Roger Herikstad
Andreas, That's really thorough work and quite impressive results! I guess I'm still a bit curious why ddots4 takes so much longer than the other methods, but in any case, clearly ddots5 is the winner. Looking forward to testing out this code on my usage cases. On Fri, Mar 7, 2014 at 3:11 AM, Andr

[julia-users] Winston with GTK+3 on Mac OS X 10.9.2

2014-04-25 Thread Roger Herikstad
Hi, What is the recommended GTK+ to use with Winston? I installed GTK+3 using the following Homebrew recipe: require 'formula' class Gtkx3Quartz < Formula homepage 'http://gtk.org/' url 'http://ftp.gnome.org/pub/gnome/sources/gtk+/3.8/gtk+-3.8.1.tar.xz' sha256 'f43e7c7d7a0e2417225509e88f6

[julia-users] Re: how to get rid of axis in Plots ?

2016-09-22 Thread Roger Herikstad
Hey, Similar question; how do I remove only the upper and right border? My personal preference is to only show the left and bottom border. In Winston, I'd do this p = Winston.plot([1,2,3],[3,4,5]) Winston.setattr(p.frame, "draw_axis", false) Thanks! On Wednesday, June 29, 2016 at 2:15:47 AM

Re: [julia-users] how to get rid of axis in Plots ?

2016-09-22 Thread Roger Herikstad
issue and I'll add when I have a couple minutes? I think the > plotlyjs backend does this by default though. > > On Thursday, September 22, 2016, Roger Herikstad > wrote: > >> Hey, >> Similar question; how do I remove only the upper and right border? My >>

[julia-users] Unable to add HDF5

2015-07-20 Thread Roger Herikstad
Hi, For some reason I am unable to add HDF5. Not sure if this is related to the recent change splitting JLD off into its own package. This is the error I got ulia> Pkg.add("HDF5") INFO: Updating cache of HDF5... ERROR: Missing package versions (possible metadata misconfiguration): HDF5 v(noth

Re: [julia-users] Unable to add HDF5

2015-07-21 Thread Roger Herikstad
33k0 0 221k 0 --:--:-- 0:00:01 --:--:-- > 427k > Compiling libblosc... >CC blosc.c >CC blosclz.c >CC shuffle.c >LINK libblosc > INFO: Building HDF5 > INFO: Package database updated > > julia> > > which went like a charm. Maybe try Pkg

Re: [julia-users] Unable to add HDF5

2015-07-21 Thread Roger Herikstad
Ah, of course. Thanks! It works now. Sorry for the noise. On Tue, Jul 21, 2015 at 6:51 PM, Tim Holy wrote: > You could try Pkg.rm("HDF5") and then delete the HDF5 directory in > ~/.julia/.cache. > > --Tim > > On Tuesday, July 21, 2015 06:45:55 PM Roger Herikst

[julia-users] Copy data given c pointer

2015-03-03 Thread Roger Herikstad
Dear group, I am trying to write an interface to a c library that reads data files in a particular format. One of the pieces of data I am trying to read is a string, encoded like this: typedef struct { INT16 len; char c; } LSTRING; This is string

Re: [julia-users] Copy data given c pointer

2015-03-03 Thread Roger Herikstad
Woah, thanks a lot! Worked like a charm : ) On Tue, Mar 3, 2015 at 8:48 PM, Jameson Nash wrote: > bytestring(convert(Ptr{UInt8}, fevent.message + sizeof(UInt16)), > unsafe_load(convert(Ptr{UInt16}, fevent.message))) > > On Tue, Mar 3, 2015 at 4:49 AM Roger Herikstad > wrote:

[julia-users] Re: FENS16

2016-07-05 Thread Roger Herikstad
Sorry the late reply, but I'm actually at FENS. I'm presenting a poster this afternoon (5th July; poster board F020), where the analysis was all done in Julia. Stop by if you're interested. On Sunday, July 3, 2016 at 2:39:09 AM UTC+2, Alexander Morley wrote: > > Hey, > > Are their any Julia pro

[julia-users] Re: Testing OpenGL

2014-07-06 Thread Roger Herikstad
Hi, Running this on Mac OS X 10.9.3 I get: julia> versioninfo() Julia Version 0.3.0-prerelease+3884 Commit 3e6a6c7* (2014-06-25 10:41 UTC) Platform Info: System: Darwin (x86_64-apple-darwin12.5.0) CPU: Intel(R) Core(TM) i5-2415M CPU @ 2.30GHz WORD_SIZE: 64 BLAS: libgfortblas LAPACK: li

Re: [julia-users] Testing OpenGL

2014-07-07 Thread Roger Herikstad
On 7 Jul 2014, at 16:00, Simon Danisch wrote: @Roger Herikstad Do you get a warning, that you should install GLFW 3.0.4 instead of 2.x ? That would explain that error. Got it to work after installing GLFW 3.0.4 via homebrew and checking out the latest master of GLFW.jl I now see a white

[julia-users] Gaussian process factor analysis

2014-07-08 Thread Roger Herikstad
I was wondering if anyone has done any work on Gaussian process factor analysis in julia? I'm interested in the techniques in this paper: 1. Yu, B. M. *et al.* Gaussian-process factor analysis for low-dimensional single-trial analysis of neural population activity. *Journal of Neurophysiology*

[julia-users] Hit test in Winston using Gtk

2014-10-05 Thread Roger Herikstad
Hi, I'm trying to implement a simple interface where I can click on points in a plot an get their (x,y) value. I was wondering how I can convert the (x,y) value returned by the Gtk mouse event to Winston data coordinates? I am using this function to get a PlotContext from the GtkCanvas functio

[julia-users] Re: Hit test in Winston using Gtk

2014-10-05 Thread Roger Herikstad
Hi, Thanks for the input. I actually started working on something like that; I was trying to figure out a way to get the limits of Winston's FramedPlot expressed in window coordinates, so that I can use that to do the transform. I guess this, bb = Winston.boundingbox(p.content1,cc) should re

[julia-users] Re: building GUI on top of julia code

2015-02-07 Thread Roger Herikstad
I've used Winston and Tk for this kind of stuff. I have code for panning through an iterable using simple controls. The code is messy, but if it is of interest, you can find it here https://github.com/grero/Visualizer.jl On Saturday, February 7, 2015 at 2:07:23 PM UTC+8, Christoph Ortner wrote:

Re: [julia-users] Re: Sumatra

2016-01-05 Thread Roger Herikstad
I just came across Sumatra and I've been playing with it for a few weeks, using it to keep track of some Julia projects. Like Diego said, everything seems to work fine, except dependency tracking. I haven't actually looked into the find_dependency functions for other languages, but would it be a