Skip to main content
Copy edited (e.g. ref. <https://en.wiktionary.org/wiki/independent#Adjective>). Fixed the question formation - missing auxiliary (or helping) verb - see e.g. <https://www.youtube.com/watch?v=t4yWEt0OSpg&t=1m49s> (see also <https://www.youtube.com/watch?v=kS5NfSzXfrI> (QUASM)).
Source Link

How tocan I add a few specific mesh (altitude-like level) curves to a plot?

I'm plotting the numerical solution of a differential equations, using the altitude-like level curves as a mesh. It's fine, but I would like to add three specific altitude levels as thick red, green and blue curves, while all other curves stay in the default style. Here's a simple MWE to play with:

Plot3D[
 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}, {-3, 3}},
 MeshFunctions -> (#3 &),
 ColorFunction -> "Rainbow",
 ImageSize -> 500,
 Method -> {"RotationControl" -> "Globe"},
 SphericalRegion -> True
 ]

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
 ]

So I need this:

On both plots, I need to show the level curves for the alitude -1 (in thick red), 0 (in thick green) and +1 (in thick blue), while keeping all other curves as they currently are. These curves should be independantindependent of the particular function that I use in this MWE.

How can I do this?

How to add a few specific mesh (altitude-like level) curves to a plot?

I'm plotting the numerical solution of a differential equations, using the altitude-like level curves as a mesh. It's fine, but I would like to add three specific altitude levels as thick red, green and blue curves, while all other curves stay in the default style. Here's a simple MWE to play with:

Plot3D[
 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}, {-3, 3}},
 MeshFunctions -> (#3 &),
 ColorFunction -> "Rainbow",
 ImageSize -> 500,
 Method -> {"RotationControl" -> "Globe"},
 SphericalRegion -> True
 ]

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
 ]

So I need this:

On both plots, I need to show the level curves for the alitude -1 (in thick red), 0 (in thick green) and +1 (in thick blue), while keeping all other curves as they currently are. These curves should be independant of the particular function that I use in this MWE.

How can I do this?

How can I add a few specific mesh (altitude-like level) curves to a plot?

I'm plotting the numerical solution of a differential equations, using the altitude-like level curves as a mesh. It's fine, but I would like to add three specific altitude levels as thick red, green and blue curves, while all other curves stay in the default style. Here's a simple MWE to play with:

Plot3D[
 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}, {-3, 3}},
 MeshFunctions -> (#3 &),
 ColorFunction -> "Rainbow",
 ImageSize -> 500,
 Method -> {"RotationControl" -> "Globe"},
 SphericalRegion -> True
 ]

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
 ]

So I need this:

On both plots, I need to show the level curves for the alitude -1 (in thick red), 0 (in thick green) and +1 (in thick blue), while keeping all other curves as they currently are. These curves should be independent of the particular function that I use in this MWE.

How can I do this?

Tweeted twitter.com/StackMma/status/1336188796883316737
Became Hot Network Question
edited tags
Link
kglr
  • 400.5k
  • 18
  • 488
  • 929
deleted 109 characters in body
Source Link
Cham
  • 4.1k
  • 22
  • 39

I'm plotting the numerical solution of a differential equations, using the altitude-like level curves as a mesh. It's fine, but I would like to add three specific altitude levels as thick red, green and blue curves, while all other curves stay in the default style. Here's a simple MWE to play with:

Plot3D[
 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}, {-3, 3}},
 MeshFunctions -> (#3 &),
 ColorFunction -> "Rainbow",
 ImageSize -> 500,
 Method -> {"RotationControl" -> "Globe"},
 SphericalRegion -> True
 ]

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
 ]

So I need two thingsthis:

  1. On both plots, I need to show the level curves for the alitude -1 (in thick red), 0 (in thick green) and +1 (in thick blue), while keeping all other curves as they currently are. These curves should be independant of the particular fiunction that I use in this MWE.

  2. On both plots, I need to show the normal axis (without labels) and their origin at (0, 0, 0).

On both plots, I need to show the level curves for the alitude -1 (in thick red), 0 (in thick green) and +1 (in thick blue), while keeping all other curves as they currently are. These curves should be independant of the particular function that I use in this MWE.

How can I do this?

I'm plotting the numerical solution of a differential equations, using the altitude-like level curves as a mesh. It's fine, but I would like to add three specific altitude levels as thick red, green and blue curves, while all other curves stay in the default style. Here's a simple MWE to play with:

Plot3D[
 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}, {-3, 3}},
 MeshFunctions -> (#3 &),
 ColorFunction -> "Rainbow",
 ImageSize -> 500,
 Method -> {"RotationControl" -> "Globe"},
 SphericalRegion -> True
 ]

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
 ]

So I need two things:

  1. On both plots, I need to show the level curves for the alitude -1 (in thick red), 0 (in thick green) and +1 (in thick blue), while keeping all other curves as they currently are. These curves should be independant of the particular fiunction that I use in this MWE.

  2. On both plots, I need to show the normal axis (without labels) and their origin at (0, 0, 0).

How can I do this?

I'm plotting the numerical solution of a differential equations, using the altitude-like level curves as a mesh. It's fine, but I would like to add three specific altitude levels as thick red, green and blue curves, while all other curves stay in the default style. Here's a simple MWE to play with:

Plot3D[
 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}, {-3, 3}},
 MeshFunctions -> (#3 &),
 ColorFunction -> "Rainbow",
 ImageSize -> 500,
 Method -> {"RotationControl" -> "Globe"},
 SphericalRegion -> True
 ]

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
 ]

So I need this:

On both plots, I need to show the level curves for the alitude -1 (in thick red), 0 (in thick green) and +1 (in thick blue), while keeping all other curves as they currently are. These curves should be independant of the particular function that I use in this MWE.

How can I do this?

Source Link
Cham
  • 4.1k
  • 22
  • 39
Loading