Re: [Matplotlib-users] histogram bug

2006-12-29 Thread Eric Firing
John Hunter wrote: >> "Eric" == Eric Firing <[EMAIL PROTECTED]> writes: > Eric> either, indistinguishably from the way it does now. The > Eric> problem is that with a linear axis we want the axis to start > Eric> at zero by default, but with a log axis we want it to start > > With

Re: [Matplotlib-users] histogram bug

2006-12-28 Thread John Hunter
> "Eric" == Eric Firing <[EMAIL PROTECTED]> writes: Eric> either, indistinguishably from the way it does now. The Eric> problem is that with a linear axis we want the axis to start Eric> at zero by default, but with a log axis we want it to start With ymin at 1e-100, the default (

Re: [Matplotlib-users] histogram bug

2006-12-28 Thread Eric Firing
Diwaker Gupta wrote: >> Examples: >> >> This makes a sensible plot that behaves well under zooming and panning: >> hist(randn(1000), log=True) >> show() > > Thanks! However... > >> The following still generates an exception: >> hist(randn(1000)) >> gca().set_yscale('log') >> show() > > I think t

Re: [Matplotlib-users] histogram bug

2006-12-28 Thread Diwaker Gupta
> Examples: > > This makes a sensible plot that behaves well under zooming and panning: > hist(randn(1000), log=True) > show() Thanks! However... > The following still generates an exception: > hist(randn(1000)) > gca().set_yscale('log') > show() I think this makes the API more confusing. As an

Re: [Matplotlib-users] histogram bug

2006-12-28 Thread Eric Firing
John, Thank you for your thorough and thoughtful reply. OK, I am convinced. I had not realized that the present line-drawing code actually is omitting nonpositive points, but now I see the Line.get_plottable() method. I have committed changes to svn that I think will be helpful--maybe good en

Re: [Matplotlib-users] histogram bug

2006-12-28 Thread John Hunter
> "Eric" == Eric Firing <[EMAIL PROTECTED]> writes: Eric> Adjusting zero and negative values (or maybe just zero) Eric> would be unacceptable in a numerics library, but in the Eric> context of our graphical transforms it is analogous to Eric> clipping, and this we do all the

Re: [Matplotlib-users] histogram bug

2006-12-27 Thread Eric Firing
John Hunter wrote: >> "Eric" == Eric Firing <[EMAIL PROTECTED]> writes: > > Eric> Oops, I replied to your previous message before seeing this > Eric> one. Still, the larger question remains: maybe we should do > Eric> something to make it easier for users to understand what is >

Re: [Matplotlib-users] histogram bug

2006-12-27 Thread John Hunter
> "Eric" == Eric Firing <[EMAIL PROTECTED]> writes: Eric> Oops, I replied to your previous message before seeing this Eric> one. Still, the larger question remains: maybe we should do Eric> something to make it easier for users to understand what is Eric> going on when the tra

Re: [Matplotlib-users] histogram bug

2006-12-27 Thread Eric Firing
Oops, I replied to your previous message before seeing this one. Still, the larger question remains: maybe we should do something to make it easier for users to understand what is going on when the transform chokes on log(0). Changing numbers <=0 to a small positive number and issuing a warnin

Re: [Matplotlib-users] histogram bug

2006-12-27 Thread Eric Firing
John Hunter wrote: >> "Diwaker" == Diwaker Gupta <[EMAIL PROTECTED]> writes: > > >> >> The following minimal script reveals a rendering problem > >> with >> displaying a histogram on a log vertical axis. > > Diwaker> Has this been resolved yet? I'm running Matplotlib > Diwaker

Re: [Matplotlib-users] histogram bug

2006-12-27 Thread John Hunter
> "John" == John Hunter <[EMAIL PROTECTED]> writes: John> You have to make sure your yaxis limits are strictly John> positive, eg John> ax.set_ylim(1e-3, 1e3) ax.set_yscale('log') No that won't quite do it, sorry for the noise. The problem is that the histogram bottom of the r

Re: [Matplotlib-users] histogram bug

2006-12-27 Thread John Hunter
> "Diwaker" == Diwaker Gupta <[EMAIL PROTECTED]> writes: >> >> The following minimal script reveals a rendering problem >> with >> displaying a histogram on a log vertical axis. Diwaker> Has this been resolved yet? I'm running Matplotlib Diwaker> 0.87.5-2.2 on Debian Unstable.

Re: [Matplotlib-users] histogram bug

2006-12-26 Thread Eric Firing
The problem is still present in svn. Thanks for the reminder. Eric Diwaker Gupta wrote: The following minimal script reveals a rendering problem with displaying a histogram on a log vertical axis. > > Has this been resolved yet? I'm running Matplotlib 0.87.5-2.2 on > Debian Unstable.

Re: [Matplotlib-users] histogram bug

2006-12-26 Thread Diwaker Gupta
> >> The following minimal script reveals a rendering problem with > >> displaying a histogram on a log vertical axis. Has this been resolved yet? I'm running Matplotlib 0.87.5-2.2 on Debian Unstable. I try to run the following script: from pylab import * hist(rand(100), 20) ax = gca() ax.set_ysc

Re: [Matplotlib-users] histogram bug

2006-07-22 Thread Gary Ruben
More information on this bug: on my WinXP laptop, it seems to only manifest under some circumstances. When running the script from inside SciTE or ipython, it seems more or less repeatable (sometimes it won't show on the first run but does from then on), but if the .py file is run directly from

Re: [Matplotlib-users] histogram bug

2006-07-21 Thread Gary Ruben
Note: I just verified that this was introduced into 0.87.4. 0.87.3 doesn't exhibit the problem. See attachment. Gary R. [EMAIL PROTECTED] wrote: The following minimal script reveals a rendering problem with displaying a histogram on a log vertical axis. I'm using matplotlib0.87.4 in WinXP with

[Matplotlib-users] histogram bug

2006-07-20 Thread [EMAIL PROTECTED]
The following minimal script reveals a rendering problem with displaying a histogram on a log vertical axis. I'm using matplotlib0.87.4 in WinXP with python 2.3.5 Enthon. from pylab import * hist(rand(100), 20, bottom=1) setp(gca(), yscale="log") show() Gary R.