Skip to main content
Tweeted twitter.com/StackMma/status/1097828273017499648
added 14 characters in body
Source Link
kglr
  • 400.5k
  • 18
  • 488
  • 929

I am plotting a contour as ContourPlot[f[x,y]==f0,{x,0,1},{y,0,1}]
and

ContourPlot[f[x,y]==f0,{x,0,1},{y,0,1}]

and I want to use my custom ColorFunction->Function[{x,y}, ... ]ColorFunction->Function[{x,y}, ... ] to color the contour (so that the contour varies its color). So far, I have not succeeded and not found an answer on forums.
Any ideas? Thanks, Sergey

I am plotting a contour as ContourPlot[f[x,y]==f0,{x,0,1},{y,0,1}]
and I want to use my custom ColorFunction->Function[{x,y}, ... ] to color the contour (so that the contour varies its color). So far, I have not succeeded and not found an answer on forums.
Any ideas? Thanks, Sergey

I am plotting a contour as

ContourPlot[f[x,y]==f0,{x,0,1},{y,0,1}]

and I want to use my custom ColorFunction->Function[{x,y}, ... ] to color the contour (so that the contour varies its color). So far, I have not succeeded and not found an answer on forums.
Any ideas? Thanks, Sergey

edited tags
Link
Source Link

How to color Contours in ContourPlot with custom ColorFunction

I am plotting a contour as ContourPlot[f[x,y]==f0,{x,0,1},{y,0,1}]
and I want to use my custom ColorFunction->Function[{x,y}, ... ] to color the contour (so that the contour varies its color). So far, I have not succeeded and not found an answer on forums.
Any ideas? Thanks, Sergey