Home

Awesome

BlenderPlot

a prototype version of the 📊 plot on Blender using PyCall

Build Blender

cd ~/blender-build
git clone https://github.com/wookay/blender
cd ~/blender-build/build_darwin/bin/blender.app/Contents/Resources/2.79
rm -rf python
ln -s /usr/local/Frameworks/Python.framework/Versions/3.6 python
cd ~/blender-build/build_darwin/bin/blender.app/Contents/Resources/2.79/scripts
rm -rf modules
ln -s ~/blender-build/blender/release/scripts/modules

Install Julia, pyjulia

Install PyCall.jl, BlenderPlot.jl

julia> type ] key

(v0.7) pkg> add PyCall#master
(v0.7) pkg> add ColorTypes#master
(v0.7) pkg> add Colors#master
(v0.7) pkg> add https://github.com/wookay/BlenderPlot.jl#master
julia> using PyCall, ColorTypes, Colors

Blender, Julia Console

~/blender-build/build_darwin/bin/blender.app/Contents/MacOS/blender

Examples

julia> plot(sin, -2pi, 2pi)
julia> lineplot([cos, sin], -Ï€/2, 2Ï€)
<img src="examples/lineplot.png" width="366" height="258.4" />
julia> scatterplot(randn(50), randn(50))
<img src="examples/scatterplot.png" width="366" height="258.4" />
julia> spy(sprandn(50, 120, .05))
<img src="examples/spy.png" width="366" height="258.4" />