PDA

View Full Version : superscript/subscript in the labels read from data file



jayanthan
March 7th, 2012, 07:56 AM
1 1 A_{3}
2 2 C_{2}
3 3 ^{5}C_{1}

I have an input file like this to be plotted. The third column is for the labels on that point (in latex format). How do I get to appear these labels on the plot like they would appear after the latex compilation (as superscript/subscript/Greek alphabet etc.)

jeneverboy
March 7th, 2012, 11:28 AM
in which program do you plot it? Matlab?

xadder
March 7th, 2012, 01:29 PM
Just google matplotlib and gallery to see one way to do this, using python scripts. matplotlib has great support for tex-like text.

jayanthan
March 7th, 2012, 03:39 PM
Sorry, it is in gnuplot.

@xadder
Thanks for the suggestion. I shall try that.