[PyMOL] Interactive Matplotlib and PyMOL

2017-03-09 Thread Rene Francolini
Hi All,

I have a python program that i am running in PyMOL. This program utilizes
Matplotlib to plot some results, and i would like to have a Matplotlib
interactive window appear once the code has finished running.

For example, the part of my code to produce the plot:

from pymol import cmd
import sys
import subprocess
import numpy as np
import matplotlib.pyplot as plt

fig1, ax1 = plt.subplots()
ax1.plot([1,2,3], [1,2,3], 'bs')
ax2 = ax1.twinx()
ax2.plot([1,2,3], [1,2,3], 'r^')

fig1.tight_layout()
plt.show()

If i run this section of my code in a shell, the plot properly appears in
an interactive matplotlib window. However, when i have been running it in
the PyMOL Tcl-Tk GUI, nothing is appearing at all. If i run savefig(), the
plot saves, so i know that it is being created properly. Is there any way
to make the interactive matplotlib window appear when running the script
from PyMOL?

I recognize that this is a similar question to the question posted here:
https://sourceforge.net/p/pymol/mailman/message/26788523/
however, this was using pylab and i believe they were running it from a
shell, not directly in PyMOL to begin with, and the solution proposed
(using show()) is not working for me.

Thanks for your thoughts!
Rene

-- 
*Rene Francolini*
Carnegie Mellon University
M.S. Computational Biology 2016
B.S. Biological Sciences 2015
--
LinkedIn: www.linkedin.com/in/rfrancolini
Email: rene.francol...@gmail.com
--
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

[PyMOL] PyMOL 1.8.6 released

2017-03-09 Thread Thomas Holder
Greetings,

We are happy to announce the release of PyMOL v1.8.6. PyMOL sponsors can 
download ready-to-use installers from http://pymol.org/download . The 
open-source code has been pushed to sourceforge svn (revision 4170).

Exciting new features include:

- Fast MMTF load support. MMTF is a new binary format for PDB structures which 
allows for very small file sizes while being self contained with explicit bond 
orders and formal charges. MMTF files now load into PyMOL about 5x as fast as 
mmCIF files. Learn more about MMTF at http://mmtf.rcsb.org/

- Ray tracing support for chromadepth (Incentive feature)

- Edge smoothing for partial surfaces (Incentive feature)

- A convenient CTRL-L shortcut to zoom on organic molecules

Find the complete release notes at:
http://pymol.org/d/media:new186

We've also added several new pages to the PyMOLWiki documenting old and new 
stuff:
https://pymolwiki.org/index.php?title=Special:RecentChanges&from=2017022000&days=30

We welcome any feedback and bug reports.

Cheers,
- The PyMOL Team at Schrödinger

-- 
Thomas Holder
PyMOL Principal Developer
Schrödinger, Inc.


--
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net