6

I am drawing a graph in python using Matplotlib library. I want to remove the whole toolbar from the graph. which look like this.

Toolbar menu

i have been trying alot but not able to figure out the way to do it. kindly direct me to the File/code and suggest me the modifications to be carried out.

4
  • I don't think you can. You might have to embed it in your own custom user interface. Commented May 8, 2013 at 4:00
  • @WesleyBaugh It can be done using rcParams. Making your own interface is a solution, but it is way overkill. Commented May 8, 2013 at 4:11
  • @tcaswell Cool, thanks. Tried some to search for it but the documentation for show() didn't give any hints on where to look (rcParams). Good to know! Commented May 8, 2013 at 4:47
  • The place to look to see the logic is in the FigureManager sub-class in backend_*.py where the gui window is built. show just tells the figures (what ever they are) to draw and is backend agnostic, where as setting up the toolbar is very backend dependent. Commented May 8, 2013 at 13:47

1 Answer 1

8

You can disable the tool bar via rcParams. Either add (or uncomment) the line

toolbar: None

in your matplotlibrc file or dynamically,

rcParams['toolbar'] = 'None'
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.