Skip to main content
Tweeted twitter.com/#!/StackMma/status/618953915598508032
added 482 characters in body
Source Link
David
  • 15.1k
  • 4
  • 52
  • 129

Consider:

f = 0.5 (x^2 + y^3); ContourPlot[f, {x, -1, 1}, {y, -1, 1}, MeshFunctions -> {Function[{x, y, z}, x], Function[{x, y, z}, 3 y^2/2]}, Mesh -> {{0}, {0}}, MeshStyle -> {Directive[Thick, Yellow], Directive[Red, Thick, Dashed]}] 

Which produces this image.

enter image description here

Why doesn't the Red, Thick, Dashed mesh show up?

Example showing why it will not just be lines:

f[x_, y_] = x^2 - 4 x y/(y^2 + 1); ContourPlot[f[x, y], {x, -2, 2}, {y, -2, 2}, MeshFunctions -> {Function[{x, y, z}, Evaluate@D[f[x, y], x]], Function[{x, y, z}, Evaluate@D[f[x, y], y]]}, Mesh -> {{0}, {0}}, MeshStyle -> {Directive[Thick, Dashed, Red], Directive[Thick, Yellow]}] 

Which produces:

enter image description here

Consider:

f = 0.5 (x^2 + y^3); ContourPlot[f, {x, -1, 1}, {y, -1, 1}, MeshFunctions -> {Function[{x, y, z}, x], Function[{x, y, z}, 3 y^2/2]}, Mesh -> {{0}, {0}}, MeshStyle -> {Directive[Thick, Yellow], Directive[Red, Thick, Dashed]}] 

Which produces this image.

enter image description here

Why doesn't the Red, Thick, Dashed mesh show up?

Consider:

f = 0.5 (x^2 + y^3); ContourPlot[f, {x, -1, 1}, {y, -1, 1}, MeshFunctions -> {Function[{x, y, z}, x], Function[{x, y, z}, 3 y^2/2]}, Mesh -> {{0}, {0}}, MeshStyle -> {Directive[Thick, Yellow], Directive[Red, Thick, Dashed]}] 

Which produces this image.

enter image description here

Why doesn't the Red, Thick, Dashed mesh show up?

Example showing why it will not just be lines:

f[x_, y_] = x^2 - 4 x y/(y^2 + 1); ContourPlot[f[x, y], {x, -2, 2}, {y, -2, 2}, MeshFunctions -> {Function[{x, y, z}, Evaluate@D[f[x, y], x]], Function[{x, y, z}, Evaluate@D[f[x, y], y]]}, Mesh -> {{0}, {0}}, MeshStyle -> {Directive[Thick, Dashed, Red], Directive[Thick, Yellow]}] 

Which produces:

enter image description here

edited tags
Link
added 23 characters in body
Source Link
David
  • 15.1k
  • 4
  • 52
  • 129

Consider:

f = 0.5 (x^2 + y^3); ContourPlot[f, {x, -1, 1}, {y, -1, 1},  MeshFunctions -> {Function[{x, y, z}, x],  Function[{x, y, z}, 3 y^2/2]},   Mesh -> {{0}, {0}},  MeshStyle -> {Directive[Thick, Yellow], Directive[Red, Thick, Dashed]}] 

Which produces this image.

enter image description here

Why doesn't the Red, Thick, Dashed mesh show up?

Consider:

ContourPlot[f, {x, -1, 1}, {y, -1, 1}, MeshFunctions -> {Function[{x, y, z}, x], Function[{x, y, z}, 3 y^2/2]},   Mesh -> {{0}, {0}}, MeshStyle -> {Directive[Thick, Yellow], Directive[Red, Thick, Dashed]}] 

Which produces this image.

enter image description here

Why doesn't the Red, Thick, Dashed mesh show up?

Consider:

f = 0.5 (x^2 + y^3); ContourPlot[f, {x, -1, 1}, {y, -1, 1},  MeshFunctions -> {Function[{x, y, z}, x],  Function[{x, y, z}, 3 y^2/2]}, Mesh -> {{0}, {0}},  MeshStyle -> {Directive[Thick, Yellow], Directive[Red, Thick, Dashed]}] 

Which produces this image.

enter image description here

Why doesn't the Red, Thick, Dashed mesh show up?

Source Link
David
  • 15.1k
  • 4
  • 52
  • 129
Loading