I want to plot a word vector of URDU text. When i compile the source code, it executes fairly, but blank boxes appear in the resultant graph instead of Urdu text. I need Urdu text instead of boxes. This is my source code:
import numpy as np
import codecs
la = np.linalg
words = ['امریکی','صدر','خبردار','شمالی کوریا','کے','میزائل','اور','.']
arr = np.array([[0,2,1,0,0,0,0,0],
[2,0,0,1,0,1,0,0],
[1,0,0,0,0,0,1,0],
[0,0,0,1,0,0,0,1],
[0,1,0,0,0,0,0,1],
[0,0,1,0,0,0,0,8],
[0,2,1,0,0,0,0,0],
[0,0,1,1,1,0,0,0]])
u, s, v = la.svd(arr, full_matrices=False)
import matplotlib.pyplot as plt
for i in range(len(words)):
plt.text(u[i,2], u[i,3], words[i])
plt.show()