If you use a stylus with pressure mappings when you create a stroke, Paint Effects assigns pressure values to UV points on the underlying stroke path curve. These values are stored with the stroke. You can adjust each value individually in the Attribute Editor (see the Modify pressure mappings for existing strokes section of Modify stroke settings for existing strokes), however, this could prove unwieldy given that strokes commonly have more than 100 pressure values.
Alternatively, you can interactively modify the pressure values using stroke pressure curves. This can be done for any stroke, whether it was created with a simple mouse or a pressure-sensitive stylus. A stroke pressure curve is a visual representation of the pressure values along the stroke. By moving control points of the pressure curve towards or away from a stroke, you change the pressure values on the stroke.
In the following example, Tube Length is mapped to pressure for the stroke. A pressure curve for the stroke was edited to produce new pressure values, and therefore new tube lengths.
To modify pressure values interactively
An expression is also created when you create the curve.