[Bugs] #2225 UNSP: sliderule should support more scales and combinations

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Fri Sep 10 11:11:12 EDT 2010


#2225: sliderule should support more scales and combinations
------------------------------------------+---------------------------------
    Reporter:  walter                     |          Owner:  walter                     
        Type:  enhancement                |         Status:  reopened                   
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  Sliderule                  |        Version:  Unspecified                
    Severity:  Unspecified                |     Resolution:                             
    Keywords:  sliderule                  |   Distribution:  Unspecified                
Status_field:  Unconfirmed                |  
------------------------------------------+---------------------------------

Comment(by walter):

 re user-defined slides, for example, the C slide would be defined simply
 as:

     def offset_function(x):
         return math.log(x, 10)

     def label_function(x):
         return x

 The LL0 slider is similar:

     def offset_function(x):
         return math.log(x, 10)

     def label_function(x):
         return math.exp(x / 1000)

 The trick will be to do the proper scaling along the axis and printing a
 useful precision for the labels.

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/2225#comment:23>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list