Problems with defintion of a ContourFunction
- To: mathgroup at christensen.cybernetics.net
- Subject: [mg1557] Problems with defintion of a ContourFunction
- From: Martina Giarre <giarre at lgmhp3.epfl.ch>
- Date: Sat, 24 Jun 1995 05:18:52 -0400
- Organization: Ecole Polytechnique Federale de Lausanne
Hello, I have some problems in defining a ContourFunction. I cannot specify a color for a certain z-value in a ListContourPlot. I did some tests but the results are strange: test = Transpose[{{1,2,3,4,5,6},{1,2,3,4,5,6}, {1,2,3,4,5,6},{1,2,3,4,5,6}, {1,2,3,4,5,6},{1,2,3,4,5,6}}]; g = {1,2,3,4,5,6}; tc = Table[{Hue[d]},{d,0.4,1,0.1}]; c[f_]:=While[f<=1,Hue[0.9]] ListContourPlot[test, PlotRange->{1,6}, Contours->g, ContourStyle->tc, ContourShading->True, ContourLines->True, ColorFunction->c]; Unfortunately, this gives the chosen colors for the ContourLines but the ContourShading is not done in the right way. Instead of the intervall f<=1 being of the color Hue[0.9], all intervalls are of Hue[0.9]. What is the mistake I do and how to solve the problem? Thank you in advance. Martina Giarre