You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: export_fig.m
+26-13Lines changed: 26 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -117,9 +117,12 @@
117
117
% -transparent=<color> convert all pixels in the specified color (RGB tripplet
118
118
% or a Matlab predefined color string e.g. 'r'). Usage examples:
119
119
% -transparent=g or -transparent=[1,.5,.2] or -transparent=80,65,235
120
-
% Optional suffix +-<value> adds tolerance to pixels color matching
121
-
% for example: -transparent=g+-30 or -transparent=[1,.5,.2]+-0.1
122
-
% Note: only supported by PNG,GIF,TIF formats.
120
+
% -transparent=<color>+-<value> adds optional tolerance to bgcolor matching.
121
+
% For example: -transparent=g+-30 or -transparent=[1,.5,.2]+-0.1
122
+
% <color> may be omitted, e.g. -transparent+-8 or -transparent=+-.03
123
+
% Default tolerance is 0.1 (or 25 in [0,255] units), to reduce color
124
+
% artifacts around letters and line edges. Note: transparent color
125
+
% customization is only supported by PNG,GIF,TIF formats.
123
126
% -nocrop - option indicating that empty margins should not be cropped.
124
127
% -c[<val>,<val>,<val>,<val>] - option indicating crop amounts. Must be
125
128
% a 4-element vector of numeric values: [top,right,bottom,left]
@@ -406,6 +409,7 @@
406
409
% 02/05/24: (3.45) Display the builtin error message when uifigure cannot be exported (issue #387); fixed contour labels with non-default FontName incorrectly exported as Courier (issue #388)
407
410
% 09/05/24: (3.46) Added -xkcd option (thanks @slayton); added .fig input and output format (previously undocumented & buggy); redirect .tex output to matlab2tikz utility
408
411
% 05/11/24: (3.47) Fixed -transparency in case the default bgcolor is already used in the figure (issue #398); enabled specifying non-default transparency color via -transparency parameter; suppress warnings about setting figure position; multiple -xkcd fixes
412
+
% 06/03/25: (3.48) Fixed -transparency color artifacts, set default bgcolor tolerance of +-0.1 (issue #400)
0 commit comments