Re: [julia-users] Gadfly bar chart sorting / ordering

2014-05-20 Thread Daniel Jones
It should work if you add: Scale.x_discrete(levels=["a", "b", "c"]) where ["a", "b", "c"] is a vector of the values in the order you'd like them to appear. On Tue, May 20, 2014, at 05:32 PM, Dan B wrote: Friends, I have a simple array that has counts (sorted descending) and names a

Re: [julia-users] Gadfly bar chart sorting / ordering

2014-05-20 Thread Dan B
>From one Daniel to the next - thanks! :) This looks like exactly what I need. If I try manually constructing a vector with the names like you did, then it does order the bars. However, if I try to pass in an array, I get the following. Please note - Im new to Julia so I may have some misun

Re: [julia-users] Gadfly bar chart sorting / ordering

2014-05-20 Thread Daniel Jones
I agree, that should work. I'll try to fix it when I have a chance. In the mean time, a work around would be to use levels=collect(xs) where xs is your vector of names. That will effectively convert the PooledDataArray to a regular Array, so should work. On Tue, May 20, 2014, at 08:25 PM, D

Re: [julia-users] Gadfly bar chart sorting / ordering

2014-05-20 Thread Dan B
Thanks Daniel! Works perfectly! Very much appreciated :) On Tuesday, May 20, 2014 8:43:55 PM UTC-7, Daniel Jones wrote: > > I agree, that should work. I'll try to fix it when I have a chance. > > In the mean time, a work around would be to use levels=collect(xs) where > xs is your vector of n

Re: [julia-users] Gadfly bar chart sorting / ordering

2014-05-20 Thread Daniel Jones
No problem. :) On Tue, May 20, 2014, at 08:55 PM, Dan B wrote: Thanks Daniel! Works perfectly! Very much appreciated :) On Tuesday, May 20, 2014 8:43:55 PM UTC-7, Daniel Jones wrote: I agree, that should work. I'll try to fix it when I have a chance. In the mean time, a work around would