MathGroup Archive 1995

[Date Index] [Thread Index] [Author Index]

Search the Archive

Problems with defintion of a ContourFunction


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


  • Prev by Date: Definition of ColorFunction->c for ListContourPlot
  • Next by Date: Priority Process
  • Previous by thread: Definition of ColorFunction->c for ListContourPlot
  • Next by thread: Priority Process