Hi again,

[replying to himself as if it were going out of fashion... when it's
already deeply unfashionable]

On 3/12/07, I wrote:

> > I wonder if there is a way to change the base used to calculate the
> > logarithmic mapping for graph.axis.logarithmic?
>
> By the way, I've looked at examples/axis/log.py, and I don't think
> that's the solution

It was pointed out to me off-list that my mapping isn't going to yield
a distribution with logarithmic probability density, therefore my
attempts to use the custom parter solution in examples/axis/log.py
weren't going to work anyway. Using a more natural mapping function
does indeed give nice uniform-looking distributions when graphed using
graph.axis.log.

Sorry for the noise,

James

--

For the record:

# map x from [0, 1] to [minv, maxv]
def exp_map2(minv, maxv, x):
    return math.exp(math.log(minv) + x * (math.log(maxv) - math.log(minv)))

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to