Skip to content

Commit

Permalink
correct indundations
Browse files Browse the repository at this point in the history
  • Loading branch information
MAfarrag committed Jul 20, 2024
1 parent ae11706 commit 9790107
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions cleopatra/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,30 +26,29 @@
Here's an example of how to use the `Statistic` class:
```python
import numpy as np
import matplotlib
matplotlib.use("TkAgg")
from cleopatra.statistics import Statistic
import numpy as np
import matplotlib
matplotlib.use("TkAgg")
from cleopatra.statistics import Statistic
# Create some random 1D data
np.random.seed(1)
data_1d = 4 + np.random.normal(0, 1.5, 200)
# Create some random 1D data
np.random.seed(1)
data_1d = 4 + np.random.normal(0, 1.5, 200)
# Create a Statistic object with the 1D data
stat_plot_1d = Statistic(data_1d)
# Create a Statistic object with the 1D data
stat_plot_1d = Statistic(data_1d)
# Generate a histogram plot for the 1D data
fig_1d, ax_1d, hist_1d = stat_plot_1d.histogram()
# Generate a histogram plot for the 1D data
fig_1d, ax_1d, hist_1d = stat_plot_1d.histogram()
# Create some random 2D data
data_2d = 4 + np.random.normal(0, 1.5, (200, 3))
# Create some random 2D data
data_2d = 4 + np.random.normal(0, 1.5, (200, 3))
# Create a Statistic object with the 2D data
stat_plot_2d = Statistic(data_2d, color=["red", "green", "blue"], alpha=0.4, rwidth=0.8)
# Create a Statistic object with the 2D data
stat_plot_2d = Statistic(data_2d, color=["red", "green", "blue"], alpha=0.4, rwidth=0.8)
# Generate a histogram plot for the 2D data
fig_2d, ax_2d, hist_2d = stat_plot_2d.histogram()
# Generate a histogram plot for the 2D data
fig_2d, ax_2d, hist_2d = stat_plot_2d.histogram()
"""

from typing import Union, List, Dict
Expand Down

0 comments on commit 9790107

Please sign in to comment.