Problem with ‘Patch’ graphics in 2014b – Splits in two along diagonal
I’m using ‘Patch’ to replace the boxes in box plots to change the colour etc. Code is:
h = findobj(gca,’Tag’,’Box’);
for x=1:length(h)
boxShade=patch(get(h(x),’XData’),get(h(x),’YData’), colours(x,:), ‘linestyle’, ‘none’);
uistack(boxShade,’bottom’);
end
delete(h);
This worked fine until I updated to 2014b where now the Patches appear to split in two along the diagonal, with the median in front of one half and behind the other. Example cut from exported pdf:
<</matlabcentral/answers/uploaded_files/20887/Ave_1.jpg>>
I am using the painters renderer as I’m outputting vector pdfs.
Any ideas? I’ve seen some other talk that it’s a bug from intersecting lines in a patch but there are no intersections here I believe as it’s just a simple rectangle?
Any help greatly appreciated!
DavidI’m using ‘Patch’ to replace the boxes in box plots to change the colour etc. Code is:
h = findobj(gca,’Tag’,’Box’);
for x=1:length(h)
boxShade=patch(get(h(x),’XData’),get(h(x),’YData’), colours(x,:), ‘linestyle’, ‘none’);
uistack(boxShade,’bottom’);
end
delete(h);
This worked fine until I updated to 2014b where now the Patches appear to split in two along the diagonal, with the median in front of one half and behind the other. Example cut from exported pdf:
<</matlabcentral/answers/uploaded_files/20887/Ave_1.jpg>>
I am using the painters renderer as I’m outputting vector pdfs.
Any ideas? I’ve seen some other talk that it’s a bug from intersecting lines in a patch but there are no intersections here I believe as it’s just a simple rectangle?
Any help greatly appreciated!
David I’m using ‘Patch’ to replace the boxes in box plots to change the colour etc. Code is:
h = findobj(gca,’Tag’,’Box’);
for x=1:length(h)
boxShade=patch(get(h(x),’XData’),get(h(x),’YData’), colours(x,:), ‘linestyle’, ‘none’);
uistack(boxShade,’bottom’);
end
delete(h);
This worked fine until I updated to 2014b where now the Patches appear to split in two along the diagonal, with the median in front of one half and behind the other. Example cut from exported pdf:
<</matlabcentral/answers/uploaded_files/20887/Ave_1.jpg>>
I am using the painters renderer as I’m outputting vector pdfs.
Any ideas? I’ve seen some other talk that it’s a bug from intersecting lines in a patch but there are no intersections here I believe as it’s just a simple rectangle?
Any help greatly appreciated!
David patch, r2014bgraphics MATLAB Answers — New Questions