How to make Scatter Plot (2D plot or 3D plot) in godot?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Tachekentya

Hi, I have some data and I would like to plot these in a scatter plot (https://en.wikipedia.org/wiki/Scatter_plot). Is there an easy way to plot 2d or 3d data directly with gdscript?
I have some c++ libraries that allow me to make graphics and I was thinking to include this c++ files in the engine, but maybe there is an easy solution for that.
Thank for the help

Hi,
What c++ library are you using? I think the better idea would be to create a tool for Godot using gdnative. Do you need it urgently? I don’t know how to do that, but i wan’t to learn how to write tools. Perhaps we could set a little project for that if you are not in a hurry.

p7f | 2019-01-08 13:35

Any help is appreciated, thanks!! I am using QCustomPlot.
if it is not possible to do the graph directly with gdscript, gdnative seems like a good idea. I also want to learn how to writes tools, but I’m just realizing that gdnative exist, so it will probably take me some time to figure out how it works.

Tachekentya | 2019-01-08 16:06

Hi,
I’ve used QCustomPlot for some GUI also at work. The problem with that library is that it needs also Qt libraries to work. It is foucsed to be used with Qt, so i don’t think is a good choice for this. Instead perhaps would be better to use gnuplot. Or even matplotlib using godot-python support. This should be answered by a developer i think. perhaps asking on irC?

p7f | 2019-01-08 16:15