I wander if it is possible to show a full screen image using matplotlib?
Only image without axis axis, window frame and so on....
···
------
from numpy import random
import matplotlib.pyplot as plt
import matplotlib as mpl
mpl.rcParams['toolbar'] = 'None'
plt.ion()
fig = figure()
data = random.random((600,800))
img = plt.imshow(data, interpolation='nearest')
img.set_cmap('hot')
plt.axis('off')
plt.tight_layout()
plt.subplots_adjust(left=0, right=1, top=1, bottom=0)
figManager = plt.get_current_fig_manager()
figManager.window.showMaximized()
--------
This part kind of works.
There are only two problems.
1 I have to hit f button (full screen) to remove window title,
2 There still a gray part on the bottom, where mouse XY coordinates are
usually shown.
Any recommendations how to get rid of those?
Thank you
Petro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20160708/3bb27e61/attachment.html>
I succeeded in removing the bottom field where cursor coordinates are
displayed by using:
# fig = plt.gcf()
fig.canvas.window().statusBar().setVisible(False)
Hopefully it was what you were looking for.
Adrien
···
On 12/07/2016 15:35, Petro wrote:
Hi.
Here is an update.
To remove window title and go into full screen mode, one can use:
On 07/12/2016 06:33 PM, vincent.adrien at gmail.com [via matplotlib] wrote:
Hi Petro,
I succeeded in removing the bottom field where cursor coordinates are
displayed by using:
# fig = plt.gcf()
fig.canvas.window().statusBar().setVisible(False)
Hopefully it was what you were looking for.
Adrien
On 12/07/2016 15:35, Petro wrote:
> Hi.
> Here is an update.
> To remove window title and go into full screen mode, one can use:
>
> figManager = plt.get_current_fig_manager()
> figManager.full_screen_toggle()
>
> But I still cannot figure out how to remove a field where cursor
coordinates
> are shown.
>
> Any suggestions?
> Thanks
> Petro
>
>
>
> --
> View this message in context: http://matplotlib.1069221.n5.nabble.com/Image-full-screen-tp47276p47290.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>