Hello all,
  I suppose this is a newbie question, but why do I get these three
horizontal grid lines when I add text to my plot? I've tried repeating the
call to pyplot.grid() but that doesn't affect anything...

#!/usr/bin/env python

from matplotlib import pyplot
from scipy import randn

mu, sigma = 200, 25
x = mu + sigma*randn(10000)

pyplot.grid(False)
n, bins, patches = pyplot.hist(x, 50, normed=1, histtype='stepfilled')

xlim_right = pyplot.xlim()[1]
ylim_top   = pyplot.ylim()[1]

pyplot.text(xlim_right*0.8, ylim_top*0.9, 'Fit Parameters:', weight='bold',
size='large')

pyplot.show()

#end script

My matplotlib version is:

[cra...@fsul1 matplotlib]$ python
Python 2.6.2 (r262:71600, Jul 28 2009, 10:47:31)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> matplotlib.__version__
'0.98.5.2'
>>>


Thanks in advance!

<<attachment: gridlines.png>>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to