Disable coordinates from the toolbar of a Matplotlib figure

后端 未结 1 737
自闭症患者
自闭症患者 2021-01-06 18:40

I am working in a project using PyQt4 and Matplotlib libraries.I created a matplotlib figure and i added a toolbar.

Is there any way to disable the coordinates that

相关标签:
1条回答
  • 2021-01-06 19:30

    You can reassign the axes format_coord to show anything you like (see, for example this answer or this answer).

    So to disable it altogether, you could set it to an empty string, like this:

    self.axes.format_coord = lambda x, y: ""
    
    0 讨论(0)
提交回复
热议问题