def plot_estimates(positions, estimates):
x = list(positions)<EOL>fig = plt.figure(figsize=(SUBPLOT_WIDTH * len(estimates), FIGURE_HEIGHT))<EOL>for i, (title, y) in enumerate(zip(ESTIMATE_TITLES, estimates)):<EOL><INDENT>ax = fig.add_subplot(<NUM_LIT:1>, len(estimates), i + <NUM_LIT:1>)<EOL>ax.plot(x, y, linewidth=LINE_WIDTH, c=LINE_COLOR)<EOL>ax.title.set_text(title)<EOL>ax.set_xlim(<NUM_LIT:0>, <NUM_LIT:1>)<EOL>ax.set_xlabel("<STR_LIT>")<EOL>ax.set_ylabel("<STR_LIT>")<EOL>ax.grid()<EOL><DEDENT>return fig<EOL>
Plots density, and probability estimates.

Parameters
----------
positions : iterable of float
    Paragraph positions for which densities, and probabilities were estimated.
estimates : six-tuple of (sequence of float)
    Estimates of P(relevant), p(position), p(position | relevant), P(position, relevant), and
    P(relevant | position).

Returns
-------
matplotlib.figure.Figure
    The plotted figure.