Skip to content

Commit

Permalink
Commented part of code with matplotlib
Browse files Browse the repository at this point in the history
  • Loading branch information
IvankaKuzin committed Dec 21, 2024
1 parent 2d7c763 commit 502a08d
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import random

import matplotlib.pyplot as plt


def flip_coin() -> dict:
results = []
Expand All @@ -20,15 +18,15 @@ def flip_coin() -> dict:

return probabilities


def draw_gaussian_distribution_graph() -> None:
xpoints = flip_coin().keys()
ypoints = flip_coin().values()

plt.plot(xpoints, ypoints)

plt.title("Gaussian distribution")
plt.xlabel("Heads count")
plt.ylabel("Drop percentage %")

plt.show()
# import matplotlib.pyplot as plt
# def draw_gaussian_distribution_graph() -> None:
# xpoints = flip_coin().keys()
# ypoints = flip_coin().values()
#
# plt.plot(xpoints, ypoints)
#
# plt.title("Gaussian distribution")
# plt.xlabel("Heads count")
# plt.ylabel("Drop percentage %")
#
# plt.show()

0 comments on commit 502a08d

Please sign in to comment.