In Sage 2.10 for me the above works fine. Maybe you defined x to
be something and forgot? Could you try from a fresh Sage session?
Also, could you try
sage: show(plot(math.sin, -5, 5))
--
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org
Just out of curiosity:
(1) What happens when you try at https://www.sagenb.org?
(2) Have you considered building from source? It's not as
hard as it sounds. Just get the newest source tarball from
http://sagemath.org/dist/src/, make sure you have these Ubuntu
packages installed
gcc, g++, make, m4, perl, ranlib
then do
tar xvf sage-2.10.tar
cd sage-2.10
make
and wait 3 hours (do it when you're about to leave or something).
That's it.
-- William
This is undoubtedly some sort of serious problem with the interaction
between matplotlib and something systemwide on your computer maybe
having to do with fonts or languages (?). Some things to try:
(1) Install the _old_ version of matplotlib. Some things won't look perfect,
but it will be way better than nothing, and give us some helpful debugging
information. Do this by extracting the old source tarball (that
worked for you),
and doing
sage -f matplotlib-0.91.1.p2.spkg
where 0.91.1.p2 is replaced by the version that used to work for you.
(2) Get Ondrej Certik to sit down at your computer and try some debugging of
matplotlib :-).
> Petr Muzikar
> (Petr Muzik\'{a}\v{r})
>
> PS I study physics at the Charles University in Prague, Czech
> Republic, like Ondrej Certik.
>
> >
>
--