xend close a graphics export session

## Syntax

    xend()

## Description

`xend` is used to close a graphics export session. When working on the export of a graphic, `xend` closes the file which was opened by `xinit`.

## Examples

    current_driver = driver()
    driver("Pos")
    xinit("foo.ps")
    plot2d()
    xend()
    driver(current_driver)

## See also

- driver
- xinit