From: Jaime V. <vi...@fe...> - 2024-04-22 21:16:13
|
plot2d ([sin(x), sin(2*x), sin(3*x)], [x, 0, 10], [style,[lines,1,2]]); Will plot the three curves with the same style, namely, lines of width equal to 1, and a color code 2 which stands for red. Very confusing, I know; it is a remnant from old versions of Gnuplot when it was harder to set the linetype that would work in all gnuplot terminals. Today I think I could do better. Regards, Jaime On 22/04/24 21:40, Robert Dodier wrote: > I'd like to plot multiple curves in plot2d, all with the same line > style and color. E.g. in > > plot2d ([sin(x), sin(2*x), sin(3*x)], [x, 0, 10]); > > I'd like to see all three curves drawn as solid lines, in the same color. > > By default, plot2d cycles through different colors and styles. I see > that plot2d has options for style, but reading the documentation for > plot2d, and also the documentation for Gnuplot, and looking at the > source code in Maxima, src/gnuplot_def.lisp, I don't see how to make > all curves the same style and color using the available options. What > am I overlooking here? > > best > > Robert > > > _______________________________________________ > Maxima-discuss mailing list > Max...@li... > https://lists.sourceforge.net/lists/listinfo/maxima-discuss |