When I attempt to run any of the demos, a blank ImageJ 3D Viewer window appears. Clicking any of the dropdown menus on the ImageJ 3D Viewer leaves "ghosts".
When I close the ImageJ 3D Viewer window, the following error occurs:
// Error message begin
at javax.media.j3d.NativePipeline.createNewContext(Native Method)
Exception occurred in RenderingErrorListener:
// Error message ends.
I am using MATLAB 2012a. I have already run the InstallJava3D.m file and got the following output:
Testing if Java3D is already installed...
Java3D is already installed.
Installed version is 1.5.
This is good enough, you have nothing to do.
Was having trouble saving figures in high resolution, since there seem to be no inbuilt functions that allow this. This user-created function was great. I have an enquiry on the '-native' option of export_fig. Seems like one must specify the desired high resolution himself.
arnold: The goal of export_fig is to export what is on screen. By all means write a script that makes your figure the right size, have the correct line widths, fonts, etc., then calls export_fig with the correct resolution. Or use one of the several submissions that already do this.
10 May 2013
Exports figures nicely to a number of vector & bitmap formats.
I've got another proposition: rescale figure
To make 'export_fig' even more useful for publications it'd be awesome if you added the possibility to rescale the figure to a certain size.
export_fig 'test.png' -w5 -h4 -r300
This would set the width to 5" and the height to 4" and then export at 300dpi.
For us non-americans it'd be great if you added size in metric units [cm] as well.
export_fig 'test.png' -wm5 -hm4 -r300
would then set the width to 5cm etc.