Trinh @ Bath

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
it_matlab_figures [2024/03/23 23:30]
trinh
it_matlab_figures [2024/03/23 23:31]
trinh
Line 3: Line 3:
 You may be using Matlab to create graphics. Some considerations: You may be using Matlab to create graphics. Some considerations:
  
-  - Save all data or all scripts. Get in the habit of save data as ''%%.mat%%'' files and scripts that will plot the data. This means if you ever need to regenerate pictures, you can do it very easily.+  - Save all data or all scripts. Get in the habit of saving data as ''%%.mat%%'' files.  
 +  - Create scripts that will load in ''%%.mat%%'' files and plot the data. This means if you ever need to regenerate pictures, you can do it very easily.
   - Similar to above, you may want to save ''%%.fig%%'' files of the pictures. Again, it allows fine-tuning. (In fact, you can extract raw data from .fig files via scripts if you look into it).   - Similar to above, you may want to save ''%%.fig%%'' files of the pictures. Again, it allows fine-tuning. (In fact, you can extract raw data from .fig files via scripts if you look into it).
   - Use [[https://uk.mathworks.com/matlabcentral/fileexchange/23629-export_fig|export_fig]] package (Matlab file exchange) to export to pdf format. In general, output to PDF format unless the image is very detail-heavy (surface plots, contour plots, etc.). This ensures that the image is scalable and crisp.    - Use [[https://uk.mathworks.com/matlabcentral/fileexchange/23629-export_fig|export_fig]] package (Matlab file exchange) to export to pdf format. In general, output to PDF format unless the image is very detail-heavy (surface plots, contour plots, etc.). This ensures that the image is scalable and crisp.