I'm using Julia 0.3.9 as I try to use the latest stable, and afaik 0.4.0 is
still not at that stage...
But surprisignly here in my iMac the code works and does what it is
supposed to do. At the Uni under Linux and Julia 0.3.9
is where it complains....
Maybe I have to erase everything and do a new, fresh install?
Do you know how to erase the packages installed and install them again from
scratch?
Thanks :)
On Tuesday, June 23, 2015 at 1:51:11 PM UTC+2, Patrick Kofod Mogensen wrote:
>
> It works on v0.4 here. What version of Winston are you using?
>
> On Tuesday, June 23, 2015 at 12:24:18 PM UTC+2, Ferran Mazzanti wrote:
>>
>> Hi folks,
>> I'm experiencing problems trying to use Winston under Julia 0.3.9 in my
>> Linux machine. I just grabbed from the internet an exemple that
>> should work, something like the code I paste at the end of the post. This
>> is similar to somthing simpler I tried to use, to no avail. The problem
>> comes
>> with the last sentence: the add(p,s,a,b,l), where the REPL keeps
>> complaining add does not exist :(
>> Any way to sort this problem? How it comes actually that it was suppossed
>> to exist, and now it does not exist anymore?
>> BTW I've found very little documentation on using Winston under Julia :(
>> Thanks for your help.
>>
>> p = FramedPlot(
>> aspect_ratio=1,
>> xrange=(0,100),
>> yrange=(0,100))
>>
>> n = 21
>> x = linspace(0, 100, n)
>> yA = 40 .+ 10randn(n)
>> yB = x .+ 5randn(n)
>>
>> a = Points(x, yA, kind="circle")
>> setattr(a, label="a points")
>>
>> b = Points(x, yB)
>> setattr(b, label="b points")
>> style(b, kind="filled circle")
>>
>> s = Slope(1, (0,0), kind="dotted")
>> setattr(s, label="slope")
>>
>> l = Legend(.1, .9, {a,b,s})
>>
>> add(p, s, a, b, l)
>>
>>
>>
>