hplgit / scitools

Additional scientific computing functionality in Python - extensions to NumPy/SciPy++
http://hplgit.github.io/scitools/doc/web/index.html
Other
64 stars 30 forks source link

Importing scitools breaks matplotlib #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
start ipython and then 
In [1]: x = linspace(-2,2,1000)

In [2]: figure()
Out[2]: <matplotlib.figure.Figure object at 0x03CE2150>

In [3]: plot(x,1-x**2)
Out[3]: [<matplotlib.lines.Line2D object at 0x03CED110>]

In [4]: import scitools
scitools.easyviz backend is matplotlib

In [5]: figure()
Out[5]: <matplotlib.figure.Figure object at 0x03DFE8B0>

In [6]: plot(x,1-x**2)
Out[6]: [<matplotlib.lines.Line2D object at 0x03E8CFF0>]

What is the expected output? What do you see instead?
See scitools1.png for the result of the first plot and scitools2.png for the 
second.  Note that the fonts change significantly, but more alarmingly, the -1 
tick becomes 1.  The really weird thing is that if you get the current axis and 
extract the y tick labels, the label is correctly -1.  As far as I have found, 
this only occurs for the '-1' label.  I only have this issue (and I have it on 
every plot that has a y value of -1) after importing scitools or 
scitools.numpyutils. 

What version of the product are you using? On what operating system?
scitools 0.7 with python-xy 2.6.5.3 on windows xp 32 bit

Please provide any additional information below.

Original issue reported on code.google.com by Russell....@gmail.com on 1 Oct 2010 at 8:20

Attachments:

GoogleCodeExporter commented 9 years ago
I just noticed it also does this on the x axis as well.

Original comment by Russell....@gmail.com on 1 Oct 2010 at 8:41