Repository navigation
ModifiedLog Scales
Pre-release
Pre-release
ModifiedLog
This release adds Plottable.Scale.ModifiedLog, which can be used the same way as a Plottable.Scale.Linear:
var yScale = new Plottable.Scale.ModifiedLog();
...A ModifiedLog scale behaves mostly the same as a log scale, but as x approaches 0, modifiedLog(x) approaches 0 instead of -Infinity. For a more in-depth explanation, see #710.
ModifiedLog is intended as a replacement for Plottable.Scale.Log, which is very buggy due to not being able to handle 0 and negative numbers.
API changes
Plottable.Scale.ModifiedLogclass has been added, to be used the same way as anyQuantitiveScale.Plottable.Scale.ModifiedLog.showIntermediateTicks(bool)has been added. By default,ModifiedLogonly shows ticks on powers of10, like[10, 100, 1000]. Ifscale.showIntermediateTicks(true)is called, it will show ticks in between, like[10, 30, 70, 100, 300, 700, 1000].Plottable.Scale.Logis deprecated.
