• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python proxies.new_proxy函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中mantidplotpy.proxies.new_proxy函数的典型用法代码示例。如果您正苦于以下问题:Python new_proxy函数的具体用法?Python new_proxy怎么用?Python new_proxy使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了new_proxy函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: newTiledWindow

def newTiledWindow(name=None):
    """Create an empty tiled window.
    
    Args:
        name: The name to give to the window (if None, a unique name will be generated).
        
    Returns:
        A handle to the created window.
    """
    if name is None:
        return new_proxy(proxies.TiledWindowProxy, _qti.app.newTiledWindow)
    else:
        return new_proxy(proxies.TiledWindowProxy, _qti.app.newTiledWindow, name)
开发者ID:jkrueger1,项目名称:mantid,代码行数:13,代码来源:mantidplot.py


示例2: newNote

def newNote(name=None):
    """Create a note.
    
    Args:
        name: The name to give to the note (if None, a unique name will be generated).
        
    Returns:
        A handle to the created note.
    """
    if name is None:
        return new_proxy(proxies.MDIWindow, _qti.app.newNote)
    else:
        return new_proxy(proxies.MDIWindow, _qti.app.newNote, name)
开发者ID:trnielsen,项目名称:mantid,代码行数:13,代码来源:mantidplot.py


示例3: newTable

def newTable(name=None,rows=30,columns=2):
    """Create a table.
    
    Args:
        name: The name to give to the table (if None, a unique name will be generated).
        row: The number of rows in the table (default: 30).
        columns: The number of columns in the table (default: 2).
        
    Returns:
        A handle to the created table.
    """
    if name is None:
        return new_proxy(proxies.MDIWindow, _qti.app.newTable)
    else:
        return new_proxy(proxies.MDIWindow, _qti.app.newTable, name,rows,columns)
开发者ID:trnielsen,项目名称:mantid,代码行数:15,代码来源:mantidplot.py


示例4: newMatrix

def newMatrix(name=None,rows=32,columns=32):
    """Create a matrix (N.B. This is not the same as a 'MantidMatrix').
    
    Args:
        name: The name to give to the matrix (if None, a unique name will be generated).
        row: The number of rows in the matrix (default: 32).
        columns: The number of columns in the matrix (default: 32).
        
    Returns:
        A handle to the created matrix.
    """
    if name is None:
        return new_proxy(proxies.MDIWindow, _qti.app.newMatrix)
    else:
        return new_proxy(proxies.MDIWindow, _qti.app.newMatrix,name,rows,columns)
开发者ID:trnielsen,项目名称:mantid,代码行数:15,代码来源:mantidplot.py


示例5: newGraph

def newGraph(name=None,layers=1,rows=1,columns=1):
    """Create a graph window.
    
    Args:
        name: The name to give to the graph (if None, a unique name will be generated).
        layers: The number of plots (a.k.a. layers) to put in the graph window (default: 1).
        rows: The number of rows of to put in the graph window (default: 1).
        columns: The number of columns of to put in the graph window (default: 1).
        
    Returns:
        A handle to the created graph widget.
    """
    if name is None:
        return new_proxy(proxies.Graph, _qti.app.newGraph)
    else:
        return new_proxy(proxies.Graph, _qti.app.newGraph,name,layers,rows,columns)
开发者ID:trnielsen,项目名称:mantid,代码行数:16,代码来源:mantidplot.py


示例6: _callPlotBin

 def _callPlotBin(workspace, indexes, errors, graph_type):
     if isinstance(workspace, str):
         wkspname = workspace
     else:
         wkspname = workspace.getName()
     if type(indexes) == int:
         indexes = [indexes]
     return new_proxy(proxies.Graph,_qti.app.mantidUI.plotBin,wkspname, indexes, errors,graph_type)
开发者ID:trnielsen,项目名称:mantid,代码行数:8,代码来源:mantidplot.py


示例7: note

def note(name):
    """Get a handle on a note.
    
    Args:
        name: The name of the note.
        
    Returns:
        A handle to the note.
    """
    return new_proxy(proxies.MDIWindow, _qti.app.note, name)
开发者ID:trnielsen,项目名称:mantid,代码行数:10,代码来源:mantidplot.py


示例8: graph

def graph(name):
    """Get a handle on a graph widget.
    
    Args:
        name: The name of the graph window.
        
    Returns:
        A handle to the graph.
    """
    return new_proxy(proxies.Graph, _qti.app.graph, name)
开发者ID:trnielsen,项目名称:mantid,代码行数:10,代码来源:mantidplot.py


示例9: matrix

def matrix(name):
    """Get a handle on a matrix.
    
    Args:
        name: The name of the matrix.
        
    Returns:
        A handle to the matrix.
    """
    return new_proxy(proxies.MDIWindow, _qti.app.matrix, name)
开发者ID:trnielsen,项目名称:mantid,代码行数:10,代码来源:mantidplot.py


示例10: importImage

def importImage(filename):
    """Load an image file into a matrix.
    
    Args:
        filename: The name of the file to load.
        
    Returns:
        A handle to the matrix containing the image data.
    """
    return new_proxy(proxies.MDIWindow, _qti.app.importImage, filename)
开发者ID:trnielsen,项目名称:mantid,代码行数:10,代码来源:mantidplot.py


示例11: table

