Generate high quality plots with MATLAB

Поділитися
Вставка
  • Опубліковано 28 сер 2015
  • Plots in presentations and technical documents can either detract or enhance the delivery. This tutorial demonstrates how to make high quality plots in MATLAB and how to export the figures in PNG (for MS PowerPoint) or EPS format (for LaTeX or MS Word).
  • Наука та технологія

КОМЕНТАРІ • 30

  • @salimamansoura7838
    @salimamansoura7838 3 роки тому +3

    May God reward you for all your efforts and all the valuable information that you provide us smoothly .

  • @jojomanesh
    @jojomanesh 5 років тому +1

    I find that this brief tutorial comes in pretty handy, especially when one is wondering what format to pick.

  • @gabiang
    @gabiang 8 років тому +21

    A waste of time to watch if you want to format figures for publications. Just a basic plot tutorial

    • @apm
      @apm  8 років тому +9

      +Gabriel Gabian the most important thing to remember about publication quality graphics is that PNG and JPG are generally not acceptable. EPS is generally the best format to use, especially if you are using LaTeX. For MS Word, the EPS files will look bad but will be high quality once the document is converted to PDF. Any suggestions or packages that you would use?

  • @Bianchi77
    @Bianchi77 3 роки тому +1

    Cool info ,thanks :)

  • @HazimEng
    @HazimEng 4 роки тому +1

    Thank you Good job

  • @hariharroy
    @hariharroy 5 років тому +1

    I like this video. Have you any You tube tutorial on MATLAB...?

  • @juancorrea6736
    @juancorrea6736 3 роки тому +1

    I love you, you are the best

  • @pooya130
    @pooya130 8 років тому

    Thank you for these videos I love 'em!
    Didn't know about the diary command it'd be specially useful if you want to make a tutorial you just do the steps and export the file as pdf.
    By the way, do you think it would be useful to learn LaTex?

    • @apm
      @apm  8 років тому

      Yes, the diary command is a very nice way to work at the command prompt and have it create a script file or other record of the work. Some LaTeX symbols can be used in legends and labels in Matlab. A nice way to get started is through an online LaTeX equation editor such as www.codecogs.com/latex/eqneditor.php

  • @kostas_othon
    @kostas_othon 4 роки тому +1

    Hello, I try to have more 'intensity' in the colour of the plot it that related to the colourmap or how the figures are saved?

    • @apm
      @apm  4 роки тому

      You can specify any color with the color parameter. You may also want to adjust the line thickness with the linewidth=3 parameter option.

  • @doxdorian5363
    @doxdorian5363 3 роки тому +1

    Thank you :)

  • @ksblakblakan
    @ksblakblakan 5 років тому

    Hi... I want to ask. When i type " h=figure(1), it does not create h with class "object", but it create h with class "double" 1x1 size.
    I just want to save my imagesc figure to my harddrive with code. I was read about "hgsave", but when i use hgsave(h), it will be error. What should i do so i can save my plot in jpg or tif?

    • @apm
      @apm  5 років тому

      Try the saveas command: www.mathworks.com/help/matlab/ref/saveas.html or else the savefig command (the one that I prefer): www.mathworks.com/help/matlab/ref/savefig.html

  • @raghavendrareddy4922
    @raghavendrareddy4922 7 років тому +1

    Hello, Informative tutorial. Am using MS Word for publications. Recently, I got a publication and They have asked me to submit individual figure files. They have clearly mentioned that figures should be high resolution (300 dpi or better) and format should be (.ps) or (.eps) or (.png) or (.tif). While writing paper, i generally used (.fig) format and copy-paste option to export figure into paper after setting colour, legends, fonts using plot tool icon in matlab. now my questions are
    1. How to set resolution 300 dpi or more in above said formats.
    2. by using save as option, i saved a figure in .eps format in one of the matlab folders (after editing using plot tool icon) but this figure is not opening in matlab or outside the matlab.
    3. Which is the best format amongst above for MS Word.
    i kindly request for you suggestion in this regards. thank you

    • @apm
      @apm  7 років тому

      EPS or PDF are generally the best formats to use. Copy the EPS file and paste it into Word or just submit the figures separate from the document. Embedded in MS Word, the EPS files will look bad but will be high quality once the document is converted to PDF. TIFF format is also generally acceptable for publications but the files are very large.

    • @raghavendrareddy4922
      @raghavendrareddy4922 7 років тому

      Thank you for the reply. Figure file generated in EPS file was not opening in matlab and outside the matlab environment. but, when we copy EPS file and paste it into MS Word the image is appearing. how to set its resolution for better appearance i.e. more than 300dpi

    • @rrc
      @rrc 7 років тому

      Raghavendra Reddy, with EPS there isn't a way to set the DPI because they are expressed as postscript (native instructions sent to a printer). The publisher shouldn't have a problem with EPS. If they insist on something with DPI then TIFF format may be an option.

    • @raghavendrareddy4922
      @raghavendrareddy4922 7 років тому

      Thank you. If we do like go to -----> matlab figure window>file>export setup> rendering > select resolution as required and click on apply to figure and save it in EPS. Will this trick works for high images for EPS file..???

    • @rrc
      @rrc 7 років тому

      Raghavendra Reddy, I've never tried that option. Maybe check the file size and see if it changes when you select a higher resolution. I've submitted these publications (apm.byu.edu/prism/index.php/Members/JohnHedengren) and I've never had a problem with just saving as EPS.

  • @rohitryadav4864
    @rohitryadav4864 6 років тому

    how to set size with code?

    • @apm
      @apm  6 років тому

      You can set sizes with properties such as LineWidth. One of the nice things about Matlab is that you can edit your plot and then have Matlab generate the plot code for you. You can edit the plot by clicking on the different elements and adjusting the things like font sizes.

  • @om251204
    @om251204 6 років тому +1

    You missed the whole point. You were supposed to tell something about HIGH QUALITY.

    • @apm
      @apm  6 років тому

      +Om Prakash, the main point to generate high quality for publications is to export as an EPS. I review some papers where authors include low resolution PNG or JPG figures. EPS preserves the highest resolution. Another point is to get the font size correct (typically increase) so that text is consistent with the rest of the publication (typically 10-11 pt font).

  • @mms100o
    @mms100o 5 років тому +1

    Honestly, do you realize that you wasted almost 13 min trying to answer a SIMPLE QUESTION that you haven't answered at all???

    • @apm
      @apm  5 років тому +1

      The best way to get a high quality plot is to use EPS format. This video also gives recommendations on how to build the elements of the plot so that it is descriptive and has typical elements that are needed for journal or conference publications.