def makePlot(pdf=False, png=False):
logdistancekpc = np.linspace(-<NUM_LIT:1>,np.log10(<NUM_LIT>),<NUM_LIT:100>)<EOL>sptVabsAndVmini=OrderedDict([('<STR_LIT>',(<NUM_LIT>,<NUM_LIT>)), ('<STR_LIT>',(<NUM_LIT>,<NUM_LIT>)), ('<STR_LIT>',(<NUM_LIT>,<NUM_LIT>)),<EOL>('<STR_LIT>',(<NUM_LIT>,<NUM_LIT>)), ('<STR_LIT>',(<NUM_LIT>,<NUM_LIT>)), ('<STR_LIT>',(<NUM_LIT>,<NUM_LIT:1.0>))])<EOL>lines={}<EOL>fig=plt.figure(figsize=(<NUM_LIT:10>,<NUM_LIT>))<EOL>currentAxis=plt.gca()<EOL>for spt in sptVabsAndVmini.keys():<EOL><INDENT>vmag=sptVabsAndVmini[spt][<NUM_LIT:0>]+<NUM_LIT>*logdistancekpc+<NUM_LIT><EOL>indices=(vmag><NUM_LIT>) & (vmag<<NUM_LIT:16>)<EOL>gmag=vmag+gminvFromVmini(sptVabsAndVmini[spt][<NUM_LIT:1>])<EOL>parerrors=parallaxErrorSkyAvg(gmag,sptVabsAndVmini[spt][<NUM_LIT:1>])<EOL>relparerrors=parerrors*<NUM_LIT:10>**logdistancekpc/<NUM_LIT><EOL>plt.loglog(<NUM_LIT:10>**logdistancekpc, relparerrors,'<STR_LIT>',lw=<NUM_LIT:1>)<EOL>plt.loglog(<NUM_LIT:10>**logdistancekpc[indices], relparerrors[indices],'<STR_LIT:->',label=spt)<EOL><DEDENT>plt.xlim(<NUM_LIT:0.1>,<NUM_LIT>)<EOL>plt.ylim(<NUM_LIT>,<NUM_LIT:0.5>)<EOL>plt.text(<NUM_LIT>, <NUM_LIT>,'<STR_LIT>',<EOL>horizontalalignment='<STR_LIT:right>',<EOL>verticalalignment='<STR_LIT>',<EOL>transform = currentAxis.transAxes)<EOL>plt.legend(loc=<NUM_LIT:2>)<EOL>plt.xlabel('<STR_LIT>')<EOL>plt.ylabel('<STR_LIT>')<EOL>plt.grid(which='<STR_LIT>')<EOL>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>
Plot relative parallax errors as a function of distance for stars of a given spectral type.

Parameters
----------

args - command line arguments