It will often be more efficient to generate graphics in an external software package and then include these files in a LaTeX beamer presentation. The standard LaTeX approach to including graphics can be utilised to perform this task.
Fast Tube by Casper
The graphicx is useful for including graphics files in a presentation and this package has a command includegraphics where we specify the name of the image file to be included and (optionally) some formatting information such as the dimensions of the image in our document.
As an example if we wanted to include a jpg file then we would include a command like this:
and if we wanted to scale in the horizontal or vertical dimension then we can specify the height and width to use:
There are other options as part of the graphicx package that can be used to adjust the display of the image as required.
Other useful resources are provided on the Supplementary Material page.