Thanks Alan
I con confirm this works fine for a simple showing of the background.
I altered it slightly, just to reduce the number of input lines:
iters 100000
chi2_convergence_criteria 0.001
do_errors
'#define plot_background_ ' comment this line out for normal refinement
xdd...
bkg...
fit_obj...
#ifdef plot_background_
iters 0
#else
str...
str...
#endif
e.g.
I am working on a simplified way of outputting the background fit to an ascii file and will post the resulting macros onto the macro page of the Topas wiki.