f



Can listcontourplot have log-log axes?

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.


Feng-Yin Chang,
Institute of Physics,NCTU,Taiwan


0
fychang (8)
9/20/2007 8:06:31 AM
comp.soft-sys.math.mathematica 28821 articles. 0 followers. Follow

1 Replies
744 Views

Similar Articles

[PageSpeed] 19

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

0
szhorvat (1435)
9/21/2007 7:07:59 AM
Reply: