Try using Qt4Agg matplotlib backend.

matplotlib.use("qt4agg")

Or add the following line to the ~/.matplotlib/matplotlibrc file:
backend      : qt4agg


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] 
Sent: Wednesday, September 17, 2014 8:39 AM
To: [email protected]
Subject: [smartos-discuss] mathlibplot question using IPython

I first want to say how much I have liked using SmartOS.  Also I have been able 
to find just about everything I have been looking for in the package repository 
(pkgsrc.joyent.com).  It is complete and current.

Second, I know this is not a SmartOS question, but I don't know where to turn.

I have installed a suite of X11 and Qt4 libraries, Python 3.4, IPython 2.0.0, 
and Python modules (mathlibplot, ...) all in the hopes to perform some plotting 
within Python on SmartOS.

Now for the noob/novice questions:

I know that X11 is functioning (the good old xclock test), as I can run IPython 
in a qtconsole.  However, I cannot seem to see any of the plots that 
mathlibplot is producing.

There is a message that appears when starting the IPython environment: "Using 
matplotlib backend: agg"
When the plotting is occurring I receive messages like 
"<matplotlib.lines.Line2D at 0x352b678>" or "matplotlib.figure.Figure at 
0x346ae98>"

Where is it trying to draw these images?  How do I get these images to appear 
within an X11 window?

Eventually, I will want to generate files (JPEG).  But for now, I am just 
trying to verify the plotting interactively.

Does anyone know what I need to do?  Or point to documentation that would be 
helpful?

Thank You,
Richard


-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/24882246-6ef95fdc
Modify Your Subscription: https://www.listbox.com/member/?&;
Powered by Listbox: http://www.listbox.com
The information in this email is confidential and may be legally privileged 
against disclosure other than to the intended recipient. It is intended solely 
for the addressee. Access to this email by anyone else is unauthorized. If you 
are not the intended recipient, any disclosure, copying, distribution or any 
action taken or omitted to be taken in reliance on it, is prohibited and may be 
unlawful. Please immediately delete this message and inform the sender of this 
error. 


-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to