I want to export a figure to a .png and I want my linetypes and gridlines to be scaled correctly, so I've got to use the 'painters' renderer. The axis border ('box') is exported under the plot which means it gets covered by the plotted points. This does not happen with the default renderer.
If I change the axes layer to 'top' then the border comes to the top but so do the gridlines. Is there a way of having only the axes border at the top but not the gridlines?
Thanks for the script Oliver... been using it for a long time now and it fills a big gap in MATLAB.
First of all: many thanks for an amazing tool and all the work you have put in it. It is very much appreciated.
I do have, however, a small question:
I'm trying to export a plot of a uniform distribution between, say, a and b, to the .png format. This obviously means that the function is zero for values lower than a and higher than b. In that case, the function gets overlapped by the axis and is therefore not visible in the exported .png. It is in the MatLab figure. Am I missing something or is there a fix for this? Thanks in advance
10 Dec 2013
Exports figures nicely to a number of vector & bitmap formats.
I am really looking forward to using this code but I keep getting the following error...
Error in print2array (line 140)
print(fig, renderer, res_str, '-dtiff', tmp_nam);
Any help would be apreciated.