scatter1.py 397 B

123456789101112131415161718
  1. """A simple scatter plot"""
  2. from vedo import show
  3. from vedo.pyplot import plot
  4. import numpy as np
  5. x = np.random.randn(100) + 10
  6. y = np.random.randn(100) * 20 + 20
  7. fig = plot(
  8. x, y,
  9. lw=0, # do not join points with lines
  10. xtitle="variable x",
  11. ytitle="variable y",
  12. marker="*", # marker style
  13. mc="dr", # marker color
  14. )
  15. show(fig, __doc__, zoom='tight').close()