Closed translunar closed 12 years ago
The 'ticks' signature seems different between quantitative.rb and log.rb. The 'log' one does not take argument.
I implemented an argument on Scale::Log.ticks, setting the numbers of subdivisions inside each base^x. For example, in your case you should use something like Scale::Log.ticks(1)
If I use
xy = pv.Scale.linear(0, 1000).range(40, 400)
, then I can later draw rules usingdata xy.ticks(5)
.But if I change it like so,
xy = pv.Scale.log(1,1000).range(40,400)
, thendata xy.ticks(5)
gives an error message. Instead I have to dodata [1,10,100,1000]
.Here is the error:
Looks like this is related to the other two open issues.