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

0 |

5/15/2008 6:04:25 PM

jeremito <jeremit0@gmail.com> wrote: >That means I have to fit my data through the line Other way around: fit the line to the data. >log(y) = m* log(x) + b. 1. restate this as y = etc 2. use the gnuplot 'fit' command Una

0 |

5/15/2008 7:03:04 PM

On May 15, 3:03=A0pm, u...@att.net (Una) wrote: > jeremito =A0<jerem...@gmail.com> wrote: > >That means I have to fit my data through the line > > Other way around: =A0fit the line to the data. Of course, my mistake. > > >log(y) =3D m* log(x) + b. > > 1. restate this as y =3D etc > 2. use the gnuplot 'fit' command That's easy enough if I can remember my logarithm rules. I was afraid I'd have to do some crazy gnuplot magic ( log10($1) ) etc. Thanks, Jeremy

0 |

5/15/2008 7:34:09 PM

I am trying to write the code for the best-fit line (straight line), as I don't know too much function, I use polyfit to give the result of the slope and y-intersect. then simply develop it in the equation c = polyfit(a,b,1) px = [p1 p2]; py = c(1)*px+c(2); plot(a,b); line(px,py); Then this work. HOWEVER, when the case come to loglog plot, I write the code as c = polyfit(log10(a),log10(b),1) px = [p1 p2]; py = px.^c(1)+10^c(2); loglog(a,b); line(px,py); but it didn't work does there are any other commond, or can you suggest me how to write. thanks a lot ...

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

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 might it tell me as far as diagnosing any underlying problems is concerned? -- iMac (24", 2.8 GHz Intel Core 2 Duo, 2GB RAM, 320 GB HDD) � OS X (10.5.4) Nick Naym a �crit: > 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 might it > tell me as far as diagnosing any underlying problems is co...

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

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...@episun7.med.utah.edu (Steven Backus) wrote: > How can I keep track of who logs into my ASE (15.0.2)? > You can setup auditing to find out who logged in when. You can also find out who did what ! here is the ASE manual link.. http://tinyurl.com/5be3oe -HTH Manish Negandhi [TeamSybase] "Steven Backus" <backus@episun7.med.utah.edu> wrote in message news:gh6all$pga@episun7.med.utah.edu... > 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/~ba...

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

That standard way that Mathematica allows one to plot with different data markers (open circles, triangles etc) is with the command "MulltipleListPlot". This is also the command that allows one to plot with error bars. Is there a way to have the scale of such a plot to be log-log rather than linear style? I don't see this as an option. >-----Original Message----- >From: Nathan Moore [mailto:nmoore@physics.umn.edu] >Sent: Thursday, December 11, 2003 11:28 AM >To: mathgroup@smc.vnet.net >Subject: log-log plot with error bars, different da...

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

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

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

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

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 matrix using (log10(column(1))):(log10(column(2))):3 with image +++++++++++++++++++++++ Number 2, is the obvious solution where axis values and the column/row index values are log scaled +++++++++++++++++++++++ #Set ranges xmin=0.01 xmax=100 ymin=0.001 ymax=10 set xrange [xmin:xmax] set yrange [ymin:ymax] set logscale xy plot 'foo.bin' binary nonuniform matrix using 1:2:3 with image ++++++++++++++++++++++++ I don't know why gnuplot does the log scaling of indexes too. Is there a reason for this? The second solution is much cleaner but gives a distorted display. That display even contains faint (blanked) lines at each column/row in the matrix. Alex van der Spek ...

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

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.700000 0.091300 0.800000 0.064185 0.900000 0.046827 1.000000 0.005874 2.000000 0.001742 3.000000 0.000735 4.000000 0.000377 5.000000 0.000218 6.000000 0.000137 7.000000 0.000092 8.000000 0.000065 9.000000 0.000047 10.000000 If you just plot the data in log-log scale it looks nice but if i use smooth cspline it looks ugly. you get wiggle at the point when the scale jump. Please let me know if there is work around or solution to it. I guess if i take log of data and than smooth it than i should get a smooth curve but i want that to be last option. Thanks, Shailendra Yes, " it looks nice " , I think it looks quite nice with a squiggle as well. You should avoid vague terms like " it looks nice " and try to be clear and precise. Can you please explain exactly what you think smooth csplines should do and what is incorrect with the results ...

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

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

Hi all, I have a strange problem with Tomcat. It seems that every time I do a POST to a jsp or servlet, Tomcat logs the entire post data into Catalina.log. It even logs SOAP calls I make using Apache Axis. Naturally Catalina.log grows to an enormous size after only a short time. Does anyone know why this happens, or better yet how to stop it? I have been through server.xml in Tomcat and there's nothing in it to suggest this type of behaviour. I have never seen or heard of this before. I've tried to find information about this, but so far no luck. I am using Apache as the web server ...

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

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

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

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

Hi All, Is there a way to have gmd log who logs in and when they logged back out? Not having much luck Googling this. :-( Many thanks, -T # ls -al /var/log/gdm .... -rw-r--r-- 1 root root 1132 May 4 08:31 :0.log -rw-r--r-- 1 root root 1132 Apr 19 19:24 :0.log.1 -rw-r--r-- 1 root root 1132 Apr 19 16:37 :0.log.2 -rw-r--r-- 1 root root 1187 Apr 19 16:37 :0.log.3 -rw-r--r-- 1 root root 1132 Apr 11 08:14 :0.log.4 Note that my logs files are all one byte long. On May 4, 2011 14:50, in comp.os.linux.misc, Todd@invalid.com wrote: > Hi All, > > Is there a way to have gmd log who...

I have some xy data that I would like to fit to a log function so I can determine the log equation i.e y=a*log(x). I believe I need something similier to the exponential fit VI? Thanks in advance. Kevin Baker ...

i have applied the recent solaris 8 recommended and security cluster patches on sun solaris 8 i rebooted to get the patches applied,but am not able to mount / in rw mode Kernel version: SunOS 5.8 Generic 108528-23 Jun 2003 mount -o remount,rw / WARNING: Could not access the log for /; Please run fsck(1M) mount: No such device mount: cannot mount /dev/md/dsk/d30 vfstab entry /dev/md/dsk/d30 /dev/md/rdsk/d30 / ufs 1 no logging fsck -y / ** /dev/md/rdsk/d30 ** Last Mounted on / ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Che...

As Amory Lovins, chief scientist at the Rocky Mountain Institute, describes it, energy efficiency is the “lunch you are paid to eat.” This guest ...

The American military reports disclosed by WikiLeaks say Iran trained Iraqi militias and gave them weapons like rockets and bombs.

Resources last updated: 3/2/2016 12:14:05 PM