You can create a graph with units from an expression or a procedure. See the help page plot/details for more information.
When you plot an expression, the axes labeling shows the variable names and units. This is shown in the following example (as well as all the earlier examples).
When you plot a procedure, such as the function defined here, no variable names are used.
Note: To plot a procedure that contains units, you must tell the plotting command that units are involved so that the procedure is properly processed. For computational efficiency, when a procedure is plotted, the values returned from the procedure are assumed to be unit-free by default. Therefore, if your procedure returns a numeric value with units, you must specify to the plotting command that units are involved. You can specify this by including units in the ranges or by using setting the option useunits=true (or simply useunits). See the help page Plots with Units for details.
Example: Specify that units are involved in the procedure by using units in the ranges.
Alternatively, indicate that the procedure returns units by using the useunits option. The first example simply indicates that the procedure involves units, while the second example specifies units to be displayed on the axes.
To make further modifications to any plot, you can use options to the plot command, or make modifications interactively by clicking on the plot and using the Edit > Plot menu options.