回答
使用Show,例如,
Show[Plot[x^2, {x, 0, 3.5}], ListPlot[{1, 4, 9}]]
注意,如果情節選項衝突顯示使用第一個情節的選項,除非選項中顯示指定。即
Show[Plot[x^2, {x, 0, 3.5}, ImageSize -> 100],
ListPlot[{1, 4, 9}, ImageSize -> 400]]
顯示尺寸的組合曲線圖100
Show[Plot[x^2, {x, 0, 3.5}, ImageSize -> 100],
ListPlot[{1, 4, 9}, ImageSize -> 400], ImageSize -> 300]
顯示大小300
正是我在找的東西!謝謝! – Nick
@Chris Degnen有沒有辦法在WolframAlpha上做到這一點? http://www.wolframalpha.com/input/?i=Show[Plot[x^2%2C+{x%2C+0%2C+3.5}]%2C+ListPlot[{1%2C+4%2C+ 9}]]不起作用。 –
使用Show
和組合兩個單獨曲線的另一種,是用Epilog
到的組合曲線圖將數據點添加到主圖。例如:
data = Table[{i, Sin[i] + .1 RandomReal[]}, {i, 0, 10, .5}];
Plot[Sin[x], {x, 0, 10}, Epilog -> Point[data], PlotRange -> All]
或
Plot[Sin[x], {x, 0, 10}, Epilog -> Line[data], PlotRange -> All]
謝謝!實際上,我在Mathematica幫助文件中看到了一個Point,但我沒有意識到你也可以使用Line來完成它! – Nick
- 1. 在Mathematica中繪製階梯函數
- 2. 在mathematica中繪製sigmoid函數
- 3. Mathematica:繪製分段函數的導數
- 4. 如何用Mathematica在一個平面上繪製x函數和y函數?
- 5. 如何在mathematica中繪製區間值函數?
- 6. 在C++中繪製數據和函數
- 7. 繪製自己的函數wolfram mathematica
- 8. 如何繪製我的函數來繪製R中的數據
- 9. Mathematica動態繪製矩陣數據
- 10. 使用Mathematica Manipulate函數繪製傳遞函數
- 11. 如何在Mathematica中繪製圖表?
- 12. 如何在MatheMatica中繪製Arrow箭頭?
- 13. 在Mathematica中繪製一個複雜函數
- 14. 如何在Mathematica中繪製單位單形中定義的函數?
- 15. 在Mathematica中繪製插值
- 16. 在Mathematica中繪製圖例
- 17. 如何在Matlab中調用Mathematica函數?
- 18. 如何在python中繪製函數值
- 19. 如何在WPF中繪製函數圖?
- 20. 如何在Gnuplot中使用數據圖繪製分段函數?
- 21. Mathematica中三角函數和的係數
- 22. 如何製作Mathematica中函數表的參數圖?
- 23. 在MATLAB中評估和繪製函數
- 24. 在R中繪製函數
- 25. 繪製函數和派生函數
- 26. 根據函數繪製PatchCollection
- 27. 如何從2D Mathematica插值函數中獲取離散數據?
- 28. Mathematica中的表和求和函數
- 29. Mathematica Manipulate函數
- 30. NMheimize Mathematica函數
我確信,這個問題已經被問過這樣過,但無法找到它...的 – Simon
可能重複[如何結合圖形ListPlot與繪圖的圖形?](http://stackoverflow.com/questions/6180373/how-do-i-combine-the-graphic-of-a-listplot-with-the-graphic-of- a-plot) – abcd