the contourplot function in mathematica automatically gets legend , contours colors on plot uniformly distributed ( example, blue color 0.1 0.2 function values, green 0.2 0.3 , etc.) in case, function, plot, has large number of values in 0.1 0.2 , few 0.2 1. if want distinguish better values 0.1 0.2 , make several colors section, , make values 0.2 1 one color, how should this?
i use mathematica function hue[z] assign color contours. this, you're going use option colorfunction, this:
contourplot[myfunction, {x,-10,10}, {y,-10,10}, colorfunction -> function[{f},hue[g[f]]]] in code, g[f] function maps contour level hue (a value between 1 , 255). said wanted many values between 0 , 0.2, , few between 0.2 , 1, use like
g[f_] := 100*(5*f)^(1/4) obviously can change fit. if doesn't help, may need increase number of contours, using option contours->n, n how many want. hope helps!
Comments
Post a Comment