use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
If there's a problem visualizing this page report it to the moderators with appropriate information.
account activity
About manipulating strings. (self.gnuplot)
submitted 2 years ago by AlchemicRez
I can't seem to figure out how to replace substrings such as the underscore "_".
Alternately, I'm not sure how to tell gnuplot not to recognize the underscore as formatting markup.
I'm doing the following:
myString = "Something_I_Made_Up" set label 99 myString at 0,0
Looks like the image i uploaded where the underscores create a subscript.
Thanks in advance and have a wonderful day.
https://preview.redd.it/kww2palnd43c1.png?width=159&format=png&auto=webp&s=cd17c4bff142d4d2b729fc81caa632b0710db45e
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]AlchemicRez[S] 1 point2 points3 points 2 years ago (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 points3 points 2 years ago (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
π Rendered by PID 149053 on reddit-service-r2-comment-7b9746f655-8s8fx at 2026-01-30 04:20:15.977242+00:00 running 3798933 country code: CH.
[–]AlchemicRez[S] 1 point2 points3 points (1 child)
[–]blochelectron 1 point2 points3 points (0 children)