this
Description
fsetthk
can be used within a plotting function to change a line's thickness depending on the x-axis scale of the plot. For a small spread in the scale the thickness will be much thicker than for a large spread. The thickness only applies for a single plot command. This function is mostly useful for insertion into a plot function that will be zoomed.

a and b are integer values used to define the x-axis spread. The spread is defined as b-a.

Example:
The following set of code is taked from the candlechart function in the file /EAS/utility/functions/plotutil.oms.

# Draw the body
     fsetthk(a,b)
     while i>lim begin
          gcolor("red")
          if cp(i)>op1(i) then gcolor("green")
          gplot({i,i},{op1(i),cp(i)})
          i=i-f
     end

The effect of setthk is to change the thickness of a candle's body depending on the spread. The function is effective because each time the plot is zoomed the chart is redrawn at the new scale. To gain this effect on a user defined plot function, the dynzoom function would have to be modified to incorporate the user function.