100K data points in 3D using interactive canvas
Source code name: "points_3D_100K.py"
Programming language: Python
Topic: Plots/3D
DMelt Version 1.5. Last modified: 05/18/2016. License: Pro
https://datamelt.org/code/cache/points_3D_100K_3455.py
To run this script using the DMelt IDE, copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.


from jhplot import *
from java.awt import Color
from java.util import Random

c1=HPlotXYZ("3D",600,400)
c1.setGTitle("100k points in 3D")
c1.setNameX("X")
c1.setNameX("Y")
c1.visible();
c1.setTickDecimalAll(1)

h1 = P2D("Simple1")
h2 = P2D("Simple2")

rand = Random()
# fill histogram
for i in range(50000):
      h1.add(rand.nextGaussian(),rand.nextGaussian(),rand.nextGaussian())
      h2.add(0.2*rand.nextGaussian(),rand.nextGaussian(),rand.nextGaussian())

c1.add(h1,1,Color.red)
c1.add(h2,3,Color.blue)
c1.update()




You see the box below because you did not login.