|
Re: [Matplotlib-users] can matplotlib make a plot like this?
From: Chloe Lewis <clew@te...> - 2006-10-24 01:32
|
I was thinking of something like this - it isn't pretty, but it does get all the data on the page. import pylab # Annoying-to-plot data data=[1]*100 + [2]*3 + [3]*2+ [4]*3 + [5] # Make a histogram out of the data in x and prepare a bar plot. top = pylab.subplot(211) vals, bins, patchs = pylab.hist(data) # but only show the top fraction of the graph in the upper plot top.set_ylim(max(vals)-2, max(vals)+2) bot = pylab.subplot(212) vals, bins, patchs=pylab.hist(data) bot.set_ylim(0,4) pylab.show() |
| Thread | Author | Date | |
|---|---|---|---|
| [Matplotlib-users] can matplotlib make a plot like this? | CL <anewgene@gm...> |
|
|