Thanks!

On Wednesday, February 3, 2016 at 2:41:03 PM UTC-6, Steven G. Johnson wrote:
>
>
>
> On Tuesday, February 2, 2016 at 5:49:48 PM UTC-5, Alex Dowling wrote:
>>
>> Hello,
>>
>> I'm having trouble finding examples for using art3D through the PyPlot 
>> module in Julia. Ultimately I'd like to reproduce this example: 
>> http://stackoverflow.com/questions/4622057/plotting-3d-polygons-in-python-matplotlib
>>  
>> (Python, code below)
>>
>
> This works for me (in Julia 0.4):
>
> using PyPlot
> const Poly3DCollection = PyPlot.mplot3d[:art3d][:Poly3DCollection]
> fig = figure()
> ax = Axes3D(fig)
> x = [0,1,1,0]
> y = [0,0,1,1]
> z = [0,1,0,1]
> verts = (collect(zip(x,y,z)),)
> ax[:add_collection3d](Poly3DCollection(verts)) 
>
>

Reply via email to