I'm looking for a bit of finer control over the display of imshow in a Jupyter notebook.
Unlike %matplotlib inline (default) the magic command %matplotlib notebook causes imshow to add a toolbar below the figure, and this thing
above the figure which I'm going to call the titlebar (it's a <div> element called dialog-titlebar).
Within one notebook I want to specifically control titlebar, toolbar and interactive pixel display on an imshow by imshow basis. I can use %matplotlib inline or %matplotlib notebook to turn all these things on or off, but I want something more nuanced (for teaching purposes I want to remove everything that's distracting or not relevant to the discussion).
Questions:
- Is there a way to turn off the figure toolbar programatically? If yes, does that include the pixel value display, or are they separately controllable? Is it possible to remove buttons, for
imshowmany of them are not relevant. - Is there a way to turn off the interactive pixel display? I know I can use
format_coordbut that just stops the callback from displaying stuff, I want to turn off the call-back machinery for performance reasons.
