从调用图中排除受保护和私有方法Doxygen Eclox

2024-05-28 20:42:24 发布

您现在位置:Python中文网/ 问答频道 /正文

首先,我将描述我的配置。我正在使用Eclipse和插件Eclox。代码的语言是Python(3.5)

我的目标是使用Doxygen生成项目文档。为了将doxygen与Python结合使用,我安装了doxypy扩展

我得到了正确的文档。问题是我在doxygen的文件中禁用了private和protected,但在调用的图形中仍然显示private和protected函数。如何在dot制作的图表中禁用私有和受保护的函数

编辑2:Doxygen版本:1.8.11

编辑1:我展示了一些受保护和私有方法的示例:

私有方法

    def __plotData(self,x_axis,data):
    """
    @brief Plot the data
    @param[in] x_axis : X axis
    @param[in] data: Y axis
    """
    plt.figure()
    plt.stem(x_axis / 1e6, data, use_line_collection = True)
    plt.grid()
    plt.draw()
    plt.close()
    plt.pause(0.01)
  • 现在是受保护的方法:

    def _zplane(p,filename=None):
    
    """
    @brief Plot the poles of a polinomy
    
    @param[in] p : Poles of the polinomy
    
    @param[in] filename : Output File.
    
    """
    
    #Plot the poles given the roots
    # get a figure/plot
    
    ax = plt.subplot(111)
    # create the unit circle
    
    uc = patches.Circle((0,0), radius=1, fill=False,
    
                        color='black', ls='dashed')
    
    ax.add_patch(uc)
    
    # Get the poles and zeros
    # Plot the poles and set marker properties
    
    t2 = plt.plot(p.real, p.imag, 'rx', ms=10)
    
    plt.setp( t2, markersize=12.0, markeredgewidth=3.0,
    
              markeredgecolor='r', markerfacecolor='r')
    
    ax.spines['left'].set_position('center')
    
    ax.spines['bottom'].set_position('center')
    
    ax.spines['right'].set_visible(False)
    
    ax.spines['top'].set_visible(False)
    
    # set the ticks
    
    r = 1.5; plt.axis('scaled'); plt.axis([-r, r, -r, r])
    
    ticks = [-1, -.5, .5, 1]; plt.xticks(ticks); plt.yticks(ticks)
    plt.show()
    

谢谢


Tags: the方法infalsedataparamplotplt

热门问题