V-Dash Symbol in Python Plotting

Here, we are going to learn how to add v-dash symbol in Python plotting?
Submitted by Anuj Singh, on September 11, 2020

V-Dash a different symbol used in set theory and other mathematical expressions. Python has provided us to use it while plotting.

Following example shows its implementation.

plt.text(0.25, 0.25, r'$\Vdash$', fontsize=175)

Illustrations:

V-Dash Symbol (1)

V-Dash Symbol (2)

Python code for V-Dash symbol in plotting

import numpy as np
import matplotlib.pyplot as plt

# V-Dash
# In text
plt.figure()
plt.plot([0,1],[0,1], 'o', color=  'purple')
plt.title('Adding Text: V-Dash')
plt.text(0.25, 0.25, r'$\Vdash$', fontsize=175, )
plt.show()

plt.figure()
plt.plot([0,1],[0,1], 'o', color=  'purple')
plt.title('Adding Text: Vdash')
plt.text(0.25, 0.25, r'$\Vdash$', fontsize=175, )
plt.axis(False)
plt.show()

Output:

Output is as Figure


Comments and Discussions!

Load comments ↻





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