Carly
Carly

Reputation: 123

How to write ' using LaTeX in python?

I tried:

plt.text(0.29, 0.06, r'$R_k'$')
plt.text(0.29, 0.06, r'$R_k\prime$')

The first is an error and the second gives very big bold prime.

Upvotes: 0

Views: 352

Answers (1)

Roman-devs
Roman-devs

Reputation: 31

What is the ultimate wording you want to achieve?

Have you tried \textsc{\char13} as this is the character code for ´?

plt.text(0.29, 0.06, r'$R_k \textsc{\char13}$')

Upvotes: 3

Related Questions