Winston.jl
Winston.jl copied to clipboard
Error, what wrong?
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.6.0 (2017-06-19 13:05 UTC)
_/ |\__'_|_|_|\__'_| | Official http://julialang.org/ release
|__/ | x86_64-w64-mingw32
julia> using HDF5, JLD
julia> using Winston
ERROR: LoadError: LoadError: LoadError: LoadError: UndefVarError: print_escaped not defined
Stacktrace:
[1] init() at C:\Users\PC\.julia\v0.6\Tk\src\tkwidget.jl:49
[2] include_from_node1(::String) at .\loading.jl:569
[3] include(::String) at .\sysimg.jl:14
[4] include_from_node1(::String) at .\loading.jl:569
[5] eval(::Module, ::Any) at .\boot.jl:235
[6] _require(::Symbol) at .\loading.jl:483
[7] require(::Symbol) at .\loading.jl:398
[8] include_from_node1(::String) at .\loading.jl:569
[9] include(::String) at .\sysimg.jl:14
[10] include_from_node1(::String) at .\loading.jl:569
[11] eval(::Module, ::Any) at .\boot.jl:235
[12] _require(::Symbol) at .\loading.jl:483
[13] require(::Symbol) at .\loading.jl:398
while loading C:\Users\PC\.julia\v0.6\Tk\src\tkwidget.jl, in expression starting on line 457
while loading C:\Users\PC\.julia\v0.6\Tk\src\Tk.jl, in expression starting on line 37
while loading C:\Users\PC\.julia\v0.6\Winston\src\tk.jl, in expression starting on line 1
while loading C:\Users\PC\.julia\v0.6\Winston\src\Winston.jl, in expression starting on line 2814
julia> plot(rand(10))
ERROR: UndefVarError: plot not defined
julia> plot(rand(10))
ERROR: UndefVarError: plot not defined
julia> using Winston
julia> plot(rand(10))
Winston.FramedPlot(...)
julia>
My computer run Windows. I did the following:
In c:\Users\...\.julia\v0.6\Tk\src there is a source tkwidget.jl written in Julia. There do the follow replacements.
- Replace
print_escaped(depreciated) byescape_string. - Replace
takebuf_string(b)(depreciated) byString(take!(b))where b is any parameter.
After that Winston works like a charm.
Example:
using Winston
plot(rand(100))