Skip to content

Commit 856142c

Browse files
Update vonMisesDist.py
1 parent 6405a58 commit 856142c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

data/vonMisesDist.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,24 @@
5757
ax3.xaxis.set_major_formatter(formatter)
5858
ax3.yaxis.set_major_formatter(formatter)
5959

60+
# Get the dimensions of ax3
61+
bbox = ax3.get_position()
62+
width, height = bbox.width, bbox.height
63+
64+
# Create a new subplot in the empty part of the grid
65+
ax4 = fig.add_subplot(spec[1, 3:4], facecolor='#9F9F9F')
66+
67+
# Add the text to the subplot
68+
text = 'The von Mises distribution (also known as the circular normal distribution) is a continuous probability distribution on the unit circle. \nIt may be thought of as the circular analogue of the normal distribution.'
69+
ax4.text(0, 0.5, text,
70+
color='#C6C8CB', # same color as the ticks
71+
ha='left', # horizontal alignment
72+
va='center', # vertical alignment
73+
wrap=True) # enable text wrapping
74+
75+
# Hide the x and y axis
76+
ax4.axis('off')
77+
6078
fig.suptitle('von Mises Distribution', fontproperties=font2, color='#C6C8CB', fontsize=13, x=0.5, y=0.98)
6179

6280
plt.tight_layout()

0 commit comments

Comments
 (0)