def makePlot(gmag, pdf=False, png=False, rvs=False):
vmini = np.linspace(-<NUM_LIT:0.5>,<NUM_LIT>,<NUM_LIT:100>)<EOL>if (rvs):<EOL><INDENT>gminv = -vminGrvsFromVmini(vmini)<EOL><DEDENT>else:<EOL><INDENT>gminv = gminvFromVmini(vmini)<EOL><DEDENT>mvlimit100pc = gmag-<NUM_LIT>*np.log10(<NUM_LIT>)+<NUM_LIT>-gminv<EOL>mvlimit1kpc = gmag-<NUM_LIT>*np.log10(<NUM_LIT>)+<NUM_LIT>-gminv<EOL>mvlimit10kpc = gmag-<NUM_LIT>*np.log10(<NUM_LIT>)+<NUM_LIT>-gminv<EOL>fig=plt.figure(figsize=(<NUM_LIT:8>,<NUM_LIT:8>))<EOL>plt.plot(vmini,mvlimit100pc,'<STR_LIT:b>')<EOL>plt.text(vmini[<NUM_LIT:50>]-<NUM_LIT>,mvlimit100pc[<NUM_LIT:50>],"<STR_LIT>", horizontalalignment='<STR_LIT:right>', va='<STR_LIT>')<EOL>plt.plot(vmini,mvlimit1kpc,'<STR_LIT:r>')<EOL>plt.text(vmini[<NUM_LIT:50>]-<NUM_LIT>,mvlimit1kpc[<NUM_LIT:50>],"<STR_LIT>", horizontalalignment='<STR_LIT:right>', va='<STR_LIT>')<EOL>plt.plot(vmini,mvlimit10kpc,'<STR_LIT:g>')<EOL>plt.text(vmini[<NUM_LIT:50>]-<NUM_LIT>,mvlimit10kpc[<NUM_LIT:50>],"<STR_LIT>", horizontalalignment='<STR_LIT:right>', va='<STR_LIT>')<EOL>ax=plt.gca()<EOL>ax.set_ylim(ax.get_ylim()[::-<NUM_LIT:1>])<EOL>plt.xlabel("<STR_LIT>")<EOL>plt.ylabel("<STR_LIT>")<EOL>if (rvs):<EOL><INDENT>plt.title("<STR_LIT>"+"<STR_LIT>".format(gmag))<EOL><DEDENT>else:<EOL><INDENT>plt.title("<STR_LIT>".format(gmag))<EOL><DEDENT>if (args['<STR_LIT>']):<EOL><INDENT>plt.savefig('<STR_LIT>')<EOL><DEDENT>elif (args['<STR_LIT>']):<EOL><INDENT>plt.savefig('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>plt.show()<EOL><DEDENT>
Make a plot of a Mv vs (V-I) colour magnitude diagram containing lines of constant distance for stars
at G=20. This will give an idea of the reach of Gaia.

Parameters
----------

args - command line arguments