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

2014-10-05 Thread Andreas Lobinger
Hello colleague, i wrote in a similar discussion about the concept of a hit-map, that records the painting of objects internally (no on screen) and can be used to look up an object identifier by screen coordinates. Yesterday i looked around a little bit in libcairo for some internals to get hel

[julia-users] Re: 0.3.1 load time regression?

2014-10-05 Thread Xiaowei Zhang
I've also noticed a regression in startup time of Julia 0.3.1 on OS X (Mavericks). Xiaowie 在 2014年10月2日星期四UTC+8上午2时24分43秒,Magnus Lie Hetland写道: > > I just thought I'd switch from 0.3.0 to 0.3.1 (binary, OS X), but noticed > that the startup time for the REPL went from slightly less than one sec

Re: [julia-users] Re: eval create new functions

2014-10-05 Thread Jameson Nash
a name indexed by a number containing a function which references yet another value, you say. these things sound familiar…. in fact, these things are first class citizens in julia: “a name indexed by a number” — an Array “a function” — a Function “which references yet another value” — a Closure A

Re: [julia-users] Re: ANN: revamped Images based on Color, FixedPointNumbers

2014-10-05 Thread Jan Kybic
>If you do Pkg.update(), then > >reinterpret(Uint8, separate(img)) > >should work. If you think this needs to be documented, please add it to the It does not currently work for me: julia> img=imread("imgs/simple.png") RGB Image with: data: 320x200 Array{RGB{UfixedBase{Uint8,8}}

[julia-users] Julia LightTable and path to file

2014-10-05 Thread will ship
Using readcsv("filename.csv") to get data into an array. This works with iJulia if the files are in the same directory. As soon I try the same in LightTable and Juno :: it pops up with errors. I am currently getting round this by specifying the full path, but don't wish to in the future, as it w

[julia-users] Re: eval create new functions

2014-10-05 Thread Yakir Gagnon
Awesome!!! That's exactly what I needed! I missed the need for symbol in there, and tried to put the $k part together with everything else. This is great, thanks Toivo! On Monday, October 6, 2014 4:50:14 AM UTC+10, Toivo Henningsson wrote: > > I think that you will have to provide a little more

[julia-users] eval create new functions

2014-10-05 Thread Toivo Henningsson
I think that you will have to provide a little more detail. When you eval code, the name of a function will be specified by a symbol, which you can create using symbol(name), where name is a string. Then you have to interpolate the function name, eg @eval $(symbol("f$k"))(x) = x + $k should cr

[julia-users] eval create new functions

2014-10-05 Thread Yakir Gagnon
Need some help with macro / metaprogramming: I have a couple of base functions, such as: r -> 110.3/(4.213e-7*r^1.526 + 1.0) - 110.3 r -> 510.3 - 510.3*(1.0 - 3.84e-6*r)^(1/2) r -> 0.0009465*r that I want to use to create say 10 new functions that all have different added "errors" (like, -1,2,4

Re: [julia-users] Re: How to read the size of the array X hdf5 file, without reading the entire array?

2014-10-05 Thread Paul Analyst
Necessity is the mother of invention;) but i steel cant do scaterplot from matrix :/ size of points = value of cell of array ? x=rand(5,5) using Winston any_smart_plot(x) ?? or W dniu 2014-10-05 o 13:02, Tim Holy pisze: And indeed that's how you do it :-). --Tim On Sunday, October 05, 2014

Re: [julia-users] Re: #JuliaLang anime character design spec.

2014-10-05 Thread Harlan Harris
Kuuru. I wasn't familiar with the -tan honorific. Wikipedia says : *Chan* can be changed to *tan* (たん? > ), > and less often, *chama* (ちゃま? >

[julia-users] Re: Kudos on Julia 0.3

2014-10-05 Thread Greg Trzeciak
On Sunday, October 5, 2014 9:28:57 AM UTC+2, Daniel Carrera wrote: > > ... though at first I had trouble figuring out where the link to the Julia > packages had gone. Now I found it. You might want to put that link on the > main menu bar... just saying... > I second that, the first link I fou

Re: [julia-users] Re: #JuliaLang anime character design spec.

2014-10-05 Thread Takeshi Kimura
I'm happy to announce #JuliaLang (unofficial) anime character "Jula-tan". http://www.mechajyo.org/wp/?page_id=6 You can use this picture under CC BY-NC-SA for Non-Commercial use. You need grant from Takeshi KIMURA (twitter: @kimrin) if you use it in Commercial use. Best Regards, Takeshi KIMUR

[julia-users] Re: Gadfly PNG to memory

2014-10-05 Thread Jacky Poon
To be honest I haven't figured that bit out either - I'm very new to Julia and very much do not know what I am doing yet. I found some reference code in Jewel.jl that might allow conversion from png to embedded png. function tohtml(m::MIME"image/png", img) HTML() do io print(io, )

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

2014-10-05 Thread Tim Holy
I have a vague memory that I posted some demo code to do just that in the Winston repository. Try searching there. I'm thinking we need a "GtkExtras" package that handles at least rubberbands and hit testing. rubberbands are already implemented in ImageView, but I haven't had time to start on a

Re: [julia-users] Re: How to read the size of the array X hdf5 file, without reading the entire array?

2014-10-05 Thread Tim Holy
And indeed that's how you do it :-). --Tim On Sunday, October 05, 2014 12:09:31 AM paul analyst wrote: > I already know : > > using HDF5 > fid = h5open("X.h5","r") > obj = fid["X"] > k,l=size(obj) > > > W dniu niedziela, 5 października 2014 08:32:53 UTC+2 użytkownik paul > > analyst napisał:

[julia-users] Re: Gadfly: alternatives to browser for quick graphs

2014-10-05 Thread Andreas Lobinger
Not built in but: https://groups.google.com/d/msg/julia-users/La32AliDCGY/wJpxub-Jd8sJ and Winston provides a direct to Gtk rendering.

[julia-users] debugging in Emacs/ESS

2014-10-05 Thread Tamas Papp
Hi, What facilities are there for debugging in Julia, running in Emacs/ESS? I could not find anything in the ESS or Julia manuals. Best, Tamas

[julia-users] Gadfly: alternatives to browser for quick graphs

2014-10-05 Thread Tamas Papp
Hi, I am using Gadfly 0.3.8 on Julia v"0.3.1". By default, Gadfly displays plots in the browser, which are nice and interactive, but somewhat slower than I would like (especially for quick plots). Is there a backend that is similar to eg R's x11() backend, showing the plot in a separate window?

Re: [julia-users] LLVM.js

2014-10-05 Thread JobJob
Ok, nice one, cheers. On Saturday, 4 October 2014 22:33:52 UTC+3, tshort wrote: > > With the new static compilation capabilities (thanks Jeff, Keno, and > Jameson!) and the new compile=all option, Julia can generate a large > LLVM bitcode file using the following (in the devel version of Julia)

[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: Hit test in Winston using Gtk

2014-10-05 Thread Andreas Lobinger
Winston does (as any plotting tool) a coordinate transformation to get from one coordinate system to another. Your gtk request returns screen (or window) coordinates and you need to reverse this based on the data-to-screen transformation to get data coordinates. Although i patched something int

[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: Gadfly PNG to memory

2014-10-05 Thread Andreas Lobinger
I have to revise my advice, it seems there is an interface in Cairo.jl to render to a IOStream, but not a buffer. Can you explain a little bit, how do you proceed after writing to a IOBuffer?

[julia-users] Kudos on Julia 0.3

2014-10-05 Thread Ivar Nesje
Thanks for kind words. We try to keep a up to date list of the cool changes in https://github.com/JuliaLang/julia/blob/master/NEWS.md#julia-v030-release-notes. We don't really have a road map for future development, but look at the github issues with the milestone 0.4-projects. https://github

[julia-users] Kudos on Julia 0.3

2014-10-05 Thread Daniel Carrera
Hi all, People don't typically post just to say "good job", but I want to say that I am extremely pleased with the fast start-up time of Julia 0.3. I have delayed upgrading to Jullia 0.3 for a long time because I have been finishing an important project that really depends on Julia and I wanted

[julia-users] Re: How to read the size of the array X hdf5 file, without reading the entire array?

2014-10-05 Thread paul analyst
and... close(fid) ... Paul W dniu niedziela, 5 października 2014 09:09:31 UTC+2 użytkownik paul analyst napisał: > > I already know : > > using HDF5 > fid = h5open("X.h5","r") > obj = fid["X"] > k,l=size(obj) > > > W dniu niedziela, 5 października 2014 08:32:53 UTC+2 użytkownik paul > analyst na

[julia-users] Re: How to read the size of the array X hdf5 file, without reading the entire array?

2014-10-05 Thread paul analyst
I already know : using HDF5 fid = h5open("X.h5","r") obj = fid["X"] k,l=size(obj) W dniu niedziela, 5 października 2014 08:32:53 UTC+2 użytkownik paul analyst napisał: > > How to read the size of the array X hdf5 file, without reading the entire > array? Array was written: > h5write ("X.h5", "