[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add python-statsmodels.
From: |
Federico Beffa |
Subject: |
Re: [PATCH] Add python-statsmodels. |
Date: |
Mon, 19 Oct 2015 18:15:54 +0200 |
address@hidden (Ludovic Courtès) writes:
> Ricardo Wurmus <address@hidden> skribis:
>> + (add-after 'unpack 'set-matplotlib-backend-to-agg
>> + (lambda _
>> + ;; Set the matplotlib backend to Agg to avoid problems using the
>> + ;; GTK backend without a display.
>> + (substitute* (find-files "statsmodels/graphics/tests" "\\.py")
>> + (("import matplotlib\\.pyplot as plt" line)
>> + (string-append "import matplotlib;matplotlib.use('Agg');"
>> + line)))
>
> This looks good. Should we eventually change Matplotlib itself to use
> this back-end by default? What’s at stake exactly?
I don't think so. This back-end is only usable to produce files, it
can't be used for interactive sessions (which is the key appeal of the
numpy/scipy/matplotlib work-flow over C/C++). IMO we should switch to
the TkInter back-end which is part of the standard Python Library. It
was not available in our python when I did package matplotlib.
Regards,
Fede