From: Fernando P. <Fer...@co...> - 2005-05-31 01:50:20
|
Arnd Baecker wrote: > On Mon, 30 May 2005, John Hunter wrote: > > >>>>>>>"Fernando" == Fernando Perez <Fer...@co...> writes: > > > There is another point: > For me the y-axis label does not show up in Fernando's example. > > Changing the end of the code to: > ############################## > raw_input("before x-label") > pylab.xlabel('Time t[s]') > raw_input("after x-label, before y-label") > pylab.ylabel('Response') > raw_input("after y-label") > ##################### > shows that the xlabel is shown after the pylab.ylabel line > and the ylabel is never shown. Mmh, very strange. I can confirm that the labels do both (x/y) display correctly for me, on a Fedora Core 3 box using mpl 0.80 on Python 2.3.4 (the default), and the TkAgg backend. However, on my box all other backends (WX, GTK, Qt) fail to even open the display window _at all_. The code runs (confirmed by some print statements), but it never opens a window at all. This, despite the fact that these backends all work just fine in 'ipython -pylab'. Trying to get some info from matplotlib wasn't very enlightening: [~/test]> ./pplot.py --verbose-helpful matplotlib data path /usr/share/matplotlib loaded rc file /usr/local/home/fperez/.matplotlibrc matplotlib version 0.80 verbose.level helpful interactive is False platform is linux2 numerix Numeric 23.7 font search path ['/usr/share/matplotlib'] loaded ttfcache file /usr/local/home/fperez/.ttffont.cache backend GTKAgg version 2.4.1 t 0.0 t 0.1 t 0.2 t 0.3 [...] I haven't the foggiest idea what the problem may be... Best, f |