![請教各位大大 有個例子如下 A = LogLogPlot[x^3 + 3*x^2, {x, 1, 1000}, Frame -> True, GridLines -> Automatic] B = LogLogPlot[2*x^3 + 2*x^2, {x, 1, 1000}, Frame -> True, GridLines -> Automatic] 此時圖A與圖B畫出來是有GridLines 但我想把兩張圖整合成一張,所以使用了以下這個指令 Show[{A, B}, Frame -> True, GridLines -> Automatic] 此時雖然兩張圖會合成一張,但GridLines就消失了 想請問各位大大要如何解決此問題呢? 感謝解感](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRcSjBII_DwkbYc_leUJA_ziBFqJmj7ELF8aBzH5YfRx0RpFZVyYgBxa0mVZzRDITwFTgF76EZHXL0bPcp2c6KsVIzv2Enr7PB-Fu4aZsUQzP5QnvnJFpJUcLMcaiLjRzUnsLhwIphdNg/s400/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2012-08-24+%25E4%25B8%258B%25E5%258D%25884.14.29.png)
A=LogLogPlot[x^3+3*x^2,{x,1,1000},Frame->True,GridLines->Automatic];
B=LogLogPlot[2*x^3+2*x^2,{x,1,1000},Frame->True,GridLines->Automatic];
(* A[[2]]包含了A所有圖形屬性的設定,利用Rule的方式取出格線屬性。GridLines/.A[[2]] *)
Show[{A,B},Frame->True,GridLines->(GridLines/.A[[2]])]
Copyright 2009 Engadget's Style - Design by FUNction, Ray Wei - Powered by Blogger
讀者回應 ( 0 意見 )
訂閱發佈留言 (Atom)
發佈留言
Please leave your name and tell me what you thought about this site. Comments, suggestions and views are welcomed.
如果這篇文章對你有幫助,那請留個訊息給我~