r****y 发帖数: 1437 | 1 【 以下文字转载自 Computation 讨论区 】
发信人: rossby (五十岚已夜), 信区: Computation
标 题: ask a mathematica plotting quesiton
发信站: BBS 未名空间站 (Tue Feb 19 11:39:14 2008), 转信
Have to use mathematica to plot functions, not sure its plotting
function before.
If I have 4 curves to plot on the same chart, how I can let
them being plotted in different colors? This is very easy to do in matlab (
just the default). In Mathematica, seems not default. Thanks. | S*********g 发帖数: 5298 | 2 Plot[f[x],PlotStyle->Red];
Plot[g[x],PlotStyle->RGBColor[0,0,1]];
Show[%,%%]
【在 r****y 的大作中提到】 : 【 以下文字转载自 Computation 讨论区 】 : 发信人: rossby (五十岚已夜), 信区: Computation : 标 题: ask a mathematica plotting quesiton : 发信站: BBS 未名空间站 (Tue Feb 19 11:39:14 2008), 转信 : Have to use mathematica to plot functions, not sure its plotting : function before. : If I have 4 curves to plot on the same chart, how I can let : them being plotted in different colors? This is very easy to do in matlab ( : just the default). In Mathematica, seems not default. Thanks.
| P*******t 发帖数: 202 | 3 如果是Mathematica 6, 每条曲线默认也是不同颜色。比如
Plot[{Sin[x], Cos[x], Sin[x] Cos[x], Cos[x]^2}, {x, -Pi, Pi}]
【在 r****y 的大作中提到】 : 【 以下文字转载自 Computation 讨论区 】 : 发信人: rossby (五十岚已夜), 信区: Computation : 标 题: ask a mathematica plotting quesiton : 发信站: BBS 未名空间站 (Tue Feb 19 11:39:14 2008), 转信 : Have to use mathematica to plot functions, not sure its plotting : function before. : If I have 4 curves to plot on the same chart, how I can let : them being plotted in different colors? This is very easy to do in matlab ( : just the default). In Mathematica, seems not default. Thanks.
|
|