1

Is there any possible way to disable the figure maximization button in the matplotlib figure window? I'm on Ubuntu 13.10.

1
  • probably, but I suspect it would involve writing your own embedding. Commented Jan 27, 2014 at 22:14

1 Answer 1

1

Well, if you are using PyQt as back-end you can do this:

import matplotlib.pyplot as plt from PyQt4.QtCore import Qt fig = plt.figure() ax = fig.add_subplot(111) ax.plot(range(10),range(10)) #get the parent window of the canvas and set the flags fig.canvas.parent().setWindowFlags( Qt.WindowSystemMenuHint| Qt.WindowMinimizeButtonHint| Qt.WindowCloseButtonHint) plt.show() 

With this approach you can adapt the solution to your actual back-end: just get the canvas, then the window parent (back-end dependent) and configure the window (if it is possible?)

Sign up to request clarification or add additional context in comments.

Comments