* bug#20888: matplotlib broken
@ 2015-06-24 6:59 Federico Beffa
2015-06-24 13:08 ` bug#20888: matplotlib Federico Beffa
2015-07-01 14:50 ` bug#20888: matplotlib broken Ricardo Wurmus
0 siblings, 2 replies; 5+ messages in thread
From: Federico Beffa @ 2015-06-24 6:59 UTC (permalink / raw)
To: 20888
I was a happy matplotlib user. Unfortunately, recently it stopped working.
Starting ipython3 and executing the following commands
%matplotlib
import numpy as np
import matplotlib.pyplot as plt
t = np.r_[0:5]
plt.plot(t, t)
now produces an empty, gray window. This was working fine in a
previous version using python3.3.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#20888: matplotlib
2015-06-24 6:59 bug#20888: matplotlib broken Federico Beffa
@ 2015-06-24 13:08 ` Federico Beffa
2015-07-01 17:29 ` bug#20888: Fwd: matplotlib Federico Beffa
2015-07-01 14:50 ` bug#20888: matplotlib broken Ricardo Wurmus
1 sibling, 1 reply; 5+ messages in thread
From: Federico Beffa @ 2015-06-24 13:08 UTC (permalink / raw)
To: 20888
Maybe I should add, that, given that python-matplotlib didn't change
in any way, the problem is likely with one of the inputs.
Regards,
Fede
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#20888: matplotlib broken
2015-06-24 6:59 bug#20888: matplotlib broken Federico Beffa
2015-06-24 13:08 ` bug#20888: matplotlib Federico Beffa
@ 2015-07-01 14:50 ` Ricardo Wurmus
2015-07-01 21:26 ` Ludovic Courtès
1 sibling, 1 reply; 5+ messages in thread
From: Ricardo Wurmus @ 2015-07-01 14:50 UTC (permalink / raw)
To: 20888
I'm afraid I cannot reproduce this. This doesn't mean things just work
for me. It rather means that I'm getting a different error:
$ GI_TYPELIB_PATH=$HOME/.guix-profile/lib/girepository-1.0/ PYTHONPATH=$HOME/.guix-profile/lib/python2.7/site-packages/ python
Python 2.7.6 (default, Jun 16 2015, 17:15:41)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> import matplotlib.pyplot as plt
(process:1384): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
>>> t = np.r_[0:5]
>>> plt.plot(t, t)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/gnu/store/3qmjvhsyj5ccwx0d3lcmsirb9a78473v-python2-matplotlib-1.4.2/lib/python2.7/site-packages/matplotlib-1.4.2-py2.7-linux-x86_64.egg/matplotlib/pyplot.py", line 3092, in plot
ax = gca()
File "/gnu/store/3qmjvhsyj5ccwx0d3lcmsirb9a78473v-python2-matplotlib-1.4.2/lib/python2.7/site-packages/matplotlib-1.4.2-py2.7-linux-x86_64.egg/matplotlib/pyplot.py", line 828, in gca
ax = gcf().gca(**kwargs)
File "/gnu/store/3qmjvhsyj5ccwx0d3lcmsirb9a78473v-python2-matplotlib-1.4.2/lib/python2.7/site-packages/matplotlib-1.4.2-py2.7-linux-x86_64.egg/matplotlib/pyplot.py", line 462, in gcf
return figure()
File "/gnu/store/3qmjvhsyj5ccwx0d3lcmsirb9a78473v-python2-matplotlib-1.4.2/lib/python2.7/site-packages/matplotlib-1.4.2-py2.7-linux-x86_64.egg/matplotlib/pyplot.py", line 435, in figure
**kwargs)
File "/gnu/store/3qmjvhsyj5ccwx0d3lcmsirb9a78473v-python2-matplotlib-1.4.2/lib/python2.7/site-packages/matplotlib-1.4.2-py2.7-linux-x86_64.egg/matplotlib/backends/backend_gtk3agg.py", line 110, in new_figure_manager
return new_figure_manager_given_figure(num, thisFig)
File "/gnu/store/3qmjvhsyj5ccwx0d3lcmsirb9a78473v-python2-matplotlib-1.4.2/lib/python2.7/site-packages/matplotlib-1.4.2-py2.7-linux-x86_64.egg/matplotlib/backends/backend_gtk3agg.py", line 117, in new_figure_manager_given_figure
canvas = FigureCanvasGTK3Agg(figure)
File "/gnu/store/3qmjvhsyj5ccwx0d3lcmsirb9a78473v-python2-matplotlib-1.4.2/lib/python2.7/site-packages/matplotlib-1.4.2-py2.7-linux-x86_64.egg/matplotlib/backends/backend_gtk3agg.py", line 25, in __init__
backend_gtk3.FigureCanvasGTK3.__init__(self, figure)
File "/gnu/store/3qmjvhsyj5ccwx0d3lcmsirb9a78473v-python2-matplotlib-1.4.2/lib/python2.7/site-packages/matplotlib-1.4.2-py2.7-linux-x86_64.egg/matplotlib/backends/backend_gtk3.py", line 210, in __init__
self._idle_event_id = GLib.idle_add(self.idle_event)
File "/home/rwurmus/.guix-profile/lib/python2.7/site-packages/gi/types.py", line 44, in function
return info.invoke(*args)
TypeError: Error invoking GLib.idle_add: Unexpected value for argument 'function'
>>>
I don't know what this means.
On the other hand I get along without any errors if I set the backend to
'Agg' before importing pyplot:
>>> import numpy as np
>>> import matplotlib
>>> matplotlib.use('Agg')
>>> import matplotlib.pyplot as plt
>>> t = np.r_[0:5]
>>> plt.plot(t, t)
[<matplotlib.lines.Line2D object at 0x1e2a950>]
>>> ^C
I understand that this could then be used to write the plot to a file.
Do we actually need to use the Gtk+ backend by default?
~~ Ricardo
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#20888: Fwd: matplotlib
2015-06-24 13:08 ` bug#20888: matplotlib Federico Beffa
@ 2015-07-01 17:29 ` Federico Beffa
0 siblings, 0 replies; 5+ messages in thread
From: Federico Beffa @ 2015-07-01 17:29 UTC (permalink / raw)
To: 20888
To make it work I had to (with the old version) set
export GI_TYPELIB_PATH="$HOME/.guix-profile/lib/girepository-1.0"
As far as I know, 'Agg' can only be used to generate files. It can't
be used interactively a la MATLAB. That's the reason for including the
'GTK3Agg' backend.
Regards,
Fede
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#20888: matplotlib broken
2015-07-01 14:50 ` bug#20888: matplotlib broken Ricardo Wurmus
@ 2015-07-01 21:26 ` Ludovic Courtès
0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2015-07-01 21:26 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: 20888
Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> skribis:
> I'm afraid I cannot reproduce this. This doesn't mean things just work
> for me. It rather means that I'm getting a different error:
:-)
Could you try with ‘guix environment’ as noted at
<http://lists.gnu.org/archive/html/guix-devel/2015-06/msg00300.html>?
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-07-01 21:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-24 6:59 bug#20888: matplotlib broken Federico Beffa
2015-06-24 13:08 ` bug#20888: matplotlib Federico Beffa
2015-07-01 17:29 ` bug#20888: Fwd: matplotlib Federico Beffa
2015-07-01 14:50 ` bug#20888: matplotlib broken Ricardo Wurmus
2015-07-01 21:26 ` Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.