From: <pl...@pi...> - 2010-07-20 08:05:50
|
On 07/19/10 08:41, LukasP wrote: > > 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 >> > Firstly , please don't top post when replying , it makes discussions hard to follow. Isn't the simplest solution here to use gnuplot's system() command to call some external utility like sed or awk to do the substitution? If this is just for labels why request a mod for what can done with existing code in a trivial amount of time. regards |