Recall & Review
beginner
What is a log scale in data visualization?
A log scale is a way to show data where the axis values increase by powers of 10 (or another base). It helps to see data that covers a wide range by shrinking large values and expanding small values.
Click to reveal answer
intermediate
What does symlog scale stand for and when is it used?
Symlog means 'symmetric log'. It is used when data has both positive and negative values and you want to use a log scale but still show values near zero clearly.
Click to reveal answer
beginner
How does matplotlib set a log scale on an axis?
You use the method ax.set_xscale('log') or ax.set_yscale('log') to change the axis scale to logarithmic in matplotlib.
Click to reveal answer
intermediate
What parameter controls the linear range around zero in symlog scale in matplotlib?
The 'linthresh' parameter sets the size of the linear range around zero where the scale behaves linearly instead of logarithmically.
Click to reveal answer
intermediate
Why might you choose symlog scale over log scale?
Because log scale cannot show zero or negative values, symlog scale is chosen when data includes negative values or zero and you still want a log-like scale.
Click to reveal answer
Which matplotlib method sets the y-axis to a logarithmic scale?
✗ Incorrect
ax.set_yscale('log') changes the y-axis scale to logarithmic.
What is a key limitation of a pure log scale?
✗ Incorrect
Log scale cannot show zero or negative values because logarithm of these is undefined.
What does the 'linthresh' parameter do in symlog scale?
✗ Incorrect
'linthresh' defines the range near zero where the scale is linear in symlog.
When should you use symlog scale instead of log scale?
✗ Incorrect
Symlog handles negative and zero values by combining linear and log scales.
Which of these is true about log scale?
✗ Incorrect
Log scale axis ticks increase by powers of a base like 10.
Explain how log scale helps in visualizing data with large ranges and why it cannot show zero or negative values.
Think about how numbers grow on a log scale and what happens with zero or negative inputs.
You got /3 concepts.
Describe the symlog scale and how it combines linear and logarithmic scales to handle data with negative and zero values.
Consider why pure log scale fails near zero and how symlog fixes that.
You got /3 concepts.