Units in plots? #266
-
As an example, I'm calculating the deflection of a beam and I need to plot in a graph deflection vs span. I use units in the variable, and would like that the graph show the unit and i can decide if i want the plot in mm or in meter or other units. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! Yes, you can do that in a simple way. For example, you can add a title: "Beam deflections d, mm" or label: "d, mm". You can also specify the units you want to calculate the function d(x), like this:
If you want to define d in mm, but plot it in m, just convert inside the plot function:
|
Beta Was this translation helpful? Give feedback.
Hi! Yes, you can do that in a simple way. For example, you can add a title: "Beam deflections d, mm" or label: "d, mm".
Check this discussion about how to add attributes to a plot: #150
You can also specify the units you want to calculate the function d(x), like this:
d(x) = .... |mm
If you want to define d in mm, but plot it in m, just convert inside the plot function:
$Plot{d(x)*m/mm @ x = 0m : L}