|
From: Hans-Bernhard B. <br...@ph...> - 2006-01-26 13:56:28
|
chedly ghedira wrote: > i want to plot a curve with different colors. For example, if the Xrange is > [0:500], i want that between [0:100] the curve is in red (for example), > between [100:200] the curve is in green, between [200:300] the curve is in > red again... and so on. > How can i do this? That may very well be the wrong question. You should first ask yourself *if* you should do it this way. Such a plot would visually scream at the reader, but convey no useful information doing so. It would basically be an intentional obfuscation of the plot. If you really must, you'll have to cut your data into two separate files, one holding the 'greeen' parts, the other the 'red' parts (with blank records where the 'wrong' parts would have been, in each of them. Then plot both files using whatever linetype you need to get red and green on whatever terminal you're using. |