fgivenx is a python package for plotting posteriors of functions. It is currently used in astronomy, but will be of use to any scientists performing Bayesian analyses which have predictive posteriors that are functions. This package allows one to plot a predictive posterior of a function, dependent on sampled parameters. We assume one has a Bayesian posterior `Post(theta|D,M)` described by a set of posterior samples `{theta_i}~Post`. If there is a function parameterised by theta `y=f(x;theta)`, then this script will produce a contour plot of the conditional posterior `P(y|x,D,M)` in the `(x,y)` plane. The driving routines are `fgivenx.plot_contours`, `fgivenx.plot_lines` and `fgivenx.plot_dkl`. The code is compatible with `getdist`, and has a loading function provided by `fgivenx.samples_from_getdist_chains`.