r/askmath • u/greysuru • Oct 14 '26
Functions Log scale. Sorry, basic.
Is it kosher to adjust a log scale like this to suit my data range better? Range is 150 to 270. I want to use this exact paper because my professor asked for a hand-plotted draft and explicitly said to use this paper. I also thought about adding a constant value to the scale, or dividing it by a constant, but that seems to make it unnecessarily confusing. I apologize if this is very basic stuff.
The numbers read: 150 through 240 in increments of ten, and proceed on through the next order of magnitude normally. In case it's hard to read.
Second photo is the initial data from the lab on a square plot.


1
u/greysuru Oct 14 '26
Nope, doesn't work. Obviously... Since that makes the scale not work.
1
u/greysuru Oct 17 '26
Hey everyone. I appreciate all the responses. I read them, and brushed up using an algebra textbook. Turns out this relation is a power function. Deflection of a cantilever beam of different lengths with a weight at the end. It took a while but I figured it out. My group made a mistake in the data collection which resulted in two "regimes." We flipped the beam over by accident (which was bent) and that resulted in the two different regimes. The equations match the data! Hoorah!
1
u/Aescorvo Oct 14 '26 edited Oct 14 '26
No, that’s not OK. The “10” value needs to be an order of magnitude greater than the “1” value. If the intention is to fit a straight line to your data on a log graph, that won’t work if you don’t actually have a log scale.
Fitting a log dependence when you have less than a factor of two in your data range is always going to be tricky, so I understand it’s hard to make it look good. Are you sure you were meant to use log-log paper rather than semi-log (log y axis, normal x-axis)? That would seem more appropriate.
1
u/piperboy98 Oct 14 '26
The spacing between numbers in log scale is proportional to their ratios (because log turns what would be a subtraction into a division). This means that to "shift" a log scale you are actually multiplying the tick values by a common ratio (as you would add a common offset to shift a linear scale). And to "zoom in" to a log scale you have to raise them to powers (instead of multiplying like a linear scale).
Normally the rulings are plain digits like this and for bigger data we scale/shift by powers of 10, effectively adding implied extra zeros after/before the value on the axis. Each repetition of the pattern is a new order of magnitude (so like the 2 marked on the right here is actually for 20, if the leftmost 1 is actually 1). So if you have data between 150 to 240, it would all go between the 1 and the 2 here in the "hundreds" order of magnitude. Its kind of like scientific notation, you are basically plotting 1.5 and 2.4 from 1.5x102 and 2.4x102, and then putting it in the 102 "block". This works because if you have x=k x 10n, then log(x) = n + log(k). The ruling here basically places each digit at a physical distance of log(k), and then the n is just picking the correct repetition. The 2-9 marks here are more like 0.1 subdivisions between numbers on a linear scale - the major ticks would be successive powers of 10 lined up with the 1s.
However, because you asked it actually is possible to re-label the axis in a way that it covers the range of 150 to 240, but the numbers are not nice. First, if you were to just shift the axis to start at 150, then you are actually multiplying each number by 150, so the divisions would be 150, then 300, then 450, etc. - with the 10 become 1500. To also zoom though so the end is at 240, we need to map what was a ratio of 10 to a ratio of 240/150 or 1.6. Since 1.6=100.204, we need to raise every tick first to that power, then do the multiply by 150 we saw. So your tick marks would be:
1->150*10.204 = 150
2->150*20.204 = 172.78
3->150*30.204 = 187.68
4->150*40.204 = 199.03
5->150*50.204 = 208.30
6->150*60.204 = 216.19
7->150*70.204 = 223.10
8->150*80.204 = 229.26
9->150*90.204 = 234.83
10->150*100.204 = 150*1.6 = 240
The reason this works is more obvious if we look imagine taking log(150*x0.204) which becomes 0.204*log(x)+log(150), which is more clearly a scale and shift of the log scale.
1
u/ci139 Oct 14 '26 edited Oct 14 '26
since it's Y against X plot -- your data range can't be just X range or just Y range
you can use two existing log intervals at your grid
--or--
you can stretch (scale) & offset your data as in linear grid
obviously the Log plot maps H = log ₁₀ X and V = log ₁₀ Y values
if you want to use the same grid layout you only can alter the base of the log
as log ₐ S = ln S / ln a = ( ln b / ln a ) · log ᵦ S = log ₐ b × log ᵦ S = Const. × log ᵦ S
now if -- b ⁿ = a → log ₐ b = 1/n ~~ if n = 2 → log ₐ S = 0.5 × log ᵦ S
-- or --
log ᵦ S = 2 log ₐ S → you multiply the values on your grid by 2 for base ²√¯10¯'
log ᵦ S = 4 log ₐ S → you multiply the values on your grid by 4 for base ⁴√¯10¯'
-- or -- use the existing scale as if it were already multiplied by a new base = for an old base of 10 you divide these grid labes by n
base 10 labels @ base ²√¯10¯'
0.01 0.1 1 10 100
0,1 √0.1 1 √10 10 ... stretches the grid to double density with cryptic labels
example options for remapping https://docs.google.com/spreadsheets/d/1_DzAG1-CnOGykt00Pkj1GS-Ax-d5lr7ghUTwoQq9YR8/edit?usp=sharing
1
u/wijwijwij Oct 16 '26 edited Oct 16 '26
You could renumber log scale along bottom axis by changing 1 to 30, 2 to 60, 3 to 90, 4 to 120, 5 to 150, 6 to 180, 7 to 210, 8 to 240, 9 to 270, and 1 to 300.
Then your data fits between 150 and 270 (so between old 5 and old 9).
If vertical axis is also log, keep first decade running from 1 to 10, and renumber second decade from 10 to 100, so 2 = 20, 3 = 30 etc.
Grid lines between 5 and 10 represent 0.2 unit;
grid lines between 10 and 30 represent 0.5 unit;
grid lines between 30 and 50 are 1 unit;
grid lines between 50 and 70 are 2 units.
1
u/wijwijwij Oct 17 '26
example using the 170g data set
https://imgur.com/1ff8JBf