Ignore:
Timestamp:
12/05/11 11:01:46 (10 years ago)
Author:
sc
Message:
  • Packaging preparations for 0.5.1
  • Support for Matplotlib with PySide? backend
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Puzzlebox/Synapse/Interface_Plot.py

    r304 r305  
    1010""" 
    1111 
    12 ### IMPORTS ### 
    13 from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas 
    14 from matplotlib.figure import Figure 
    15 from numpy import arange, sin, pi 
    16  
     12import os 
    1713 
    1814#import Puzzlebox.Jigsaw.Configuration as configuration 
     
    2925        else: 
    3026                print "INFO: [Interface_Plot] Using PySide module" 
     27                os.environ["QT_API"] = "pyside" 
     28                import matplotlib 
     29                matplotlib.use("Qt4Agg") 
    3130 
    3231if not configuration.ENABLE_PYSIDE: 
    3332        print "INFO: [Interface_Plot] Using PyQt4 module" 
    3433        from PyQt4 import QtCore, QtGui 
     34 
     35 
     36### IMPORTS ### 
     37from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas 
     38from matplotlib.figure import Figure 
     39from numpy import arange, sin, pi 
    3540 
    3641 
Note: See TracChangeset for help on using the changeset viewer.