How to generate Publication quality( for conferences/Journals) figures in MATLAB?
Afficher commentaires plus anciens
Hello everyone. This is a general query. How can I generate 'high-res' figures in MATLAB that can be used for publication (Conferences/Journals)?
I previously found this package export_fig, but I am confused how to use this even after reading their README section. The instructions seemed vague to me.
If you have any idea how to use this package, please kindly answer with an example. Or if you know any other techniques to generate high-res figures in MATLAB, kindly share.
Thank you!
4 commentaires
Well, you start by downloading from the GitHub repository and installing the package. Then try something...I've not got it installed and never used it, but I'd presume when you do there's also a help section in the m-file.
You may want to also get <Export Figure Widget> that is an added figure button that will bring up a dialog input for options to the export_fig utility function. That may be the additional prompt you're looking for for simpler user interface.
"Nothing ventured, nothing gained..."
Guillaume
le 21 Sep 2019
export_fig is indeed what most people use. I'm not sure what's vague about the instruction or complicated about
export_fig export_filename;
Well, if it did work it would have overwritten your m-file. The filename expected is the output file you want created from the figure for the output of export_fig
As far as the error, try
clearvars
wave
export_fig 'wave.png'
which should create a PNG format output file.
If you still get an internal error of the above ilk it would appear something went wrong in the download/installation process that not all components got decompressed.
I infer export_fig creates the file output type from the file extension...it may have been the (unexpected I'm sure) .m extension that triggered the error. But, as noted, I don't have it installed here so I can't readily test.
ADDENDUM
Another thought what may have gone wrong. Did you run the function file wave to create the figure on the screen before calling export_fig? Not having done definitely wouldn't work; it (export_fig, that is) doesn't call the m-file to create the figure, your job is to have already done that part and have the figure on the screen. It just, as the name says, exports that figure to an external file in a specific format.
Réponse acceptée
Plus de réponses (1)
Image Analyst
le 24 Sep 2019
1 vote
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!