MathGroup Archive 1996

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

Search the Archive

Re: a question on ContourPlot


David E. Burmaster wrote:
> I have made a complicated contour plot (on linear axes) that
>I would like to convert to semi-log axes....
> This does NOT work: 
>         Show[ plot/.{a_, b_} -> {a, Log[b]}]

Is the following what you wanted?

myContourData = ContourPlot[ Sin[x y], {x,1, 2}, {y,1,2},
AspectRatio->Automatic];0;

Show[
	(N@ Graphics@ myContourData) /.{x_?AtomQ, y_?AtomQ} -> {x, Log[y]},
AspectRatio->Automatic];0;

The key point is that you need to convert your contour data to graphic 
primitives with Graphics@ myContourData.

 Xah
 xah at best.com; 74631.731 at compuserve.com
 http://www.best.com/~xah/SpecialPlaneCurves_dir/specialPlaneCurves.html
 Mountain View, CA, USA

==== [MESSAGE SEPARATOR] ====


  • Prev by Date: Re: graphs to postscript
  • Next by Date: Need help in evaluating software
  • Previous by thread: a question on ContourPlot
  • Next by thread: Re: differential equation