> ## Documentation Index
> Fetch the complete documentation index at: https://bagel.softnanolab.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MonteCarloAnalyzer

## Parameters

<ResponseField name="path" type="str" required />

## Methods

### plot\_energies

Plot the evolution of system energy together with individual energy terms.

**Parameters**

<ResponseField name="weighted" type="bool" default="True">
  If True, multiply individual energy terms by their configured weights before plotting.
</ResponseField>

<ResponseField name="use_best" type="bool" default="False">
  If True, plot the best energies; otherwise plot the current energies.
</ResponseField>

<ResponseField name="ax" type="plt.Axes" default="None" />

## Example

```python theme={null}
from bagel.analysis import MonteCarloAnalyzer

analyzer = MonteCarloAnalyzer(path='my_experiment')
ax = analyzer.plot_energies(weighted=True, use_best=False)
```
