1
"""This example shows how to create a scatter plot using the `shell` package.
4
# Major library imports
5
from numpy import linspace, random, pi
7
# Enthought library imports
8
from chaco.shell import plot, hold, title, show
12
x = linspace(-2*pi, 2*pi, 100)
13
y1 = random.random(100)
14
y2 = random.random(100)
16
# Create some scatter plots
19
plot(x, y2, "g+", marker_size=2)
22
title("simple scatter plots")
24
# This command is only necessary if running from command line