Thread Subject: Export figure interface - drag icon to location

Subject: Export figure interface - drag icon to location

From: Oliver Woodford

Date: 28 Jan, 2009 17:47:01

Message: 1 of 1

Hi folks

I'd like an icon on my figure toolbar that I can just drag to anywhere, e.g. a folder or an open powerpoint presentation, and it will have the effect of exporting the figure to png and then doing whatever the OS would do if the icon for that png were dragged in that way.

This would make it super easy to export figures to powerpoint - just drag the icon to the relevant slide - and make documenting my work a breeze. It's currently a faff to export to png then drag the png to powerpoint.

As I see it, the button would need to do these things:
1. Fool the OS that it is a file, i.e. somehow point to a real exported bitmap of the figure.
2. Delay the OS or any application from reading the file until the figure has had a chance to be exported to it.
3. Delete the original file once the process is over (any recipient application will have to copy the file rather than link to it).

Does anybody think this is even remotely possible, and if so, how? Alternatively, if not, why not (so I don't waste much time)?

I don't mind if the solution is Windows only.

Thanks.
Oliver

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
export figure Oliver Woodford 28 Jan, 2009 12:50:22
drag icon Oliver Woodford 28 Jan, 2009 12:50:22
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com