f



Can mathematica do a log-log contour plot?

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


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

1 Replies
5502 Views

Similar Articles

[PageSpeed] 56


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



Feng-Yin Chang wrote:

> 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

> 

> 



0
dh142 (1271)
9/21/2007 7:02:49 AM
Reply:

Similar Artilces:

Log-Out/Log-In
In OS 9, frequent application problems often could be remedied by trashing the app's prefs file. I'm inclined to believe that trashing .plist files in OS X is not quite as effective a solution in OS X. But I have noticed that logging out and then logging back in virtually always fixes the performance/behavior problems I've been experiencing. I understand how a corrupted prefs/.plist could cause problems, and trashing it would lead to a "fix." But I don't understand what happens during a log-out/log-in that can yield a "fix." What's going on, and what m...

Logging who has logged in
Is there a simple way of keeping a log in Solaris 10 update 1 of who has logged in, and at what time? I'm not wishing to record what they do, although their IP address would be useful if that is possible. -- Dave K MCSE. MCSE = Minefield Consultant and Solitaire Expert. Please note my email address changes periodically to avoid spam. It is always of the form: month-year@domain. Hitting reply will work for a couple of months only. Later set it manually. HI, Dave (from the UK) wrote: > Is there a simple way of keeping a log in Solaris 10 update 1 of who has > logged in, a...

Logging the Log
I recommend the following excellent NESUG paper Program Validation: Logging the Log by Adel Fahmy http://www.nesug.org/html/Proceedings/nesug04/ap/ap09.pdf (8 pages) This paper describes a program that scans SAS logs for a list of over 90 keywords (error, warning ...) or phrases (has not, must be, never been, no by, ...) contained in a text file. if you thought that searching your log for Error or Warning was enough to get you off the hook you'll be amazed at how much can go wrong and you still get output! Ron Fehd the macro maven CDC Atlanta GA USA RJF2 at cdc dot gov check our mos...

Logging Who Logs In
How can I keep track of who logs into my ASE (15.0.2)? Thanks, Steve -- Steven J. Backus Computer Specialist University of Utah E-Mail: steven.backus@utah.edu Genetic Epidemiology Alternate: backus@math.utah.edu 391 Chipeta Way -- Suite D Office: 801.587.9308 Salt Lake City, UT 84108-1266 http://www.math.utah.edu/~backus Hello, Enable auditing: http://infocenter.sybase.com/help/topic/com.sybase.help.ase_15.0.sag1/html/sag1/sag1831.htm Thanks, Neal On Dec 3, 9:04=A0pm, bac...@ep...

Can one create a log-log plot with the comet function?
I would like to create a log-log comet plot, and am not sure how one modifies the axes to have logarithmic scales. The "loglog()" version of "plot()" is a builtin, so I can't see how it's done there. I have already made my own "delayedcomet.m" to slow it down (just copying the original comet.m and inserting a pause()). However, "axis" doesn't seem to have access to log scale. Any suggestions? Thanks for any help from an older MATLAB newbie. Doug Anderson "Douglas Anderson" <andersondou@pbworld.com> wrote in messa...

Can Mathematica NIntegrate a Log-type singularity?
Hi, I would like to evaluate the following: NIntegrate[alpha^2 Log[2 Cos[alpha/2]]^2, { alpha, -Pi, Pi}] How do I help Mathematica deal with the LogSquared type singularity at either end of the interval. If I try it straight, Mathematica complains and gives a wrong answer. Please note, that Mathematica has absolutely no problem Integrating or NIntegrating the function Log[Cos[alpha/2]]^2 from -Pi to Pi, each time giving the correct answer, but the multiple of alpha^2, throws it off. Many thanks in advance, Aaron. PS: By the way, I'm pretty sure that that inte...

Log Log square plot
Hi, I'd like to plot a distribution on a log- log^2 graph. Those graph look like gaussian graph but with the x axis on a log^2 scale and y axis on log scale. They are call Cole chart and are use for ploting cumulative particle size distribution. Can someone help me. Thanks Jean-Mathieu Gagnon Johnnyhat <jeanmat66@hotmail.Nospamm.com> wrote in message news:<eed95f9.-1@webx.raydaftYaTP>... > Hi, > > I'd like to plot a distribution on a log- log^2 graph. Those graph > look like gaussian graph but with the x axis on a log^2 scale and y > axis on log scale. T...

