Content-Type: multipart/alternative; boundary="----=_NextPart_001_0007_01C6FB82.DF37BC90" ------=_NextPart_001_0007_01C6FB82.DF37BC90 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello, I wrote Matplotlib Boa constructor plug-in. I also send some samples. Below is file Frame1.py created by Boa. I added there only a few lines to show how it works. Pictures illustrate run and design time of the samples. If you are interested in the plugin, email me: khrom@inp.kz Best regards, Sincerely yours, Dr. Igor V. Khromushin File. Frame1.py #Boa:Frame:Frame1 import wx from scipy import * from pylab import meshgrid import wx.lib.igorplot def create(parent): return Frame1(parent) [wxID_FRAME1, wxID_FRAME1BUTTON1, wxID_FRAME1IGORPLOTCANVAS1, wxID_FRAME1IGORPLOTCANVAS2, wxID_FRAME1IGORPLOTCANVAS3, wxID_FRAME1IGORPLOTCANVAS4, wxID_FRAME1IGORPLOTCANVAS5, wxID_FRAME1IGORPLOTCANVAS6, wxID_FRAME1IGORPLOTCANVAS7, wxID_FRAME1IGORPLOTCANVAS8, wxID_FRAME1IGORPLOTCANVAS9, ] = [wx.NewId() for _init_ctrls in range(11)] class Frame1(wx.Frame): def _init_coll_flexGridSizer1_Items(self, parent): # generated method, don't edit parent.AddWindow(self.igorPlotCanvas1, 1, border=0, flag=wx.GROW) parent.AddWindow(self.igorPlotCanvas2, 1, border=0, flag=wx.GROW) parent.AddWindow(self.igorPlotCanvas3, 1, border=0, flag=wx.GROW) parent.AddWindow(self.igorPlotCanvas4, 1, border=0, flag=wx.GROW) parent.AddWindow(self.igorPlotCanvas5, 1, border=0, flag=wx.GROW) parent.AddWindow(self.igorPlotCanvas6, 1, border=0, flag=wx.GROW) parent.AddWindow(self.igorPlotCanvas7, 1, border=0, flag=wx.GROW) parent.AddWindow(self.igorPlotCanvas8, 1, border=0, flag=wx.GROW) parent.AddWindow(self.igorPlotCanvas9, 1, border=0, flag=wx.GROW) parent.AddSpacer(wx.Size(8, 8), border=0, flag=0) parent.AddWindow(self.button1, 0, border=0, flag=wx.ALIGN_CENTER) def _init_coll_flexGridSizer1_Growables(self, parent): # generated method, don't edit parent.AddGrowableRow(0) parent.AddGrowableRow(1) parent.AddGrowableRow(2) parent.AddGrowableCol(0) parent.AddGrowableCol(1) parent.AddGrowableCol(2) def _init_sizers(self): # generated method, don't edit self.flexGridSizer1 = wx.FlexGridSizer(cols=3, hgap=0, rows=4, vgap=0) self._init_coll_flexGridSizer1_Items(self.flexGridSizer1) self._init_coll_flexGridSizer1_Growables(self.flexGridSizer1) self.SetSizer(self.flexGridSizer1) def _init_ctrls(self, prnt): # generated method, don't edit wx.Frame.__init__(self, id=wxID_FRAME1, name='', parent=prnt, pos=wx.Point(187, 73), size=wx.Size(1044, 847), style=wx.DEFAULT_FRAME_STYLE, title='Frame1') self.SetClientSize(wx.Size(1036, 813)) self.igorPlotCanvas1 = wx.lib.igorplot.IgorPlotCanvas(id=wxID_FRAME1IGORPLOTCANVAS1, name='igorPlotCanvas1', parent=self, pos=wx.Point(0, 0), size=wx.Size(337, 263), style=0) self.igorPlotCanvas2 = wx.lib.igorplot.IgorPlotCanvas(id=wxID_FRAME1IGORPLOTCANVAS2, name='igorPlotCanvas2', parent=self, pos=wx.Point(337, 0), size=wx.Size(362, 263), style=0) self.igorPlotCanvas3 = wx.lib.igorplot.IgorPlotCanvas(id=wxID_FRAME1IGORPLOTCANVAS3, name='igorPlotCanvas3', parent=self, pos=wx.Point(699, 0), size=wx.Size(337, 263), style=0) self.igorPlotCanvas4 = wx.lib.igorplot.IgorPlotCanvas(id=wxID_FRAME1IGORPLOTCANVAS4, name='igorPlotCanvas4', parent=self, pos=wx.Point(0, 263), size=wx.Size(337, 263), style=0) self.igorPlotCanvas5 = wx.lib.igorplot.IgorPlotCanvas(id=wxID_FRAME1IGORPLOTCANVAS5, name='igorPlotCanvas5', parent=self, pos=wx.Point(337, 263), size=wx.Size(362, 263), style=0) self.igorPlotCanvas6 = wx.lib.igorplot.IgorPlotCanvas(id=wxID_FRAME1IGORPLOTCANVAS6, name='igorPlotCanvas6', parent=self, pos=wx.Point(699, 263), size=wx.Size(337, 263), style=0) self.igorPlotCanvas7 = wx.lib.igorplot.IgorPlotCanvas(id=wxID_FRAME1IGORPLOTCANVAS7, name='igorPlotCanvas7', parent=self, pos=wx.Point(0, 526), size=wx.Size(337, 263), style=0) self.igorPlotCanvas8 = wx.lib.igorplot.IgorPlotCanvas(id=wxID_FRAME1IGORPLOTCANVAS8, name='igorPlotCanvas8', parent=self, pos=wx.Point(337, 526), size=wx.Size(362, 263), style=0) self.igorPlotCanvas9 = wx.lib.igorplot.IgorPlotCanvas(id=wxID_FRAME1IGORPLOTCANVAS9, name='igorPlotCanvas9', parent=self, pos=wx.Point(699, 526), size=wx.Size(337, 263), style=0) self.button1 = wx.Button(id=wxID_FRAME1BUTTON1, label='Plot', name='button1', parent=self, pos=wx.Point(480, 789), size=wx.Size(75, 23), style=0) self.button1.Bind(wx.EVT_BUTTON, self.OnButton1Button, id=wxID_FRAME1BUTTON1) self._init_sizers() def __init__(self, parent): self._init_ctrls(parent) def OnButton1Button(self, event): x=y=r_[-5:5:200j] X,Y=meshgrid(x,y) Z=sin(X)+cos(Y) self.igorPlotCanvas1.imshow(Z,extent=(-5,5,-5,5),origin='lower') self.igorPlotCanvas1.axes.set_title('Test imshow with colorbar') self.igorPlotCanvas2.imshowwithcontour(Z,extent=(-5,5,-5,5),origin='lower') self.igorPlotCanvas3.contourf(Z,extent=(-5,5,-5,5),origin='lower') self.igorPlotCanvas4.contour(Z,extent=(-5,5,-5,5),origin='lower') self.igorPlotCanvas5.contour(Z,extent=(-5,5,-5,5),origin='lower',colors=('k' ,)) self.igorPlotCanvas6.imshow(Z,extent=(-5,5,-5,5),origin='lower',colorbar=Fal se) self.igorPlotCanvas7.plot(x,x**2,x,x**3) self.igorPlotCanvas7.axes.grid(True) self.igorPlotCanvas7.axes.legend(('plot 1','plot 2'),loc='best') self.igorPlotCanvas8.tbvisible=False # No toolbar self.igorPlotCanvas8.plot(x,x**2,x,x**3) self.igorPlotCanvas9.tbvisible=False # No toolbar self.igorPlotCanvas9.imshowwithcontour(Z,extent=(-5,5,-5,5),origin='lower',c olorbar=False) ------=_NextPart_001_0007_01C6FB82.DF37BC90 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

 

