If it hasn't been fixed, is there a workaround?

On 02/08/2012 10:42 AM, Ted To wrote:
> I believe I have traced it to some axhline and axis commands and this is
> apparently an old problem.  Does it work with version 1.1.0?  I have
> 1.0.1 installed on a debian system.
> 
> On 02/08/2012 09:47 AM, Ted To wrote:
>> Hi,
>>
>> I'm experiencing a very strange problem with plot_date that I can't
>> figure out.
>>
>>     pyplot.plot_date(pylab.date2num(dates),diff,'b-',label='Chained')
>>     pyplot.show()
>>
>> dates, naturally, is a list of dates and diff is an array of floats.
>> With my script, this fails.  But if I interactively enter dates and diff
>> and then type the above commands, it works with no problems.  Any ideas
>> or suggestions?
>>
>> The traceback follows.
>>
>> Thanks,
>> Ted
>>
>> Exception in Tkinter callback
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1413, in __call__
>>     return self.func(*args)
>>   File
>> "/usr/lib/pymodules/python2.6/matplotlib/backends/backend_tkagg.py",
>> line 245, in resize
>>     self.show()
>>   File
>> "/usr/lib/pymodules/python2.6/matplotlib/backends/backend_tkagg.py",
>> line 248, in draw
>>     FigureCanvasAgg.draw(self)
>>   File
>> "/usr/lib/pymodules/python2.6/matplotlib/backends/backend_agg.py", line
>> 394, in draw
>>     self.figure.draw(self.renderer)
>>   File "/usr/lib/pymodules/python2.6/matplotlib/artist.py", line 55, in
>> draw_wrapper
>>     draw(artist, renderer, *args, **kwargs)
>>   File "/usr/lib/pymodules/python2.6/matplotlib/figure.py", line 798, in
>> draw
>>     func(*args)
>>   File "/usr/lib/pymodules/python2.6/matplotlib/artist.py", line 55, in
>> draw_wrapper
>>     draw(artist, renderer, *args, **kwargs)
>>   File "/usr/lib/pymodules/python2.6/matplotlib/axes.py", line 1946, in draw
>>     a.draw(renderer)
>>   File "/usr/lib/pymodules/python2.6/matplotlib/artist.py", line 55, in
>> draw_wrapper
>>     draw(artist, renderer, *args, **kwargs)
>>   File "/usr/lib/pymodules/python2.6/matplotlib/axis.py", line 971, in draw
>>     tick_tups = [ t for t in self.iter_ticks()]
>>   File "/usr/lib/pymodules/python2.6/matplotlib/axis.py", line 904, in
>> iter_ticks
>>     majorLocs = self.major.locator()
>>   File "/usr/lib/pymodules/python2.6/matplotlib/dates.py", line 743, in
>> __call__
>>     self.refresh()
>>   File "/usr/lib/pymodules/python2.6/matplotlib/dates.py", line 752, in
>> refresh
>>     dmin, dmax = self.viewlim_to_dt()
>>   File "/usr/lib/pymodules/python2.6/matplotlib/dates.py", line 524, in
>> viewlim_to_dt
>>     return num2date(vmin, self.tz), num2date(vmax, self.tz)
>>   File "/usr/lib/pymodules/python2.6/matplotlib/dates.py", line 289, in
>> num2date
>>     if not cbook.iterable(x): return _from_ordinalf(x, tz)
>>   File "/usr/lib/pymodules/python2.6/matplotlib/dates.py", line 203, in
>> _from_ordinalf
>>     dt = datetime.datetime.fromordinal(ix)
>> ValueError: ordinal must be >= 1
>>
>> ------------------------------------------------------------------------------
>> Keep Your Developer Skills Current with LearnDevNow!
>> The most comprehensive online learning library for Microsoft developers
>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
>> Metro Style Apps, more. Free future releases when you subscribe now!
>> http://p.sf.net/sfu/learndevnow-d2d
>> _______________________________________________
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to