log-log plot, cftool
I try to define the following equation log(y)=log(a+b*x^(-d)) in cftool? But it seems, that log(y) has no influence on the fitting results!! The result is independent if i define y or log(y). Why? thank's a lot for an answer giovanni ...

Plotting with log(log(x))
Hi, I am trying to make an extreme values plot for hydrological data (annual maximum series for rainfall depth), and require an x-axis in terms of log(log(x)) while the y-axis must remain linear. I am having a great deal of trouble making this type of plot, and was wondering if anyone could let me know how to do it? I've been trying to do it in Minitab, though also have access to Matlab, Maple, and R. However, I am not very good with any of these pieces of software. Any help would be greatly appreciated. I am *very* desperate to get this done and over with, so if you can let me know how...

Making `logging.basicConfig` log to *both* `sys.stderr` and `sys.stdout`?
Hi, I use python oftentimes to write automation scripts on Linux servers. And there's a big pattern in my scripts: - I *always* use `logging` instead of `print` statements. - I *always* create two stream handlers. One for `sys.stdout` with level `INFO` and one for `sys.stderr` with level `WARN` Well, the levels may variate occasionally, but that's only the rare exception. The reason I do this is simple: Most automation tasks are run via cron. With this setup, I can redirect `stdout` to `/dev/null` and still receive e-mails if things go wrong. And having two handlers gives me more ...

How to plot a log-log domain plot of power spectral density
How to plot a log-log domain plot of power spectral density, i have already plotted PSD. I use multitaper method to plot PSD. By doing the followng psd(hs,data,'Fs',Fs); where hs = Multitaper object data = dataset to be analysed Fs = sampling freequency. The output of this is a plot in power/frequency Vs Frequency Domain. I have to re-plot it in log-log domain , such that my resulting graph will be in log(power/frequency) Vs log(frequency) Domain. How can i achieve this ? ...

How does Mathematica create contour plots (or density plots)?
How does Mathematica create contour plots (or density plots)? More specifically, suppose I want a contour plot (with maybe 10 contour lines) or a density plot of a function that has just one primary peak located somewhere in an otherwise vast and featureless (i.e., flat) plane with value z=0. (Or maybe a narrow ridge running diagonally across the plane.) But: * I don't know in advance where this peak is -- or, it moves with time, and I want to make multiple plots and follow its motion. * The function it represents is somewhat costly to calculate. * And I'd l...

plot matrix on log
You would think that the two snippets below produce the same result. They do not. Number 1, this is the intended result where only axis values in the matrix are log scaled ++++++++++++++++++++++++ #Set ranges xmin=0.01 xmax=100 ymin=0.001 ymax=10 set xrange [log10(xmin):log10(xmax)] set yrange [log10(ymin):log10(ymax)] set xtics ("0.01" -2,"0.1" -1,"1" 0, "10" 1, "100" 2) set ytics ("0.001" -3,"0.01" -2,"0.1" -1, "1" 0, "10" 1) #Plot plot 'foo.bin' binary nonuniform ...

How can I access logs logged by logMsg()
Thanks! Messages logged with logMsg will normally just go to the console. If you want then to got to a particular location, use logFdSet to direct them to a particular file. See the logLib doc for details. lc Messages logged with logMsg will normally just go to the console. If you want then to got to a particular location, use logFdSet to direct them to a particular file. See the logLib doc for details. lc ...

linear regression on log log plots
Hello, I have two variables (vectors): L=[0 200 400 600 800 1000] %L:Length S=[0.002 0.001 0.003 0.001 0.002 0.01] %S:Slope and I have to calculate the coefficients Lambda(slope) and Gama(intercept) of a straight line by regression of my data on log-log graph. formula: lnS=Gama-Lambda*lnL; In cftool, axes are normal (not log-log). I also tried ployfit(x,y,n) in polyfit(log(L),log(S),1) way, but it didn't work and answer was NaN NaN. what code should i use for fitting a straight line(linear fitting) and calculation of Lambda and Gama. thaks in advance It does not work because L(1) = 0, so ...

