I'm trying to make a column graph where the x-axis corresponds to distance. My current data looks like:
dist intensity:
0 1521
10 176
17 47
20 397
So at 10 units along the x-axis I was a bar 176 high, at 17 units along a bar 47 high, etc etc. Any easy methods? A standard bar graph code doesn't seem to have this 'easily' in built as the bars aren't evenly spaced...


pyplot.barhas an array of left coordinates and height coordinates as input (and a width identical for every bar), which should do what you want.