+++
title = "Plotting"
weight = 70
+++

#### Plot

For plotting a `Datafield` object,
our Python module `ba_plot` provides the function `plot_simulation_result(result)`.

Usage:

```python
from bornagain import ba_plot as bp
simulation = ...
result = simulation.simulate()
bp.plot_simulation_result(result)
```

For a full example, see the for instance the [basic reflectometry example](/ref/sim/ex/specular).

See also:
* [Plotting with axes in different units](ex/axes-in-different-units)
