Changing a Shading
Once we understand how
shadings can be defined in TeX, we can create all manner of shadings of our own in graphs. For example, lets say we wanted to replace the pastel blue shading in
Figure 10 below with an orange shading.

Figure 10: pastel blue shading in a rectangle labeled 'ATP'
The original TeX that drew Figure 10 looks like:
% Rectangle for ATP
\pgftransformshift{\pgfpoint{ 489pt }{ 259pt } }
\def \wholeShape {(0pt,0pt) rectangle(34pt,24pt)}
\fill[rounded corners = 5pt, shading = LinearGradient_0, shading angle = -90 ] \wholeShape;
\draw[line width = 1pt, color = Color_0!100, rounded corners = 5pt ] \wholeShape;
Instead of using 'LinearGradient_0,' lets define a new shading; let's call it 'OrangeShading':
% defines/declares an OrangeShading \pgfdeclareverticalshading {OrangeShading} { 70pt } {color(0pt)=(orange!100); color(50pt)=(white!100)}
Now, returning to our original TeX that drew Figure 10, we replace 'LinearGradient_0' with 'OrangeShading':
% Rectangle for ATP
\pgftransformshift{\pgfpoint{ 489pt }{ 259pt } }
\def \wholeShape {(0pt,0pt) rectangle(34pt,24pt)}
\fill[rounded corners = 5pt, shading = OrangeShading, shading angle = -90 ] \wholeShape;
\draw[line width = 1pt, color = Color_0!100, rounded corners = 5pt ] \wholeShape;
Recompiling the entire TeX document, we find that in place of Figure 10 we now have:

Figure 11: an orange shading has replaced the pastel blue shading in Figure 10