From: LukasP <LP...@po...> - 2010-07-19 06:41:29
|
Hello, agree with that gnuplot is highly capable plot processor and it is its primary purpose. But gnuplot provides some programming functionality and some string functions for it - strlen, strstrt, substr etc. - so I think one function for doing string replacements would be useful. And I mean simple string-for-string replacement, not wild char matching or regexs (e.g. strrepl("abcd", "bc", "+BC+") -> "a+BC+d"). As for your link for the similar question - I know there are possibilities how to solve problem - I can still pass more arguments to gnuplot where one contains string with "\"s and the other with "/"s; and these args are prepared by another program. But I'd rather pass only one argument which would be processed later in gnuplot; it seems to me simpler and a bit more elegant. Zdar LuP Marek Peca wrote: > > Nazdar, > >> Anyway, don't you think the "replace" function would be useful? > > personally, I think it would not. The valuable property of Gnuplot is, > that it is not a huge wannabe almighty package like SciLab or Emacs, but a > very clever bounded set of features around plotting. > > I think your feature-request is similar to this older one: > http://marc.info/?l=gnuplot-info&m=109472624100968&w=2 > > ..and the right answer is, IMHO, the very same. > > > At se dari, > Marek > -- View this message in context: http://old.nabble.com/Function-%22replace%22-for-strings--tp29173139p29201826.html Sent from the Gnuplot - Dev mailing list archive at Nabble.com. |