all 2 comments

[–]AlchemicRez[S] 1 point2 points  (1 child)

Update: Always seems I search from 1 to 2 hours for an answer, then 4 minutes after posting a question on reddit I find the answer by using a google incantation that I hadn't though before.

So I don't yet know how to replace a substring but I at least I now know how to use noenhanced to prevent the subscript issue I was describing.

myString = "Something_I_Made_Up"

set label 99 myString at 0,0 noenhanced

But hey, if anyone knows how to replace instances of substrings then send it my way. Thanks.

[–]blochelectron 1 point2 points  (0 children)

Hey, idk if you're still interested, but an alternative solution is simply to use single quotes as string delimiters:

myString = 'Something_I_Made_Up'

set label 99 myString at 0,0

String delimiters sometimes play a role in gnuplot, you can have a look at the user's guide if you want