Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fractals.ipynb draw(): LoadError: UndefVarError: draw not defined #5

Open
evanbiederstedt opened this issue Jan 7, 2016 · 2 comments

Comments

@evanbiederstedt
Copy link

Possible update needed to Sierpinski triangle demonstration:

Running the notebook fractals.ipynb in scipy_2014_julia/fractal_example/fractals.ipynb currently outputs an error at draw() at In[6] :

draw(img, compose(sierpinski(8), linewidth(0.1mm), fill(nothing), stroke("black")))

outputs

WARNING: both Compose and PyPlot export "draw"; uses of it in module Main must be qualified
LoadError: UndefVarError: draw not defined
while loading In[9], in expression starting on line 1
@evanbiederstedt
Copy link
Author

Using

Compose.draw(img, compose(sierpinski(8), linewidth(0.1mm), fill(nothing), stroke("black"))) 

results in no plot output whatsoever.

Using

PyPlot..draw(img, compose(sierpinski(8), linewidth(0.1mm), fill(nothing), stroke("black"))) 

results in the following error:

 LoadError: PyError (:PyObject_Call) <type 'exceptions.TypeError'>
 TypeError('draw() takes no arguments (2 given)',) while loading In[28], in expression starting on line 1
 [inlined code] from /Users/NAME/.julia/v0.4/PyCall/src/exception.jl:56
 in pyerr_check at /Users/NAME/.julia/v0.4/PyCall/src/exception.jl:72
 [inlined code] from /Users/NAME/.julia/v0.4/PyCall/src/exception.jl:81
 in pycall at /Users/NAME/.julia/v0.4/PyCall/src/PyCall.jl:79
 in draw at /Users/NAME/.julia/v0.4/PyPlot/src/PyPlot.jl:460

@axsk
Copy link

axsk commented Feb 4, 2016

Is there any way to circumvent the warning?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants