Generalized approach for plottting derived quantities

With more searching online, I found some discussions and recommendations for not using eval() if possible at runtime. Maybe I should look for some alternative options, like string into function as an expression.