gonum / plot

A repository for plotting and visualizing data
BSD 3-Clause "New" or "Revised" License
2.73k stars 202 forks source link

Is there a way to make 3D plots like in matplotlib #609

Open dtracers opened 4 years ago

dtracers commented 4 years ago

I am looking for a library to plot 3d points in space and it seems this is the only active plotting library.

I found this: https://medium.com/@Arafat./introducing-glot-the-plotting-library-for-golang-3133399948a1 Which appears to be built on top of the predecessor to this but it is woefully out of date and I am having issues with it.

Is there a way to use this library to plot 3d datapoints? I can't find any in the examples

sbinet commented 4 years ago

glot invokes the gnuplot binary to do its thing. gonum/plot does everything in Go. (so... not the predecessor, they don't have -AFAIK- any common lineage)

right now, there isn't a way in gonum/plot to directly draw 3D plotters. 3D plots may be pretty, but on a dead tree sheet of paper, they usually are rather hard to interpret. (I suppose that they are slightly more useful with an interactive 3D plotter, where the plot can be manipulated over the 3 axes, zoomed in/out, etc... but AFAIK gonum/plot doesn't provide this either (yet?))

sbinet commented 4 years ago

yesterday, I stumbled on this package:

it could (perhaps) be a good basis to add 3D support to gonum/plot. (but that's still a fair amount of work, though.)