How can I change imshow position to another monitor?

2 vues (au cours des 30 derniers jours)
ALD
ALD le 2 Juil 2018
Commenté : ALD le 3 Août 2018
Hi, I am working with to monitors I used the set(0,'defaultFigurePosition',[desired position]) to change the position of the figures. This does work when I do a plot or an image after, but not for the imshow function. What can I do?
  1 commentaire
Rik
Rik le 2 Juil 2018
Doesn't explicitly setting the parent axes work? (or even better: skip imshow in favor of the more low-level image function)

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 2 Juil 2018
imshow() will test to see if the current axes is in the default position that an axes would be placed in if it were the only axes in the figure. If the current axes position is something different, it will delete all of the axes in the figure and create an new axes to draw into, which should get you into a position according to the current figure position. However it would not astonish me at all if the position calculations it used were wrong for the case of figures on alternate monitors.
So... Don't use imshow() for anything other than quick-and-dirty displays. If you care about details of your image size and position, then use image() or imagesc() instead.
  1 commentaire
ALD
ALD le 3 Août 2018
Thank you! I used image instead of imshow

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Environment and Settings dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by