When is it preferable to use semi-log and log-log graphs?

  • Context: Undergrad 
  • Thread starter Thread starter fog37
  • Start date Start date
  • Tags Tags
    Graphs
Click For Summary

Discussion Overview

The discussion revolves around the use of semi-log and log-log graphs for representing data sets where one variable significantly differs in range from another. Participants explore when it is preferable to use these types of graphs, particularly in the context of exponential functions and varying data ranges.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • Some participants suggest that when the variable ##y## has a much larger or smaller range than ##x##, converting ##y## to its logarithmic value for a semi-log graph is preferable.
  • Others argue that plotting actual values of ##y## is also valid, as the distance between marks on the axes can represent different physical quantities.
  • One participant provides an example of the exponential function ##y=e^{x}## to illustrate the behavior of data across different scales.
  • Another participant notes that a log-log graph is useful when both ##x## and ##y## data pairs range from very small to very large values.
  • Concerns are raised about losing detail for smaller values of ##x## when using a linear scale on the y-axis, suggesting that a log scale compresses the y-values and can reveal linear relationships indicative of exponential functions.
  • Participants discuss the implications of y-axis scaling on the representation of data, particularly for large and small values of ##x##.

Areas of Agreement / Disagreement

Participants express varying opinions on the best practices for graphing data with differing ranges. There is no consensus on whether semi-log or log-log graphs are universally preferable, as multiple competing views remain regarding the appropriateness of each method based on specific data characteristics.

Contextual Notes

Participants highlight limitations related to the scaling of axes and the potential for losing detail in data representation, particularly when dealing with exponential functions and varying data ranges.

fog37
Messages
1,566
Reaction score
108
Hello,
Given two sets of data, ##x## and ##y##, let's assume that the variable ##y## has a range of values that is much larger (or much smaller) than the range of ##x##.
It becomes then preferable to convert the ##y## variable's values to its logarithmic value and obtain a semi-log graph by plotting ##log(y)## vs ##x##. But why don't we simply plot the actual values of the variable ##y## with the distance between the marks on the y-axis representing a large value? The mark distance on the y and x axes does not have to be the same since the ##x## and ##y## variables can indicate different physical quantities...

Also, there seems to be no problem graphing an exponential function ##y=e^{x}##.

And when would a log-log graph be useful?

Thanks!
 
Physics news on Phys.org
When your x,y data pairs range from very small to very large then a log-log graph makes sense.
 
fog37 said:
It becomes then preferable to convert the y variable's values to its logarithmic value and obtain a semi-log graph by plotting log(y) vs x. But why don't we simply plot the actual values of the variable y with the distance between the marks on the y-axis representing a large value? The mark distance on the y and x axes does not have to be the same since the x and y variables can indicate different physical quantities...
Sure, you can use a different scale on the x- and y-axes. The thing is that for an exponential function, a small change in x can produce a wildly varying change in y, depending on the value of x.

Here's a table of a few values for ##y = 10^x##
Code:
x     y
0     1
1     10
2     100
3     1000
4     10000
If the scale on the y-axis is 1000 per scale mark, you lose detail for the smaller values of x, and your graph quickly runs out of room for the larger x values.
OTOH, if you use a log scale on the vertical axis, you are essentially compressing the y-values, and the graph becomes a straight line. This is also another advantage of plotting x vs ##\log(x)##, especially if you just have data and don't know the underlying function -- if you end up with a graph that is linear, you know that the relationship between x and y is exponential.
 
Last edited:
  • Like
Likes   Reactions: jedishrfu
Thanks for the example, Mark44.

So, if the y-axis marks were located at y=0, y=1000, y=2000, y=3000, etc. the graph would look perfectly ok for values of ##x>3##. However for ##x>>3##, the y-variables would assume values so large that the y-marks distance of 1000 would be too small and we would run out of space...

For ##x<3##, the smaller y values would get all bunched up and the graph look strange...
 
fog37 said:
Thanks for the example, Mark44.

So, if the y-axis marks were located at y=0, y=1000, y=2000, y=3000, etc. the graph would look perfectly ok for values of ##x>3##. However for ##x>>3##, the y-variables would assume values so large that the y-marks distance of 1000 would be too small and we would run out of space...

For ##x<3##, the smaller y values would get all bunched up and the graph look strange...
Yes, that's exactly it.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 37 ·
2
Replies
37
Views
5K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
4
Views
3K