3

Is there a way, in matplotlib, to plot a broken bar/column chart. The case I seek has one bar that is on a larger scale than the others. An example from Excel looks like this: example

I have looked in the Matplotlib gallery and documentation and found broken bar methods, but they are not quite the same.

mishaF
  • 7,934
  • 9
  • 30
  • 34

1 Answers1

3

Two methods for making a discontinuous axis for a line plot are laid out here. It should be essentially the same process (in either case) for a bar graph. Please leave a comment if either method does not work.

Community
  • 1
  • 1
Paul
  • 42,322
  • 15
  • 106
  • 123
  • This is great! I wish I had searched "discontinuous" rather than "broken", but your answer helped tons! I had to upgrade to most recent MPL to find the subplots method of pylab. Great help though - thanks! – mishaF May 04 '11 at 04:47
  • 1
    would you mind sharing your solution to a bar chart with a broken axis? – Frederick Nord Mar 17 '14 at 23:41