2011-05-05 75 views
2

當函數列表被ReplaceAll作爲目標時,每個函數的PlotStyle都會丟失。繪製函數列表時使用ReplaceAll

實例具有默認屬性:

GraphicsGrid[{{ 
    Plot[{[email protected]@t, [email protected]@t}, {t, 0, Pi}], 
    Plot[{[email protected]@t, [email protected]@t} /. {s -> Sin, c -> Cos}, {t, 0, Pi}] 
    }}] 

enter image description here 例帶有自定義屬性:

GraphicsGrid[{{ 
    Plot[{[email protected]@t, [email protected]@t}, {t, 0, Pi}, PlotStyle -> {Dashed, {Red, Dotted}}], 
    Plot[{[email protected]@t, [email protected]@t} /. {s -> Sin, c -> Cos}, {t, 0, Pi}, 
              PlotStyle -> {Dashed, {Red, Dotted}}] 
    }}] 

enter image description here

這是因爲這樣的情節實際上繪製之前探索它的參數。

指定函數的各個PlotStyle屬性的最優雅的方法是什麼,如果可能的話,在未指定PlotStyle時重新獲得默認屬性?

注:

當然做

Plot[{f1 /. replist, f2 /. replist ....} ..] 

不被認爲是 「優雅」:d

+0

我們不是以前來過這裏? – 2011-05-05 00:17:55

+0

@Mr。我想是的,但我找不到它 – 2011-05-05 00:19:20

+0

好吧,讓我看看 – 2011-05-05 00:19:54

回答