Hmm, just noticed that saving to pdf does not work anymore:

julia> savefig(p,"test.pdf")
ERROR: `convert` has no method matching convert(::Type{Float64}, ::SubString
{UTF8String})
 in convert at base.jl:13
 in _str_size_to_pts at /home/kjwiik/.julia/v0.3/Winston/src/renderer.jl:54
 in savepdf at /home/kjwiik/.julia/v0.3/Winston/src/Winston.jl:1868
 in savefig at /home/kjwiik/.julia/v0.3/Winston/src/Winston.jl:1903


- Winston                       0.11.11

julia> versioninfo()
Julia Version 0.3.11
Commit 483dbf5 (2015-07-27 06:18 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 Sunday, August 2, 2015 at 11:50:22 AM UTC+3, Kaj Wiik wrote:
>
> Hi!
>
> Try
>
> savefig(p, "test.svg")
>
> Kaj
>
>
> On Sunday, August 2, 2015 at 7:06:21 AM UTC+3, Lauri Nurminen wrote:
>>
>> Hi, 
>>
>> I have the following problem with Winston savefig
>>
>> in short, if I do 
>>
>> julia> using Winston
>> x = randn(100);
>> y = randn(100);
>> pp = Points(x,y);
>> p = FramedPlot();
>> add(p,pp);
>> display(p)
>> savefig("test.svg")
>>
>> the plot displays correctly but the saved file contains nothing, and is 
>> just 219 bytes large
>>
>> however, when I do 
>>
>> x = randn(100);
>> y = randn(100);
>> figure()
>> plot(x,y)
>> savefig("test.svg")
>>
>> the plot is saved as expected.
>>
>> Anyone understands what is going on? 
>>
>> Thanks in advance,
>> Lauri 
>>
>>
>>
>>

Reply via email to