def table(name):
    """Get a handle on a table.
    
    Args:
        name: The name of the table.
        
    Returns:
        A handle to the table.
    """
    return new_proxy(proxies.MDIWindow, _qti.app.table, name)
开发者ID:trnielsen,项目名称:mantid,代码行数:10,代码来源:mantidplot.py


示例12: waterfallPlot

def waterfallPlot(table, columns):
    """Create a waterfall plot from data in a table.
    
    Args:
        table: A reference to the table containing the data to plot
        columns: A tuple of the column numbers whose data to plot
        
    Returns:
        A handle to the created plot (Layer).
    """
    return new_proxy(proxies.Graph, _qti.app.waterfallPlot, table._getHeldObject(),columns)
开发者ID:trnielsen,项目名称:mantid,代码行数:11,代码来源:mantidplot.py


示例13: getInstrumentView

def getInstrumentView(name, tab=-1):
    """Create an instrument view window based on the given workspace.
    
    Args:
        name: The name of the workspace.
        tab: The index of the tab to display initially.
        
    Returns:
        A handle to the created instrument view widget.
    """
    return new_proxy(proxies.MDIWindow, _qti.app.mantidUI.getInstrumentView, name,tab)
开发者ID:trnielsen,项目名称:mantid,代码行数:11,代码来源:mantidplot.py


示例14: importTableWorkspace

def importTableWorkspace(name, visible=False):
    """Create a MantidPlot table from a table workspace.
    
    Args:
        name: The name of the workspace.
        visible: Whether to initially show the created matrix (default: no).
        
    Returns:
        A handle to the newly created table.
    """
    return new_proxy(proxies.MDIWindow,_qti.app.mantidUI.importTableWorkspace, name,False,visible)
开发者ID:trnielsen,项目名称:mantid,代码行数:11,代码来源:mantidplot.py


示例15: addFolder

def addFolder(name,parentFolder=None):
    """Create a new folder.
    
    Args:
        name: The name of the folder to create.
        parentFolder: If given, make the new folder a subfolder of this one.
        
    Returns:
        A handle to the newly created folder.
    """
    if parentFolder is not None:
        parentFolder = parentFolder._getHeldObject()
    return new_proxy(proxies.Folder, _qti.app.addFolder, name,parentFolder)
开发者ID:trnielsen,项目名称:mantid,代码行数:13,代码来源:mantidplot.py


示例16: plot

def plot(source, *args, **kwargs):
    """Create a new plot given a workspace, table or matrix.
    
    Args:
        source: what to plot; if it is a Workspace, will
                call plotSpectrum()
    
    Returns:
        A handle to the created Graph widget.
    """
    if hasattr(source, '_getHeldObject') and isinstance(source._getHeldObject(), QtCore.QObject):
        return new_proxy(proxies.Graph,_qti.app.plot, source._getHeldObject(), *args, **kwargs)
    else:
        return plotSpectrum(source, *args, **kwargs)
开发者ID:trnielsen,项目名称:mantid,代码行数:14,代码来源:mantidplot.py


示例17: getInstrumentView

def getInstrumentView(name, tab=InstrumentWindow.RENDER):
    """Create an instrument view window based on the given workspace.
    
    Args:
        name: The name of the workspace.
        tab: The index of the tab to display initially, (default=InstrumentWindow.RENDER)
        
    Returns:
        A handle to the created instrument view widget.
    """
    ads = _get_analysis_data_service()
    if name not in ads:
        raise ValueError("Workspace %s does not exist" % name)
    return new_proxy(proxies.InstrumentWindow, _qti.app.mantidUI.getInstrumentView, name, tab)
开发者ID:jkrueger1,项目名称:mantid,代码行数:14,代码来源:mantidplot.py


示例18: importMatrixWorkspace

def importMatrixWorkspace(name, firstIndex=None, lastIndex=None, showDialog=False, visible=False):
    """Create a MantidMatrix object from the named workspace.
    
    Args:
        name: The name of the workspace.
        firstIndex: The workspace index to start at (default: the first one).
        lastIndex: The workspace index to stop at (default: the last one).
        showDialog: Whether to bring up a dialog to allow options to be entered manually (default: no).
        visible: Whether to initially show the created matrix (default: no).
        
    Returns:
        A handle to the created matrix.
    """
    # Turn the optional arguments into the magic numbers that the C++ expects
    if firstIndex is None:
        firstIndex = -1
    if lastIndex is None:
        lastIndex = -1
    return new_proxy(proxies.MantidMatrix, _qti.app.mantidUI.importMatrixWorkspace, name,
                             firstIndex,lastIndex,showDialog,visible)
开发者ID:trnielsen,项目名称:mantid,代码行数:20,代码来源:mantidplot.py


示例19: clone

def clone(window):
    return new_proxy(proxies.MDIWindow, _qti.app.clone, window._getHeldObject())
开发者ID:trnielsen,项目名称:mantid,代码行数:2,代码来源:mantidplot.py


示例20: getMantidMatrix

def getMantidMatrix(name):
    """Get a handle to the named Mantid matrix"""
    return new_proxy(proxies.MantidMatrix, _qti.app.mantidUI.getMantidMatrix, name)
开发者ID:trnielsen,项目名称:mantid,代码行数:3,代码来源:mantidplot.py



注:本文中的mantidplotpy.proxies.new_proxy函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python functions.mainWindow函数代码示例发布时间:2022-05-27
下一篇:
Python simpleapi.SimulatedDensityOfStates类代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap