Is there any way to plot a line graph where each series is plotted with two alternating colors? For example, say I was plotting the population of bees over time and I wanted the line to alternate between black and yellow.
Asked
Active
Viewed 1,588 times
2
-
Welcome to TeX.SX. As the name of the site indicates, its purpose is for questions about typesetting systems built on top of TeX. Your question about gnuplot is probably better served on our sister site Super User. – Caramdir Mar 29 '11 at 01:43
-
josh: I have to agree with @Carmdir. However, the question would be on-topic if you would rephrase it to plotting such a graph in general for a (La)TeX document. This would allow for TeX based plotting solutions. – Martin Scharrer Mar 29 '11 at 10:47
-
I must admit to being a little surprised by this response. Gnuplot is of course a general purpose plotting tool, but it is primarily used to make figures in tex documents. The official gnuplot tutorial is about preparing gnuplot figures in tex! Searching for 'gnuplot' on this forum and superuser returns almost the same number of results (39 vs. 35). – josh Apr 05 '11 at 14:18
1 Answers
3
Plot the concerned dataset first as a solid yellow line and then as a dashed black line. See the Gnuplot manual for the necessary settings.
Thorsten Donig
- 46,014