File Exchange

image thumbnail

fixfig

version 2.2.0.0 (2.94 KB) by M. A. Hopcroft
FIXFIG modifies a Matlab figure so it can be used in on-screen presentations such as Powerpoint.

6 Downloads

Updated 07 Aug 2020

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

The default settings for Matlab figures (plots) use small fonts and thin lines. This is fine for quickly evaluating data, but these figures are unreadable when used in an on-screen presentation such as a Powerpoint. FIXFIG takes an existing Matlab figure and increases the font sizes, thickens the lines, increases marker sizes, sets the background to white, etc., so that the figure can be used in an on-screen presentation.

Cite As

M. A. Hopcroft (2020). fixfig (https://www.mathworks.com/matlabcentral/fileexchange/24095-fixfig), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (10)

Felipe G. Nievinski

near line 101, where it is:
ax = findobj(fignum,'Type','axes');
please add:
if isempty(ax), ax = axes(); end
this is necessary in R2018 as a new figure no longer starts with an axis.

Really usefull!
Since I use errorbar & line, I had to change line #117:
dataline = findobj(i,{'Type','errorbar','-or','Type','line'});

Felipe

I've had to add the following at line #151:

% z axis label
set(get(i,'ZLabel'),'FontSize',fontsizefact*9,'FontWeight','bold','FontName',myfont)

Michael Völker

Arthur

very usefull!

Aurelien Queffurust

It would be great to add a reset option to retrieve the original font sizes , marker sizes ...

M. A. Hopcroft

I agree the legend box should be opaque; that has been fixed. Thanks for the feedback.

Sumedh Joshi

this is a great submission and I use it constantly.

one complaint. When I have a legend and I apply fixfig, it makes the legend box transparent. If there gridlines on my plot, then you see these through the legend box which interferes with the text in the legend box. I have to manually reset the color to white each time.

other than that, this is great.

M. A. Hopcroft

Good point about the typo at line 96 ('mkr'). This is fixed in the latest version. Thanks for the feedback.

someone

Works as advertised. A useful submission.

However, I believe line 96 should be changed from:
if ~strcmp('mkr','none')
to
if ~strcmp(mkr,'none')

Updates

2.2.0.0

v2.2: addressed some user feedback: error bars, empty figures.

2.1.0.0

v2.1 include z-axis label update

2.0.0.0

Update to be compatible with Matlab R2014b and later (new graphics objects). Still compatible with older versions.

1.4.0.0

typo fix

1.3.0.0

v1.1: make legend box opaque

1.2.0.0

ver 1.01: Fix typo 'mkr'

1.1.0.0

re-do .zip file

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: SpectralTrainFig