メッシュ区切りの置き方を決定するために使用する関数を指定するプロット関数のオプションである.
MeshFunctions
メッシュ区切りの置き方を決定するために使用する関数を指定するプロット関数のオプションである.
詳細
- Plot3Dでは,デフォルト設定のMeshFunctions->{#1&,#2&}で,x と y の座標に対応するメッシュを構築するように指定する.
- MeshFunctions->{m1,m2,…}と設定すると,各関数 miがメッシュ区切りの種類を定義する.
- デフォルトでは,メッシュ区切りは等間隔に置かれた mi[…]の値を与える位置にあるとされる.
- miに渡される引数とMeshFunctionsのデフォルトの設定値は以下の通りである.
-
PlotおよびListLinePlot x, y {#1&} ParametricPlot x, y, u または x, y, u, v {#3&} または {#3&,#4&} PolarPlot および ListPolarPlot x, y, θ, r (#3&) RegionPlot x, y {#1&,#2&} ContourPlot および ListContourPlot x, y, f {} DensityPlot および ListDensityPlot x, y, f {#1&,#2&} ContourPlot3D および ListContourPlot3D x, y, z, f {#1&,#2&,#3&} Plot3D および ListPlot3D x, y, z {#1&,#2&} ListSurfacePlot3D x, y, z {#1&,#2&,#3&} ParametricPlot3D x, y, z, u または x, y, z, u, v {#4&} または {#4&,#5&} RegionPlot3D x, y, z {#1&,#2&,#3&} - 各 miが実質的に葉層を定義する.
- miは通常は連続的な単調関数となるように選ばれるべきである.
例題
すべて開く すべて閉じる例 (3)
Plot3D[Sin[x + y ^ 2], {x, -3, 3}, {y, -2, 2}, MeshFunctions -> {#3&}, Mesh -> 5]DensityPlot[Arg[Sqrt[x + I y]], {x, -3, 3}, {y, -3, 3}, Mesh -> 10, MeshFunctions -> {Re[Sqrt[#1 + I #2]]&, Im[Sqrt[#1 + I #2]]&}]Plot[{Sin[x], Cos[x]}, {x, 0, 6 Pi}, Mesh -> {{0.}}, MeshFunctions -> {Sin[#] - Cos[#]&}, MeshStyle -> Directive[PointSize[0.03], Red]]アプリケーション (1)
{f, g} = {27 x + 130, -12 - 58 x + x^2 + x^3};MeshFunctionsを使って
の交点を求める:
Plot[g, {x, -10, 10}, MeshFunctions -> {g /. x -> #&}, Mesh -> {{0}}, MeshStyle -> PointSize[Large]]MeshFunctionsを使って2つの関数の交点を求める:
Plot[{f, g}, {x, -10, 10}, MeshFunctions -> {(f - g) /. x -> #&}, Mesh -> {{0}}, MeshStyle -> PointSize[Large]]おもしろい例題 (2)
フビニ(Fubini)の定理が成り立たないケース [詳細]:
Plot3D[(x ^ 2 - y ^ 2) / (x ^ 2 + y ^ 2) ^ 2, {x, -1.5, 1.5}, {y, -1.5, 1.5}, BoxRatios -> Automatic, PlotPoints -> 25, MeshFunctions -> {#3&}, MeshStyle -> Purple, MeshShading -> {None, Green, None, Yellow}]$TrigFunctions = {Sin, Cos, Sec, Csc, Tan, Cot, ArcSin, ArcCos, ArcSec, ArcCsc, ArcTan, ArcCot, Sinh, Cosh, Sech, Csch, Tanh, Coth, ArcSinh, ArcCosh, ArcSech, ArcCsch, ArcTanh, ArcCoth};plots = Table[Plot3D[Abs[f[x + I y]], {x, -2, 2}, {y, -2, 2}, MeshFunctions -> Function@@@{{{x, y, z}, Re[f[x + I y]]}, {{x, y, z}, Im[f[x + I y]]}}, MeshStyle -> {Orange, Green}, PlotLabel -> f, Ticks -> None], {f, $TrigFunctions}];GraphicsGrid[Partition[plots, 4], ImageSize -> Large]テキスト
Wolfram Research (2007), MeshFunctions, Wolfram言語関数, https://reference.wolfram.com/language/ref/MeshFunctions.html.
CMS
Wolfram Language. 2007. "MeshFunctions." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MeshFunctions.html.
APA
Wolfram Language. (2007). MeshFunctions. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MeshFunctions.html
BibTeX
@misc{reference.wolfram_2026_meshfunctions, author="Wolfram Research", title="{MeshFunctions}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/MeshFunctions.html}", note=[Accessed: 16-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_meshfunctions, organization={Wolfram Research}, title={MeshFunctions}, year={2007}, url={https://reference.wolfram.com/language/ref/MeshFunctions.html}, note=[Accessed: 16-November-2026]}