def METHOD_NAME(
		fileName,
		selected = None,
		labelFormat = '{path}.{field}',
		fileMode = 'w' ):
	'''
	'''
	plots = _selectedPlots( selected )
	with open( fileName, fileMode ) as fout:
		write = lambda line: fout.write( line + '\n' )
		for ( i, plot ) in enumerate( plots ):
			label = '/plotname ' + _label( plot, labelFormat )
			if i > 0:
				write( '' )
			write( '/newplot' )
			write( label )
			for value in plot:
				write( str( value ) )