[SciPy-user] Please help : wxplt line-plot to box-plot?

Sajec, Mike TQO msajec at tqs.com
Wed Jul 30 15:09:25 EDT 2003


Hello,

Can anyone give an example (or fill in below) how to change a value's
plot-type from line to bar without manually editing through chaco?

I'd like to create a histogram generating function based on wxplt.plot .  

Thanks in advance,
Mike

###################################
from scipy import *
from chaco import wxplt as plt
import RandomArray as ra

#data for testing...
data = ra.normal(0,3,100)

mu = mean(data)
sigma = std(data)

mhist = stats.histogram(data)
xhist = mhist[1]
yhist = mhist[0]

fig1 = plt.plot(xhist,yhist)

## CHANGE FROM LINE PLOT TO BAR PLOT????? ##
# fig1.canvas.???




More information about the SciPy-User mailing list