Graphics not displayed

10 views
Skip to first unread message

Jean-Pierre Dussault

unread,
Feb 4, 2008, 12:24:19 PM2/4/08
to sage-...@googlegroups.com
Hi,

I try the cvxopt package. When executing the example "portfolio" from the examples in the documentation (http://abel.ee.ucla.edu/cvxopt/examples/documentation/chapter-9/portfolio.py/), the graphics do not appear while they are perfectly displayed if I execute the same example in ipython. In sage, I do not get any error message, just that the graphics windows do not pop up.

Any explanation?

Thanks,

JPD

JPDus...@gmail.com

unread,
Feb 12, 2008, 10:23:36 AM2/12/08
to sage-...@googlegroups.com
Hi,

a week ago, I posted the following message, without getting any
reaction; I discovered the cvxopt package from a posting on sage-
forum, but I am really best described as a newbie, never having used
sage but to try a few examples.

I was considering investing in learning sage and use it in my work on
optimization algorithms. I now understand I have to expect
incompatibilities with some python packages, and no help from this
list. I'll stick to standard python for now.

JPD



---------- Forwarded message ----------
From: "Jean-Pierre Dussault" <jpdussa...@gmail.com>
Date: 4 fév, 12:24
Subject: Graphics not displayed
To: sage-newbie


Hi,

I try the cvxopt package. When executing the example "portfolio" from
the
examples in the documentation (http://abel.ee.ucla.edu/cvxopt/examples/
documentation/chapter-9/portf...),
the graphics do not appear while they are perfectly displayed if I
execute
the same example in ipython. In sage, I do not get any error message,
just
that the graphics windows do not pop up.

Any explanation?

Thanks,

JPD,

Georg

unread,
Feb 14, 2008, 11:00:54 AM2/14/08
to sage-newbie
Jean-Pierre,

> I was considering investing in learning sage and use it in my work on
> optimization algorithms. I now understand I have to expect
> incompatibilities with some python packages, and no help from this
> list. I'll stick to standard python for now.

Usually you get a fast answer here, so don't give up and don't be
froward,
sage comes with it's own Python installation, you can acess it through
typing "sage-python" on the command line (if you have the sage_root
directory in your path), this is nothing else than the "sage version"
of Python, your example file works this way, too (sage-python
example.py), the configuration file of the sage version of matplotlib
is ~/.sage/matplotlibrc, you may change the settings here as they are
in the configuration file of your original version of matplotlib,
namely ~/.matplotlib/matplotlibrc, if there is no such file you have
to change some settings in ~/.sage/matplotlibrc:
search for the line
backend : Agg
and change it to one of the possible settings (you can read it in the
file), i for example now have
backend: TkAgg
but also
backend : GTK
works on my computer
also i recommend to include the line
toolbar : toolbar2 # choose none, classic or toolbar2
then it should work as you expect,

btw, as people here are very bussy you should isolate the problem, in
your case reduce it, for example, to the simple file:
import pylab
pylab.plot([1,2,3])
pylab.show()
then your chances to get an answer is even better, a short description
of which version of sage on what system (Linux, Windows, ..., 32-bit,
64-bit) could also be helpful,

yours, Georg

Ted Kosan

unread,
Feb 14, 2008, 3:16:20 PM2/14/08
to sage-...@googlegroups.com
> Jean-Pierre wrote:
>
>
> > I was considering investing in learning sage and use it in my work on
> > optimization algorithms. I now understand I have to expect
> > incompatibilities with some python packages, and no help from this
> > list. I'll stick to standard python for now.

You might also want to repost your question to the sage-support list.
There are a greater number of experienced Sage users on that list than
on the newbie list.

Ted

Reply all
Reply to author
Forward
0 new messages