Line smoothing for log-log plots
I recently discovered the undocumented LineSmoothing option for plotting lines on figure axes. However, this option requires the use of the OpenGL renderer in order to work. The problem is that when I set the renderer to OpenGL the axes tick mark spacing of log-log plots gets really messed up making OpenGL unsusable (and consequently the LineSmoothing option). I was wondering if anyone has run into similar issues with the OpenGL renderer and plotting log-log plots and if there is some sort of fix/work-around for this problem. The issue appears stem from the OpenGL renderer and not the LineSmoo...

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 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 &...

smooth option with log log plot
Hi All, I face a problem when i use "smooth cspline" option with "set log xy ". I get some strange wiggle in the curve even if u just by seeing the data plot you can see it is quite smoothly varying. I am posting the data below. Y X 26001.010748 0.010000 4281.268838 0.020000 1403.321122 0.030000 623.920780 0.040000 329.886993 0.050000 195.100466 0.060000 124.802095 0.070000 84.602694 0.080000 59.971387 0.090000 44.045245 0.100000 5.694855 0.200000 1.706694 0.300000 0.724142 0.400000 0.372038 0.500000 0.215795 0.600000 0.136117 0...

O( log n /log log n)
I saw a algorithm that has O( log n /log log n) lookup hops. I can't figure out how each case happen? I even can't understand why big-o can have "log log n" as denominator. Thx copernic wrote: > I saw a algorithm that has O( log n /log log n) lookup hops. I can't > figure out how each case happen? I even can't understand why big-o can > have "log log n" as denominator. Possibly a fusion tree. Basically a B-Tree like structure with a branching factor of (log(n))**(1/5) (which translates into a tree height of approximately (log n / log log ...

Trouble with logging iptables LOG into a .log file
I am a system administrator in a middle school and a linux enthusisastic newbie and have just installed a RH9 box as Default Gateway using iptables as firewall. Recently students started finding MSN replicas and are using them. It is a school policy not to allow MSN and I need to stop it. I can find the exe files of MSN easy enough but need to close the MSN traffic on user level and that means the firewall. I understand that closing the port 1863 (MSN) is to no awail since MSN is smart enough to find other ports like 80 to connect. So I need to sniff out the hosts of MSN for IP bl...

How to fit data to a line on a log-log plot
I finally figured out how to fit data to a line using Gnuplot. It works great and is relatively easy to use. I need help with extending this to log-log plots. I have my data in a file (columns 4:5:6). I can plot this on a log- log plot easy enough. I want to fit a line through the data so it looks linear on the log-log plot. That means I have to fit my data through the line log(y) = m* log(x) + b. Can someone help me understand how to do this? Thanks, Jeremy jeremito <jeremit0@gmail.com> wrote: >That means I have to fit my data through the line Other way ...

to do a rank order plot on log log scale
HI, I have a vector, e.g. tt = 100 * rand(10,1) Now I want do a log-log plot of rank (1,2,3,..assuming 1 represent the hightest frecquency) against frequency. Any one could give me advice on the codeing. Many thanks. ...

Log-Linear Models and Plot of Logged Odds
Hi, I am estimating a log-linear model, and I am expected to draw a plot of logged odds and explain its utility in the model. How do I do this? Any references that could give me pointers. cheers, Y __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ...

Marker face colors in a log-log plot?
Hello, I am trying to plot different symbols with different face colors for multiple data series on a log-log plot using the loglog command; however, I am receiving error messages for the following line: pp=loglog(X1,Y1,'d','markerfacecolor','r',X2,Y2,'square','markerfaceco lor','b',X3,Y3,'v','markerfacecolor','g',X4,Y4,'x','markerfacecolor',' r'); Can anyone tell me the right syntax to obtain the result I am seeking? Thanks. Marco Marco Uzielli wrote: > > > Hello, >...