BlenderPlot.jl

A prototype version of the ๐Ÿ“Š plot on Blender using PyCall
Popularity
13 Stars
Updated Last
2 Years Ago
Started In
June 2017

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
  • Precompiling packages
julia> using PyCall, ColorTypes, Colors

Blender, Julia Console

  • Run Blender
~/blender-build/build_darwin/bin/blender.app/Contents/MacOS/blender
  • Julia Console julia_console.png

Examples

julia> plot(sin, -2pi, 2pi)
  • press 7 for top orthographic view

julia> lineplot([cos, sin], -ฯ€/2, 2ฯ€)

julia> scatterplot(randn(50), randn(50))

julia> spy(sprandn(50, 120, .05))