Questions tagged [loglog]

65 questions
0
votes
1 answer

log-log plot and power function fitting

I try to fit a power function using a lm on log-log plot data mentioned here https://statisticsbyjim.com/regression/log-log-plots/ using a mammal dataset . I used the following code according the description but fail reproduce the results. mammals…
Niels Raes
  • 39
  • 1
  • 7
0
votes
1 answer

Plotting 95% confidence intervals of log-log linear model predicted values

I fit length and weight data to a log-log linear model and created a regression line where the response has been back transformed to the original scale. Next, I would like to add two lines to the scatterplot representing upper and lower 95%…
pomerler
  • 3
  • 1
0
votes
1 answer

How do I extend a linear regression plot in matplotlib

I've encountered a problem trying to fit a straight to linear part of my plot. To finish my plot I have to extend the red line as if it were a straight, so that it's intersection with at least x axis can be observed. My code is: import…
happyRip
  • 1
  • 1
0
votes
1 answer

Plotting a log-log graph from Excel file

I tried to plot a graph by importing an Excel file to plot a log-log graph. This was my code but it seems I'm not getting it right. import matplotlib.pyplot as plt import pandas as…
Dakon
  • 11
  • 2
0
votes
1 answer

How do I make this LogLog plot?

I am new to python and I am trying to create a LogLogPlot, similar to the one in the image below: This plot, as can be seen on the top, is based on the equation y=x^2/(e^x +1). I have found…
user7077252
  • 135
  • 6
0
votes
0 answers

Checking lm() function

Why this is not the same? y2=log10(Standards$`IL2 median`) x2=c(0,log10(concentration[2:10])) y2 [1] 2.495544 2.773055 2.982271 3.192567 3.668572 3.706974 4.151799 [8] 4.450357 4.776396 4.833561 x2 [1] 0.000000 1.301030 1.602060 1.903090 2.193125…
Baldrion
  • 1
  • 1
0
votes
1 answer

Python 3 Derivative Approximation Errors with loglog plot

I need some help understanding this. I watched this YouTube video (https://www.youtube.com/watch?v=q5pwy1NZqbM) that shows how to graph derivative approximation errors on a loglog plot. I get what the final graph shows, but I'm not sure what is…
user12419639
0
votes
0 answers

Plot major ticks on y-axis of loglog plot

I am trying to plot the major ticks on the y-axis of the loglog plot in matplotlib. The plot has ticks ($10^{0}, 10^{-5}, 10^{-10},...$) on the y-axis but I want to indicate the tick marks in between the intervals like for $10^{-1}, 10^{-2},…
math123
  • 23
  • 1
  • 5
0
votes
0 answers

How to set different colors lines in the loglog function?

I need a plot of 24 lines with different non-repeating colors. How to set different colors for lines (24 lines in total) in the loglog function using a matrix created with distinguishable_colors? I get the error: Incorrect number assignment. Missing…
0
votes
1 answer

Logarithmic interpolation of Reynold numbers vs drag coefficient

The table shows the drag coefficient cD of a sphere as a function of Reynolds number Re. Find cD at Re = 5, 50, 500, 5000. Hint: use log–log scale. Re 0.2 2 20 200 2000 20000 cD 103 13.9 2.72 0.800 0.401 0.433 I don't understand how to "use…
Ejjjn
  • 11
  • 5
0
votes
1 answer

how to draw with matlab two seprate graphs with loglog?

i am trieng to draw with matlab the two functions : y1=ln(n!) and y2=ln(n)*n when n is a vector like this : n=1:100 i want to draw both of these functions in the same graph , and then draw another function : ((y2-y1)/y1) on a different graph .. i…
james
  • 23
  • 7
0
votes
1 answer

Utility of loglog plots in curve fitting inverse square relationship

I have a a bunch of data that I'd like to use to find an unknown parameter in a physical equation. I'm trying to find a parameter k to characterise the output of a hall effect sensor as a function on input voltage and distance between the sensor and…
Peiffap
  • 163
  • 1
  • 14
0
votes
1 answer

How can I extract data in a vector from semilogx figure?

How can I extract data in a vector from semilogx figure? I am using bode plot to identify a system transfer function so I need the two vectors coming from semilogx graph to compare slope and identify system from approximate solution. Is there any…
Rowida
  • 1
  • 1
0
votes
0 answers

Draw a vertical line in matplotlib in a loglog plot

I want to plot a vertical line in my matplotlib loglog plot, but they line never shows up. I tried two methods and both fail. How do I do it? So toy example: import numpy as np import matplotlib.pyplot as plt N = 1000 r= np.random.randn(N) x =…
patapouf_ai
  • 17,605
  • 13
  • 92
  • 132
0
votes
1 answer

Finding the gradient and interception point in Matlab

I have a problem finding the interception point from a log-log plot in Matlab using the "least square method". I have the following in Matlab: a=[69.5;94.5;128.5]; b=[11.12;10.21;9.34]; loglog(a,b) C=polyfit(log(a),log(b),1) My objective is to find…
David
  • 159
  • 8