Effacer les filtres
Effacer les filtres

Keyboard shortcut for a figure's Edit->Copy figure option

18 vues (au cours des 30 derniers jours)
mahaju
mahaju le 14 Sep 2023
In a new figure, there is the Edit->Copy figure option which copies figure to clipboard, I am assuming in the format specified in the dialog box that opens up when going to Edit->copy options...
The default is "Preserve information (metafiule if possible)"
  1. Is there a keyboard shortcut for "Edit->Copy Figure" at all? Can I assign one?
  2. I mainly want to copy figure using the default setting, but sometimes I would like to copy figure as bitmap. Is thera a way to switch between the two settings from keyboard without having to go to "Edit->copy options..." everytime?
An ideal solution for me would look like this:
ctrl+C => copy figure (using default option)
clrt+shift+C => copy figure as bitmap
If there is a workaround I can do from matlab command line that is also acceptable, but I must be able to paste it using just ctrl+V without having to do anything more complicated.
I am using MATLAB Version: 9.11.0.1873467 (R2021b) Update 3

Réponses (1)

T.Nikhil kumar
T.Nikhil kumar le 15 Mai 2024
Hello Mahaju,
I get that you are looking for keyboard shortcuts for "Edit->Copy Figure" and "Edit->copy options..." options to copy a figure.
For "Edit->Copy Figure", you can use a combination of keys as a shortcut instead of opening the ‘Edit’ menu to directly copy the figure.
Alt+E, F, Enter – you can use these keys in this order to copy the figure via keyboard.
I do not think there are some keyboard shortcuts to switch the copy formats. But you can use a combination of keys to open the “copy options” preferences from the figure and then select the clipboard format interactively. This could decrease the complexity for this workflow.
The combination is Alt+E, O in that order to open the “copy options” preferences panel. You can then select “bitmap” or “Preserve Information” formats.
Hope this helps you!

Catégories

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

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by