1
"""This example shows how to createa log-log plot using the chaco
4
# Major library imports
5
from numpy import linspace, exp
7
# Enthought library imports
8
from chaco.shell import show, title, loglog, hold
12
x = linspace(1, 15, 200)
14
# Create some line plots
15
loglog(x, x**2, "b-.", name="y=x**2", bgcolor="white")
17
loglog(x, x**4+3*x+2, "r-", name="y=x**4+3x+2", bgcolor="white")
18
loglog(x, exp(x), "g-", name="y=exp(x)", bgcolor="white")
19
loglog(x, x, "m--", name="y=x", bgcolor="white")
22
title("simple loglog plots")
24
#This command is only necessary if running from command line