[SciPy-User] scikits.timesereies plotting broken with latest matplotlib

Skipper Seabold jsseabold@gmail....
Tue Oct 25 12:17:23 CDT 2011


On Tue, Oct 25, 2011 at 1:13 PM, Dave Hirschfeld <dave.hirschfeld@gmail.com>
wrote:
> Ralf Gommers <ralf.gommers <at> googlemail.com> writes:
>
>>
>>
>> On Tue, Oct 25, 2011 at 1:53 PM, Dave Hirschfeld <dave.hirschfeld <at>
> gmail.com> wrote:
>> With matplotlib v1.1.0 the timeseries plotting code no longer works. I
had a
>> look and it seems that the matplotlib API has changed but not being
familiar
>> with the internals of matplotlib I couldn't find a workaround.
>>
>>
>> Matplotlib has its own mailing list, please ask there.Ralf
>>
>
> Just to clarify, the problem lies with the scikits.timeseries package
which
> depends (in part) upon matplotlib but which hasn't kept up with recent
> developments.
>
> AFAIK scikits.timeseries doesn't have it's own list and the authors
recommend
> this list as the best place to solicit help.
>

FWIW, I've had these lines in scikits.timeseries commented out for a while
with no (known) adverse effects until a proper fix. YMMV

|4 $ svn diff plotlib.py
Index: plotlib.py
===================================================================
--- plotlib.py  (revision 2267)
+++ plotlib.py  (working copy)
@@ -174,10 +174,16 @@
     except TypeError:
         key = str(key)

+    """
     if key in figure_instance._seen:
         ax = figure_instance._seen[key]
         figure_instance.sca(ax)
         return ax
+    """
+    ax = figure_instance._axstack.get(key)
+    if ax is not None:
+        figure_instance.sca(ax)
+        return ax

     SubplotClass = kwargs.pop("SubplotClass", Subplot)
     SubplotClass = kwargs.pop("subclass", SubplotClass)
@@ -187,10 +193,12
@@

else:

         a = SubplotClass(figure_instance, *args,
**kwargs)


+


figure_instance.axes.append(a)

-    figure_instance._axstack.push(a)
+    #figure_instance._axstack.push(a)
+    figure_instance._axstack.add(key,a)
     figure_instance.sca(a)
-    figure_instance._seen[key] = a
+    #figure_instance._seen[key] = a
     return a

 #####
-------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20111025/881c04d0/attachment.html 


More information about the SciPy-User mailing list