JimHokanson / matlab_standard_library

Standard Library for my Matlab Projects
MIT License
7 stars 10 forks source link

Screenshot to powerpoint maximizer and grabber #24

Open JimHokanson opened 9 years ago

JimHokanson commented 9 years ago

Often times for quick analysis I'm just looking to take a figure and put it into powerpoint. This function should try and resize the figure so that it is as large as possible while maximizing the content shown when scaled correctly (i.e. maximize given a particular width/height ratio).

I'm imagining this might involve some fairly basic image processing and involve multiple resize calls with some basic optimizations, rather than trying to know exactly how a figure resize will affect layout.

JimHokanson commented 8 years ago

I'm thinking the function should be: sl.plot.figToClipboardForPPT

JimHokanson commented 4 years ago

sl.plot.uimenu.addScreenshotOption will grab a screenshot. We need to add on support for expanding the axes to the size of the figure since the screenshot grabs the figure, not some merger of all axes (not sure if this is possible).

sl.plot.subplotter would need to be updated to support expanding borders to [0,1] or maybe [0.01 0.99]

Then the screenshot should be of an appropriate size, which may vary depending upon usage. This is where having a menu that resized the figure to set sizes would be helpful. See issue #56