Fixed errorbar plots in gh chapter.

I changed the ZZy-axis earlier, which meant that the bar for
sensor A was not visible.
This commit is contained in:
Roger Labbe
2015-11-25 12:00:38 -08:00
parent fe79d7409f
commit 6f6108780c
3 changed files with 31 additions and 30 deletions

View File

@@ -25,16 +25,17 @@ import pylab as plt
def plot_errorbar1():
with book_format.figsize(y=1.5):
book_plots.plot_errorbars([(160, 8, 'A'), (170, 8, 'B')],
xlims=(145, 185))
xlims=(145, 185), ylims=(-1, 2))
def plot_errorbar2():
with book_format.figsize(y=1.5):
book_plots.plot_errorbars([(160, 3, 'A'), (170, 9, 'B')],
xlims=(145, 185))
xlims=(145, 185), ylims=(-1, 2))
def plot_errorbar3():
with book_format.figsize(y=1.5):
book_plots.plot_errorbars([(160, 1, 'A'), (170, 9, 'B')], xlims=(145, 185))
book_plots.plot_errorbars([(160, 1, 'A'), (170, 9, 'B')],
xlims=(145, 185), ylims=(-1, 2))