當前位置: 首頁>>代碼示例>>Python>>正文


Python Axes.export方法代碼示例

本文整理匯總了Python中axes.Axes.export方法的典型用法代碼示例。如果您正苦於以下問題:Python Axes.export方法的具體用法?Python Axes.export怎麽用?Python Axes.export使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在axes.Axes的用法示例。


在下文中一共展示了Axes.export方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: LatticeDesigner

# 需要導入模塊: from axes import Axes [as 別名]
# 或者: from axes.Axes import export [as 別名]

#.........這裏部分代碼省略.........
        self.figuresCirclePane.Bind(wx.EVT_COLLAPSIBLEPANE_CHANGED, self.circleToggled)

        self.figuresCircleSizer = wx.GridSizer(2, 2, 10, 10)
        self.figuresCirclePaneWin = self.figuresCirclePane.GetPane()

        self.figuresCircleRadiusLabel = wx.StaticText(self.figuresCirclePaneWin, label="Radius")
        self.figuresCircleRadiusCtrl = wx.SpinCtrl(self.figuresCirclePaneWin, value="1", initial=1, min=1, size=(50,20))

        self.figuresCircleRadiusCtrl.Bind(wx.EVT_SPINCTRL, self.updateCircleWidth)

        self.figuresCircleWidthLabel = wx.StaticText(self.figuresCirclePaneWin, label="Width (nm)")
        self.figuresCircleWidthValue = wx.StaticText(self.figuresCirclePaneWin, label="--")

        self.figuresCircleSizer.AddMany([
                (self.figuresCircleRadiusLabel, 0, wx.EXPAND),
                (self.figuresCircleRadiusCtrl, 0, wx.EXPAND),
                (self.figuresCircleWidthLabel, 0, wx.EXPAND),
                (self.figuresCircleWidthValue, 0, wx.EXPAND)
            ])

        self.figuresCirclePaneWin.SetSizer(self.figuresCircleSizer)

        self.figuresBoxGrid.AddMany([
            (self.figuresQuadPane, 0, wx.EXPAND),
            (self.figuresCirclePane, 0, wx.EXPAND)
            ])


        self.figuresBoxSizer.Add(self.figuresBoxGrid)

        self.clearButton = wx.Button(self.designSidebarPanel, label="Clear grid")
        self.clearButton.Bind(wx.EVT_BUTTON, self.clearGrid)

        self.exportFileButton = wx.Button(self.designSidebarPanel, label="Export Data")
        self.exportFileButton.Bind(wx.EVT_BUTTON, self.checkParametersTrigger)

        self.exportImagesButtonD = wx.Button(self.designSidebarPanel, label="Export Images")
        self.exportImagesButtonD.Bind(wx.EVT_BUTTON, self.exportImagesD)
        self.exportImagesButtonD.Show(False)

        self.previewButton = wx.Button(self.designSidebarPanel, label="Show/hide preview")
        self.previewButton.Bind(wx.EVT_BUTTON, self.togglePreview)

        self.axesBoxD = wx.StaticBox(self.designSidebarPanel, label='Axes')
        self.axesBoxSizerD = wx.StaticBoxSizer(self.axesBoxD, wx.VERTICAL)
        self.axesD = Axes(self.designSidebarPanel)
        self.axesBoxSizerD.Add(self.axesD)

        self.designSidebar.Add(self.sizeBoxSizer, 0, wx.EXPAND | wx.ALL, 5)
        self.designSidebar.Add(self.configBoxSizer, 0, wx.EXPAND | wx.ALL, 5)
        self.designSidebar.Add(self.figuresBoxSizer, 0, wx.EXPAND | wx.ALL, 5)
        self.designSidebar.Add(self.clearButton, 0, wx.EXPAND | wx.ALL, 5)
        self.designSidebar.Add(self.exportFileButton, 0, wx.EXPAND | wx.ALL, 5)
        self.designSidebar.Add(self.exportImagesButtonD, 0, wx.EXPAND | wx.ALL, 5)
        self.designSidebar.Add(self.previewButton, 0, wx.EXPAND | wx.ALL, 5)
        self.designSidebar.Add(self.axesBoxSizerD, 0, wx.EXPAND | wx.ALL, 5)

        self.designSidebarPanel.SetSizer(self.designSidebar)

        wx.CallAfter(self.axesBoxD.Show, False)
        wx.CallAfter(self.axesD.Show, False)

        self.visualizationSidebarPanel = scrolled.ScrolledPanel(tabs)
        visualizationSidebar = wx.BoxSizer(wx.VERTICAL)

        inputDirBtn = wx.Button(self.visualizationSidebarPanel, -1, "Select Atoms file")
開發者ID:jpverdejo,項目名稱:memoria,代碼行數:70,代碼來源:LatticeDesigner.py


注:本文中的axes.Axes.export方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。