I wrote Matplotlib Boa constructor = plug-in.

 

I also send some = samples.

Below is file Frame1.py created by = Boa.

 

I added there only a few lines to show how it = works.

 

Pictures illustrate run and design time of the = samples.

If you are interested in the plugin, email me: khrom@inp.kz

 

Best regards,

Sincerely yours,

 

Dr. Igor V. Khromushin

 

File. Frame1.py

 

#Boa:Frame:Frame1

 

import wx

from scipy import *

from pylab import = meshgrid

import wx.lib.igorplot

 

def create(parent):

    return = Frame1(parent)

 

[wxID_FRAME1, wxID_FRAME1BUTTON1, wxID_FRAME1IGORPLOTCANVAS1,  wxID_FRAME1IGORPLOTCANVAS2, wxID_FRAME1IGORPLOTCANVAS3,  wxID_FRAME1IGORPLOTCANVAS4, = wxID_FRAME1IGORPLOTCANVAS5,  wxID_FRAME1IGORPLOTCANVAS6, wxID_FRAME1IGORPLOTCANVAS7,  wxID_FRAME1IGORPLOTCANVAS8, wxID_FRAME1IGORPLOTCANVAS9, ] =3D = [wx.NewId() for _init_ctrls in range(11)]

 

class Frame1(wx.Frame):

    def = _init_coll_flexGridSizer1_Items(self, parent):

        # = generated method, don't edit

 

        parent.AddWindow(self.igorPlotCanvas1, 1, border=3D0, = flag=3Dwx.GROW)

        parent.AddWindow(self.igorPlotCanvas2, 1, border=3D0, = flag=3Dwx.GROW)

        = parent.AddWindow(self.igorPlotCanvas3, 1, border=3D0, flag=3Dwx.GROW)

        parent.AddWindow(self.igorPlotCanvas4, 1, border=3D0, = flag=3Dwx.GROW)

        parent.AddWindow(self.igorPlotCanvas5, 1, border=3D0, = flag=3Dwx.GROW)

        parent.AddWindow(self.igorPlotCanvas6, 1, border=3D0, = flag=3Dwx.GROW)

        parent.AddWindow(self.igorPlotCanvas7, 1, border=3D0, = flag=3Dwx.GROW)

        parent.AddWindow(self.igorPlotCanvas8, 1, border=3D0, = flag=3Dwx.GROW)

        parent.AddWindow(self.igorPlotCanvas9, 1, border=3D0, = flag=3Dwx.GROW)

        = parent.AddSpacer(wx.Size(8, 8), border=3D0, flag=3D0)

        parent.AddWindow(self.button1, 0, border=3D0, = flag=3Dwx.ALIGN_CENTER)

 

    def _init_coll_flexGridSizer1_Growables(self, = parent):

        # = generated method, don't edit

 

        parent.AddGrowableRow(0)

        parent.AddGrowableRow(1)

        parent.AddGrowableRow(2)

        parent.AddGrowableCol(0)

        parent.AddGrowableCol(1)

        parent.AddGrowableCol(2)

 

    def = _init_sizers(self):

        # = generated method, don't edit

        self.flexGridSizer1 =3D wx.FlexGridSizer(cols=3D3, hgap=3D0, rows=3D4, = vgap=3D0)

 

        self._init_coll_flexGridSizer1_Items(self.flexGridSizer1)

        self._init_coll_flexGridSizer1_Growables(self.flexGridSizer1)<= /span>

 

        self.SetSizer(self.flexGridSizer1)

 

    def _init_ctrls(self, = prnt):

        # = generated method, don't edit

        wx.Frame.__init__(self, id=3DwxID_FRAME1, name=3D'', = parent=3Dprnt,

         =      pos=3Dwx.Point(187, 73), size=3Dwx.Size(1044, = 847),

         =      style=3Dwx.DEFAULT_FRAME_STYLE, = title=3D'Frame1')

        self.SetClientSize(wx.Size(1036, 813))

 

        self.igorPlotCanvas1 =3D wx.lib.igorplot.IgorPlotCanvas(id=3DwxID_FRAME1IGORPLOTCANVAS1,

         =      name=3D'igorPlotCanvas1', parent=3Dself, pos=3Dwx.Point(0, = 0),

         =      size=3Dwx.Size(337, 263), style=3D0)

 

        self.igorPlotCanvas2 =3D wx.lib.igorplot.IgorPlotCanvas(id=3DwxID_FRAME1IGORPLOTCANVAS2,

         =      name=3D'igorPlotCanvas2', parent=3Dself, pos=3Dwx.Point(337, = 0),

         =      size=3Dwx.Size(362, 263), style=3D0)

 

        self.igorPlotCanvas3 =3D wx.lib.igorplot.IgorPlotCanvas(id=3DwxID_FRAME1IGORPLOTCANVAS3,

         =      name=3D'igorPlotCanvas3', parent=3Dself, pos=3Dwx.Point(699, = 0),

              size=3Dwx.Size(337,= 263), style=3D0)

 

        self.igorPlotCanvas4 =3D = wx.lib.igorplot.IgorPlotCanvas(id=3DwxID_FRAME1IGORPLOTCANVAS4,

         =      name=3D'igorPlotCanvas4', parent=3Dself, pos=3Dwx.Point(0, = 263),

         =      size=3Dwx.Size(337, 263), style=3D0)

 

        self.igorPlotCanvas5 =3D wx.lib.igorplot.IgorPlotCanvas(id=3DwxID_FRAME1IGORPLOTCANVAS5,

         =      name=3D'igorPlotCanvas5', parent=3Dself, pos=3Dwx.Point(337, = 263),

         =      size=3Dwx.Size(362, 263), style=3D0)

 

        self.igorPlotCanvas6 =3D wx.lib.igorplot.IgorPlotCanvas(id=3DwxID_FRAME1IGORPLOTCANVAS6,

         =      name=3D'igorPlotCanvas6', parent=3Dself, pos=3Dwx.Point(699, = 263),

         =      size=3Dwx.Size(337, 263), style=3D0)

 

        self.igorPlotCanvas7 =3D wx.lib.igorplot.IgorPlotCanvas(id=3DwxID_FRAME1IGORPLOTCANVAS7,

         =      name=3D'igorPlotCanvas7', parent=3Dself, pos=3Dwx.Point(0, = 526),

         =      size=3Dwx.Size(337, 263), style=3D0)

 

        self.igorPlotCanvas8 =3D wx.lib.igorplot.IgorPlotCanvas(id=3DwxID_FRAME1IGORPLOTCANVAS8,

         =      name=3D'igorPlotCanvas8', parent=3Dself, pos=3Dwx.Point(337, = 526),

         =      size=3Dwx.Size(362, 263), style=3D0)

 

        = self.igorPlotCanvas9 =3D = wx.lib.igorplot.IgorPlotCanvas(id=3DwxID_FRAME1IGORPLOTCANVAS9,

         =      name=3D'igorPlotCanvas9', parent=3Dself, pos=3Dwx.Point(699, = 526),

         =      size=3Dwx.Size(337, 263), style=3D0)

 

        = self.button1 =3D wx.Button(id=3DwxID_FRAME1BUTTON1, = label=3D'Plot',

         =      name=3D'button1', parent=3Dself, pos=3Dwx.Point(480, = 789),

         =      size=3Dwx.Size(75, 23), style=3D0)

        self.button1.Bind(wx.EVT_BUTTON, = self.OnButton1Button,

         =      id=3DwxID_FRAME1BUTTON1)

 

        self._init_sizers()

 

    def __init__(self, = parent):

        self._init_ctrls(parent)

 

    def OnButton1Button(self, = event):

        = x=3Dy=3Dr_[-5:5:200j]

        = X,Y=3Dmeshgrid(x,y)

        = Z=3Dsin(X)+cos(Y)

        self.igorPlotCanvas1.imshow(Z,extent=3D(-5,5,-5,5),origin=3D'lower')=

        self.igorPlotCanvas1.axes.set_title('Test imshow with = colorbar')

        self.igorPlotCanvas2.imshowwithcontour(Z,extent=3D(-5,5,-5,5),origin=3D'l= ower')

        self.igorPlotCanvas3.contourf(Z,extent=3D(-5,5,-5,5),origin=3D'lower')

        = self.igorPlotCanvas4.contour(Z,extent=3D(-5,5,-5,5),origin=3D'lower')

        self.igorPlotCanvas5.contour(Z,extent=3D(-5,5,-5,5),origin=3D'lower',colo= rs=3D('k',))

        self.igorPlotCanvas6.imshow(Z,extent=3D(-5,5,-5,5),origin=3D'lower',color= bar=3DFalse)

        self.igorPlotCanvas7.plot(x,x**2,x,x**3)

        self.igorPlotCanvas7.axes.grid(True)

        self.igorPlotCanvas7.axes.legend(('plot 1','plot = 2'),loc=3D'best')

        self.igorPlotCanvas8.tbvisible=3DFalse # No = toolbar

        self.igorPlotCanvas8.plot(x,x**2,x,x**3)

        = self.igorPlotCanvas9.tbvisible=3DFalse # No toolbar

        self.igorPlotCanvas9.imshowwithcontour(Z,extent=3D(-5,5,-5,5),origin=3D'l= ower',colorbar=3DFalse)

 

 

 

------=_NextPart_001_0007_01C6FB82.DF37BC90--