Re: Can listcontourplot have log-log axes?
- To: mathgroup at smc.vnet.net
- Subject: [mg81374] Re: Can listcontourplot have log-log axes?
- From: Szabolcs Horvát <szhorvat at gmail.com>
- Date: Fri, 21 Sep 2007 03:05:06 -0400 (EDT)
- References: <fct9m7$scs$1@smc.vnet.net>
Feng-Yin Chang wrote: > Hi All, > I have a data set which is in matrix form. We know the data are easily > shown by Listcontourplot directly. But is it possible to make a > listcontourplot with axes log & log from the same data set? If the answer > is yes, how can I do the task? > Thanks. I'm really bothered by that. I am not sure if this would work well with your data, but one possible solution is to make an interpolation function from the data, and then transform the function. (Untested code follows) intpfun = ListInterpolate[data, {{xmin, xmax}, {ymin, ymax}}] ContourPlot[intpfun[Exp[x], Exp[y]], {x, Log@xmin, Log@xmax}, {y, Log@ymin, Log@ymax}, FrameTicks -> {Table[{x,Exp[x]}, {x,Log@xmin,Log@xmax,xstep}], (the same for y)} ] -- Szabolcs