donnieh
Jul 15, 2015 - 18:54
So I have a line of code to set a plot title:
plt.title(r'title')
But what I really want to do is replace 'title' with a variable string. I try but it won't run because of that r character. How is the syntax suppose to be?
Here is what I have tried:
plt.title(r self.tf.text) #bad
and
plt.title(r[self.tf.text]) #bad
any ideas?