Awesome
BlenderPlot
a prototype version of the 📊 plot on Blender using PyCall
Build Blender
- Clone from https://github.com/wookay/blender
cd ~/blender-build
git clone https://github.com/wookay/blender
-
Edit for your environment (ref the commit)
-
Building Blender for macOS https://wiki.blender.org/wiki/Building_Blender/Mac
-
Custom linking
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
- Get Julia 0.7-alpha https://julialang.org/downloads/
- Install pyjuila https://github.com/wookay/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
- Precompiling packages
julia> using PyCall, ColorTypes, Colors
Blender, Julia Console
- Run Blender
~/blender-build/build_darwin/bin/blender.app/Contents/MacOS/blender
- Julia Console
Examples
julia> plot(sin, -2pi, 2pi)
- press
7
for top orthographic view <img src="examples/plot.png" width="366" height="258.4" />
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" />
- https://github.com/wookay/BlenderPlot.jl/blob/master/examples/sphere.jl <img src="examples/sphere.gif"/>