|
From: Mojca M. <moj...@gm...> - 2006-08-27 05:45:15
|
On 8/27/06, Ethan A Merritt wrote: > On Saturday 26 August 2006 08:21 pm, Mojca Miklavec wrote: > > > > But what makes me wonder: I got a different pattern (fewer repetitions). See > > http://pub.mojca.org/gnuplot/temp/a.ps > > That is an interesting example. > I do not recognize that set of patterns. > What plot command is generating them? http://pub.mojca.org/gnuplot/temp/data.plt http://pub.mojca.org/gnuplot/temp/data.dat (I didn't modify the file prologues.ps.) > In the 4.2 postscript terminal and associated terminals (epslatex, etc) > pattern definition has been moved into an external prologue file. I still have problems loading it (if it's not located in the folder where I execute gnuplot), but I hope that it will work OK when the release comes out. Would it be possible to store prologues into the binary somehow, so that if the file isn't found, the string stored in the binary would be used as a fallback? I guess that that would cause much less trouble to 99% of users which don't mind editing that file anyway. > So if you want to experiment with new patterns, you can make a local > copy of the prologue and edit it as you please. You do not have to > edit or rebuild gnuplot itself. Yesterday I took a closer look to the prologues. It's too late for 4.2, but for the next release: now the colors are "partially hardcoded". It means that one can change "color of linetype 3", but not the overall number of colors (unless h/shee manually replaces all the occurencies of "set color to linetype 4" to whatever other number). It shouldn't be that difficult to reimplement it is such a way that one would specify a list of colors to be used, gnuplot would output "linetype 30" and PostScript could figure out which color that is from current settings. (A slight fearing is that if that is going to happen, any users that would mind to change prologues.ps in the current version are likely to fail to repeat the process with the next version. But that's another issue.) Mojca |