Thank you for the help, I never knew what the symlog flag did actually.
However, there is still a slight problem:
=
x = array([0,1,2,4,6,9,12,24])
y = array([100, 50, 10, 100, 5, 1, 1, 1])
subplot(111)
plot(x, y)
yscale('symlog')
Yep. That's a bug. Here's a patch to fix it:
ndex: lib/matplotlib/ticker.py
===
--- lib/matplotlib/ticker.py(revision 8323)
+++ lib/matplotlib/ticker.py(working copy)
@@ -1178,16 +1178,21 @@
def decade_down(x, base=10):
Do we really want to depend on a floating point equality?
Ben Root
On Thu, May 20, 2010 at 9:02 AM, Michael Droettboom md...@stsci.edu wrote:
Yep. That's a bug. Here's a patch to fix it:
ndex: lib/matplotlib/ticker.py
===
In this case, yes. The assumption of these (private) functions is that
x will be non-negative. The only case where we need to worry about log
raising an exception is with exactly 0.
Mike
On 05/20/2010 10:08 AM, Benjamin Root wrote:
Do we really want to depend on a floating point equality?
Ok, good, I just wanted to do a sanity check.
On Thu, May 20, 2010 at 9:21 AM, Michael Droettboom md...@stsci.edu wrote:
In this case, yes. The assumption of these (private) functions is that
x will be non-negative. The only case where we need to worry about log
raising an exception is with
On 05/19/2010 11:31 PM, Christer Malmberg wrote:
Thank you for the help, I never knew what the symlog flag did actually.
However, there is still a slight problem:
=
x = array([0,1,2,4,6,9,12,24])
y = array([100, 50, 10, 100, 5,
Maybe I am misunderstanding your problem, but you can select 'semilog' for
the x/yscale parameter.
Ben Root
On Wed, May 19, 2010 at 7:03 AM, Christer Malmberg
christer.malmberg.0...@student.uu.se wrote:
Hi,
my problem is that I need a graph with a discontinous y-axis. Let me
explain the
On 05/19/2010 10:28 AM, Benjamin Root wrote:
Maybe I am misunderstanding your problem, but you can select 'semilog'
for the x/yscale parameter.
You mean symlog.
See
http://matplotlib.sourceforge.net/examples/pylab_examples/symlog_demo.html
Although the example doesn't show it, the axis