|
413 | 413 | % 31/03/25: (3.49) Fixed(?) -transparency in PDF/EPS files (issue #401); override Matlab's default Title & Creator meta-data (issue #402) |
414 | 414 | % 31/03/25: (3.50) Revert bad fix for issue #401 |
415 | 415 | % 08/07/25: (3.51) Fixed: figure with non-default colormap exported with default colormap in some cases (issue #389) |
416 | | -% 07/09/25: (3.52) Fixed: sgtitle was cropped in transparent PDF/EPS output (thanks @JohanWesto) |
417 | 416 | %} |
418 | 417 |
|
419 | 418 | if nargout |
|
451 | 450 | [fig, options] = parse_args(nargout, fig, argNames, varargin{:}); |
452 | 451 |
|
453 | 452 | % Check for newer version and exportgraphics/copygraphics compatibility |
454 | | - currentVersion = 3.52; |
| 453 | + currentVersion = 3.51; |
455 | 454 | if options.version % export_fig's version requested - return it and bail out |
456 | 455 | imageData = currentVersion; |
457 | 456 | return |
|
1142 | 1141 | try hCBs = getappdata(hAxes,'LayoutPeers'); catch, hCBs=[]; end %issue #383 |
1143 | 1142 | hCBs = unique([findall(fig,'tag','Colorbar'), hCBs]); |
1144 | 1143 | hCbTxt = fixBlackText(hCBs,'Title'); % issue #382 |
1145 | | - |
1146 | | - % Fix subplot grid title (sgtitle) issue #406 |
1147 | | - hSpTxt = findobj(fig,'Type','subplottext'); |
1148 | | - hSpTxt = fixBlackText(hSpTxt,''); |
1149 | 1144 | end |
1150 | 1145 | % Generate an eps |
1151 | 1146 | print2eps(tmp_nam, fig, options, printArgs{:}); %winopen(tmp_nam) |
|
1163 | 1158 | set(hZrs, 'Color', [0,0,0]); |
1164 | 1159 | set(hTitle,'Color',[0,0,0]); |
1165 | 1160 | set(hCbTxt,'Color',[0,0,0]); |
1166 | | - set(hSpTxt,'Color',[0,0,0]); |
1167 | 1161 | end |
1168 | 1162 | %} |
1169 | 1163 | % Restore the figure's previous background color (if modified) |
@@ -2602,11 +2596,7 @@ function change_rgb_to_cmyk(fname) % convert RGB => CMYK within an EPS file |
2602 | 2596 |
|
2603 | 2597 | function hText = fixBlackText(hObject, propName) |
2604 | 2598 | try |
2605 | | - if isempty(propName) %issue #406 |
2606 | | - hText = hObject; |
2607 | | - else |
2608 | | - hText = get(hObject, propName); |
2609 | | - end |
| 2599 | + hText = get(hObject, propName); |
2610 | 2600 | try hText = [hText{:}]; catch, end %issue #383 |
2611 | 2601 | for idx = numel(hText) : -1 : 1 |
2612 | 2602 | hThisText = hText(idx); |
|
0 commit comments