Error using Gadfly package in Julia -
i new julia. have tried sample code posted in julia site uses gadfly demonstrate plotting. however, gives me below error. believe dependent packages installed.
code:
pkg.add("gadfly") using gadfly draw(svg("output.svg", 6inch, 3inch), plot([sin, cos], 0, 25))
error got is:
error: pyerror (:pyobject_call) <type 'exceptions.valueerror'> valueerror('third arg must format string',) file "/system/library/frameworks/python.framework/versions/2.7/extras/lib/python/matplotlib/pyplot.py", line 2987, in plot ret = ax.plot(*args, **kwargs) file "/system/library/frameworks/python.framework/versions/2.7/extras/lib/python/matplotlib/axes.py", line 4137, in plot line in self._get_lines(*args, **kwargs): file "/system/library/frameworks/python.framework/versions/2.7/extras/lib/python/matplotlib/axes.py", line 317, in _grab_next_args seg in self._plot_args(remaining, kwargs): file "/system/library/frameworks/python.framework/versions/2.7/extras/lib/python/matplotlib/axes.py", line 279, in _plot_args raise valueerror('third arg must format string') [inlined code] /users/mango/.julia/v0.4/pycall/src/exception.jl:81 in _pycall @ /users/mango/.julia/v0.4/pycall/src/pycall.jl:546 in pycall @ /users/mango/.julia/v0.4/pycall/src/pycall.jl:568 in plot @ /users/mango/.julia/v0.4/pyplot/src/pyplot.jl:395
what wrong sample code?
it indeed appears second comment issue, @ least in julia version 0.4 if wish can have both packages open, have specify 1 using. if have used commands:
using pyplot using gadfly draw(svg("output.svg", 6inch, 3inch), gadfly.plot([sin, cos], 0, 25))
worked me. way specify using gadfly package rather pyplot package specific plot
Comments
Post a Comment