3D scatter / meshed surface color map

870 views
Skip to first unread message

mauri...@gmail.com

unread,
Mar 2, 2016, 11:10:52 PM3/2/16
to julia-users
Hello Julia users,

I would like to know if anyone knows how we can have 3D scatter plots or meshed surfaces color plots using Julia. 

My problem is based on four variables, so I'm trying to visualize the data according to these options.

Any idea or example code will be really helpful.

Thanks!

Michele Zaffalon

unread,
Mar 3, 2016, 2:33:00 AM3/3/16
to julia...@googlegroups.com

Simon Danisch

unread,
Mar 3, 2016, 2:37:28 AM3/3/16
to julia-users
There is: 
Which also supports any 2D/3D billboard (2D particles that keep facing the camera): http://www.glvisualize.com/examples/sprites/
If you need axes and labels right away, there is: https://github.com/stevengj/PyPlot.jl which supports 3D plots.
They're not really interactive though, from all I know.

Eric Forgy

unread,
Mar 3, 2016, 2:57:23 AM3/3/16
to julia-users
I'm a fan of PlotlyJS.

julia> include(Pkg.dir("PlotlyJS","examples","3d.jl"))
scatter_3d
(generic function with 1 method)

julia
> scatter_3d()

It's interactive.

Josef Heinen

unread,
Mar 3, 2016, 3:26:20 AM3/3/16
to julia-users
Pkg.add("GR")

using GR
z = peaks()
surface(z)

Tom Breloff

unread,
Mar 3, 2016, 7:19:31 AM3/3/16
to julia...@googlegroups.com
These are all really cool packages. Don't pick just one! ;)


One of these days I'll get GLVisualize working...

J Luis

unread,
Mar 3, 2016, 9:13:33 AM3/3/16
to julia-users
But unfortunately on Windows

INFO: Downloading pre-compiled GR 0.17.3 binary
=================================[ ERROR: GR ]==================================

LoadError: chmod: no such file or directory (ENOENT)
while loading C:\j\.julia\v0.4\GR\deps\build.jl, in expression starting on line 25
Message has been deleted

Josef Heinen

unread,
Mar 3, 2016, 11:24:07 AM3/3/16
to julia-users
I could re-produce the problem on a fresh Windows installation.
Removing the downloaded archive leads to a chmod error, although I don't use this function in build.jl.
Will have to use another method to delete the file.

Nevertheless, the package should be installed ....

J Luis

unread,
Mar 3, 2016, 11:25:26 AM3/3/16
to julia-users
Oops, don't know what happened to the message asking me what version was it, and my reply to it (both disappeared), but here it goes again.
It eas trying to install v0.0.17

julia> Pkg.add("GR")
INFO
: Cloning cache of GR from git://github.com/jheinen/GR.jl.git
INFO
: Installing GR v0.9.17
INFO
: Building GR
INFO
: Downloading pre-compiled GR 0.17.3 binary
=================================[ ERROR: GR ]==================================

LoadError: chmod: no such file or directory (ENOENT)
while loading C:\j\.julia\v0.4\GR\deps\build.jl, in expression starting on line 25

J Luis

unread,
Mar 3, 2016, 11:28:29 AM3/3/16
to julia-users
Hmm, is 'peaks' part of GR? Because

julia> using GR

julia
> z = peaks();
ERROR
: UndefVarError: peaks not defined

Josef Heinen

unread,
Mar 3, 2016, 11:45:20 AM3/3/16
to julia-users
The build problem is fixed (in the master branch).
peaks() is part of GR - also in the master branch.

The next GR.jl release will be released this weekend.

J Luis

unread,
Mar 3, 2016, 11:54:20 AM3/3/16
to julia-users
Ok, thanks.

Joaquim

Rohit Thankachan

unread,
Mar 3, 2016, 5:03:26 PM3/3/16
to julia-users

In case you work with an IJulia notebook or Escher, you can use ThreeJS.jl. If you use Escher, you can also create UI's to control the variables and get the plots to update interactively. Please see the examples for more details. There isn't support for labels or axes currently though.

Regards,
Rohit
Reply all
Reply to author
Forward
0 new messages