Skip to content

Commit

Permalink
add plt.show at the end of all the plots
Browse files Browse the repository at this point in the history
  • Loading branch information
MAfarrag committed Aug 16, 2024
1 parent 12dd087 commit aead861
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion statista/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def pdf(
) # , alpha=0.2
ax.set_xlabel(xlabel, fontsize=fontsize)
ax.set_ylabel(ylabel, fontsize=fontsize)
plt.show()
return fig, ax

@staticmethod
Expand Down Expand Up @@ -102,6 +103,7 @@ def cdf(
ax.set_xlabel(xlabel, fontsize=fontsize)
ax.set_ylabel(ylabel, fontsize=fontsize)
plt.legend(fontsize=fontsize, framealpha=1)
plt.show()
return fig, ax

@staticmethod
Expand Down Expand Up @@ -183,6 +185,7 @@ def details(
fontsize=fontsize,
)
return [fig1, fig2], [ax1, ax2]
plt.show()

@staticmethod
def confidence_level(
Expand Down Expand Up @@ -256,5 +259,5 @@ def confidence_level(
ax.legend(fontsize=fontsize, framealpha=1)
ax.set_xlabel("Theoretical Values", fontsize=fontsize)
ax.set_ylabel("Actual Values", fontsize=fontsize)

plt.show()
return fig, ax

0 comments on commit aead861

Please sign in to comment.