Borehole NMR processing
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

test.py 731B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env python
  2. import sys
  3. import matplotlib
  4. matplotlib.use('Qt4Agg')
  5. matplotlib.rcParams['backend.qt4']='PySide'
  6. import pylab
  7. from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
  8. from matplotlib.figure import Figure
  9. from PySide import QtCore, QtGui
  10. if __name__ == '__main__':
  11. app = QtGui.QApplication(sys.argv)
  12. # generate the plot
  13. fig = Figure(figsize=(600,600), dpi=72, facecolor=(1,1,1), edgecolor=(0,0,0))
  14. ax = fig.add_subplot(111)
  15. ax.plot([0,1])
  16. # generate the canvas to display the plot
  17. canvas = FigureCanvas(fig)
  18. win = QtGui.QMainWindow()
  19. # add the plot canvas to a window
  20. win.setCentralWidget(canvas)
  21. win.show()
  22. sys.exit(app.exec_())