Bigcup Symbol in Python Plotting

Here, we are going to learn about the bigcup symbol in Python plotting and its implementation.
Submitted by Anuj Singh, on August 31, 2020

Bigcup is a different symbol used in set theory and python has provided us to use it while plotting. Following example shows its implementation.

plt.text(0.45, 0.45, r'$\bigcup$')

Illustrations:

Bigcup Symbol in Python Plotting

Python code for bigcup symbol in plotting

import numpy as np
import matplotlib.pyplot as plt

# Bigcup
# In text
plt.figure()
plt.plot([0,1],[0,1], 'o', color=  'purple')
plt.title('Adding Text: Bigcup')
plt.text(0.45, 0.45, r'$\bigcup$', fontsize=25, )
plt.show()

Output:

Output is as Figure


Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.