I have the same problem. Winston.add() works. Strange because it's not very 
long time since I used Winston and everything just worked...

julia> add(p, s, a, b, l)
ERROR: add not defined

julia> Winston.add(p, s, a, b, l)

julia> versioninfo()
Julia Version 0.3.8
Commit 79599ad (2015-04-30 23:40 UTC)
Platform Info:
  System: Linux (x86_64-linux-gnu)
  CPU: AMD A6-4455M APU with Radeon(tm) HD Graphics
  WORD_SIZE: 64
  BLAS: libopenblas (NO_LAPACK NO_LAPACKE DYNAMIC_ARCH NO_AFFINITY Prescott)
  LAPACK: liblapack.so.3
  LIBM: libopenlibm
  LLVM: libLLVM-3.3


Kaj


On Wednesday, June 24, 2015 at 12:26:36 PM UTC+3, Ferran Mazzanti wrote:
>
> 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)
>>>
>>>  
>>>
>>

Reply via email to