Skip to main content
deleted 95 characters in body
Source Link
cvgmt
  • 84.1k
  • 6
  • 97
  • 179
aa = ContourPlot[
   Sin[x - y] + 
    Cos[x + y],(*this function is just for the MWE*){x, -10, 
    10}, {y, -10, 10}, PlotPoints -> {30, 30}, 
   PlotRange -> {{-10, 10}, {-10, 10}}, ColorFunction -> "Rainbow", 
   ImageSize -> 500, MeshFunctions -> (#3 &), Mesh -> None, 
   ContourStyle -> None, ContourShading -> Automatic];500];
bb = ContourPlot[Sin[x - y] + Cos[x + y], {x, -10, 10}, {y, -10, 10}, 
   PlotPoints -> {30, 30}, PlotRange -> {{-10, 10}, {-10, 10}}, 
   ImageSize -> 500, ContourShading -> None, 
   Contours -> {{-1, {Thick, Red}}, {0, {Thick, Green}}, {1, {Thick, 
       Blue}}}];
Show[aa, bb]
aa = ContourPlot[
   Sin[x - y] + 
    Cos[x + y],(*this function is just for the MWE*){x, -10, 
    10}, {y, -10, 10}, PlotPoints -> {30, 30}, 
   PlotRange -> {{-10, 10}, {-10, 10}}, ColorFunction -> "Rainbow", 
   ImageSize -> 500, MeshFunctions -> (#3 &), Mesh -> None, 
   ContourStyle -> None, ContourShading -> Automatic];
bb = ContourPlot[Sin[x - y] + Cos[x + y], {x, -10, 10}, {y, -10, 10}, 
   PlotPoints -> {30, 30}, PlotRange -> {{-10, 10}, {-10, 10}}, 
   ImageSize -> 500, ContourShading -> None, 
   Contours -> {{-1, {Thick, Red}}, {0, {Thick, Green}}, {1, {Thick, 
       Blue}}}];
Show[aa, bb]
aa = ContourPlot[
   Sin[x - y] + 
    Cos[x + y],(*this function is just for the MWE*){x, -10, 
    10}, {y, -10, 10}, PlotPoints -> {30, 30}, 
   PlotRange -> {{-10, 10}, {-10, 10}}, ColorFunction -> "Rainbow", 
   ImageSize -> 500];
bb = ContourPlot[Sin[x - y] + Cos[x + y], {x, -10, 10}, {y, -10, 10}, 
   PlotPoints -> {30, 30}, PlotRange -> {{-10, 10}, {-10, 10}}, 
   ImageSize -> 500, ContourShading -> None, 
   Contours -> {{-1, {Thick, Red}}, {0, {Thick, Green}}, {1, {Thick, 
       Blue}}}];
Show[aa, bb]
added 740 characters in body
Source Link
cvgmt
  • 84.1k
  • 6
  • 97
  • 179

Or this?

aa = ContourPlot[
   Sin[x - y] + 
    Cos[x + y],(*this function is just for the MWE*){x, -10, 
    10}, {y, -10, 10}, PlotPoints -> {30, 30}, 
   PlotRange -> {{-10, 10}, {-10, 10}}, ColorFunction -> "Rainbow", 
   ImageSize -> 500, MeshFunctions -> (#3 &), Mesh -> None, 
   ContourStyle -> None, ContourShading -> Automatic];
bb = ContourPlot[Sin[x - y] + Cos[x + y], {x, -10, 10}, {y, -10, 10}, 
   PlotPoints -> {30, 30}, PlotRange -> {{-10, 10}, {-10, 10}}, 
   ImageSize -> 500, ContourShading -> None, ContourStyle -> None, 
   MeshFunctions -> (-#3 &), 
   Mesh -> {{{-1, {Thick, Red, Opacity[1]}}, {0, {Thick, Green, 
        Opacity[1]}}, {1, {Thick, Blue, Opacity[1]}}}}];
Show[aa, bb]

enter image description here

enter image description here

Or this?

aa = ContourPlot[
   Sin[x - y] + 
    Cos[x + y],(*this function is just for the MWE*){x, -10, 
    10}, {y, -10, 10}, PlotPoints -> {30, 30}, 
   PlotRange -> {{-10, 10}, {-10, 10}}, ColorFunction -> "Rainbow", 
   ImageSize -> 500, MeshFunctions -> (#3 &), Mesh -> None, 
   ContourStyle -> None, ContourShading -> Automatic];
bb = ContourPlot[Sin[x - y] + Cos[x + y], {x, -10, 10}, {y, -10, 10}, 
   PlotPoints -> {30, 30}, PlotRange -> {{-10, 10}, {-10, 10}}, 
   ImageSize -> 500, ContourShading -> None, ContourStyle -> None, 
   MeshFunctions -> (-#3 &), 
   Mesh -> {{{-1, {Thick, Red, Opacity[1]}}, {0, {Thick, Green, 
        Opacity[1]}}, {1, {Thick, Blue, Opacity[1]}}}}];
Show[aa, bb]

enter image description here

deleted 52 characters in body
Source Link
cvgmt
  • 84.1k
  • 6
  • 97
  • 179

enter image description here

2D

Set Contours

Contours -> {{-1, {Thick, Red}}, {0, {Thick, Green}}, {1, {Thick, 
       Blue}}}
aa = ContourPlot[
   Sin[x - y] + 
    Cos[x + y],(*this function is just for the MWE*){x, -10, 
    10}, {y, -10, 10}, PlotPoints -> {30, 30}, 
   PlotRange -> {{-10, 10}, {-10, 10}}, ColorFunction -> "Rainbow", 
   ImageSize -> 500, MeshFunctions -> (#3 &), Mesh -> None, 
   ContourStyle -> None, ContourShading -> Automatic];
bb = ContourPlot[Sin[x - y] + Cos[x + y], {x, -10, 10}, {y, -10, 10}, 
   PlotPoints -> {30, 30}, PlotRange -> {{-10, 10}, {-10, 10}}, 
   ImageSize -> 500, MeshFunctionsContourShading -> {-#3 &}None, 
   MeshContours -> {{{-1, {Thick, Red, Opacity[1]}}, {0, {Thick, Green, 
        Opacity[1]}}, {1, {Thick, Blue, Opacity[1]}}}}, 
   ContourStyle -> None, ContourShading -> None];Blue}}}];
Show[aa, bb]

enter image description hereenter image description here

2D

aa = ContourPlot[
   Sin[x - y] + 
    Cos[x + y],(*this function is just for the MWE*){x, -10, 
    10}, {y, -10, 10}, PlotPoints -> {30, 30}, 
   PlotRange -> {{-10, 10}, {-10, 10}}, ColorFunction -> "Rainbow", 
   ImageSize -> 500, MeshFunctions -> (#3 &), Mesh -> None, 
   ContourStyle -> None, ContourShading -> Automatic];
bb = ContourPlot[Sin[x - y] + Cos[x + y], {x, -10, 10}, {y, -10, 10}, 
   PlotPoints -> {30, 30}, PlotRange -> {{-10, 10}, {-10, 10}}, 
   ImageSize -> 500, MeshFunctions -> {-#3 &}, 
   Mesh -> {{{-1, {Thick, Red, Opacity[1]}}, {0, {Thick, Green, 
        Opacity[1]}}, {1, {Thick, Blue, Opacity[1]}}}}, 
   ContourStyle -> None, ContourShading -> None];
Show[aa, bb]

enter image description here

enter image description here

2D

Set Contours

Contours -> {{-1, {Thick, Red}}, {0, {Thick, Green}}, {1, {Thick, 
       Blue}}}
aa = ContourPlot[
   Sin[x - y] + 
    Cos[x + y],(*this function is just for the MWE*){x, -10, 
    10}, {y, -10, 10}, PlotPoints -> {30, 30}, 
   PlotRange -> {{-10, 10}, {-10, 10}}, ColorFunction -> "Rainbow", 
   ImageSize -> 500, MeshFunctions -> (#3 &), Mesh -> None, 
   ContourStyle -> None, ContourShading -> Automatic];
bb = ContourPlot[Sin[x - y] + Cos[x + y], {x, -10, 10}, {y, -10, 10}, 
   PlotPoints -> {30, 30}, PlotRange -> {{-10, 10}, {-10, 10}}, 
   ImageSize -> 500, ContourShading -> None, 
   Contours -> {{-1, {Thick, Red}}, {0, {Thick, Green}}, {1, {Thick, 
       Blue}}}];
Show[aa, bb]

enter image description here

added 95 characters in body
Source Link
cvgmt
  • 84.1k
  • 6
  • 97
  • 179
Loading
added 650 characters in body
Source Link
cvgmt
  • 84.1k
  • 6
  • 97
  • 179
Loading
Source Link
cvgmt
  • 84.1k
  • 6
  • 97
  • 179
Loading