====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
gibson:teaching:spring-2016:math445:lecture:scripts [2016/02/02 08:11] gibson |
gibson:teaching:spring-2016:math445:lecture:scripts [2016/02/03 13:54] (current) gibson [Logarithmic plots] |
||
---|---|---|---|
Line 106: | Line 106: | ||
</code> | </code> | ||
- | ===== Logarithmic plots ===== | ||
- | Logarithmic plots are useful when the data you're plotting varies over many orders of magnitude. Logarithmic plots can also highlight certain functional relationships | ||
- | |||
- | ^ plot command ^ functional relationship ^ | ||
- | | **plot(x,y)** ^ $y = mx + b$ ^ | ||
- | | **semilogy(x,y)** | $y = c \; 10^{mx}$ ^ | ||
- | | **semilogx(x,y)** | $y = m \log x + b$ ^ | ||
- | | **loglog(x,y)** | $y = c x^m$ ^ |