Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can mathematica do a log-log contour plot?

459 views
Skip to first unread message

Feng-Yin Chang

unread,
Sep 20, 2007, 4:02:10 AM9/20/07
to
Hi All,
I have a data array whose indice stand for x,y axes. Is it posiible
to make a log-log contour plot? Or is there any other way to do the similiar
task by mathematica?
Thanks a lot.

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


dh

unread,
Sep 21, 2007, 3:02:49 AM9/21/07
to

Hi Feng,

there is no built in function for that, you must do it yourself. A quick

and dirty way would be to generate tripples with: {Log of x, Log of y,

function value at x,y}. Here is an example:

dat=Flatten[Table[{Log[x],Log[y],x^2- y^2},{x,1,10,.1},{y,1,10,.1}],1];

ListContourPlot[dat]

Note that the axes show the Log's of x and y. But you may draw the ticks

yourself.

hope this helps, Daniel

0 new messages