Matplotlib: Graph with vertical lines ascending to points

March 27, 2011 at 11:09 pm Leave a comment

This is different from a bar chart, since in a bar chart the bars have width.

The vlines function will do what you want this takes arrays for its various values.

Example

import pylab

pylab.vlines([1,2,3,4,5], 0, [2,4,6,8,10])
pylab.show()
Advertisements

Entry filed under: Uncategorized. Tags: , .

Redis for light-weight rpc in python Mobile broadband for linux

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


March 2011
M T W T F S S
« Feb   Apr »
 123456
78910111213
14151617181920
21222324252627
28293031  

%d bloggers like this: