Re: Shading
Ivan Johansen <graph <at> padowan.dk>
2007-07-22 16:13:24 GMT
Tim wrote:
> For the life of me, I can not figure out how to shade the area between 4
> functions. The four functions are F(x) = -1x+50, f(x) = -.6x+40, f(x) = -
> 247.5x+2500, f(x) = 0x+15.
>
> Any help on what settings need to be checked, unchecked, or used would help
> greatly.
The simplest is to use an inequality (Function|Insert relation), which
can be written as:
y < -1x+50 and y < -.6x+40 and y > 0x+15 and y > -247.5x+2500
Alternatively, if you assume f(x)=247.5x+2500 is vertical, you can split
the area into two shadings below the functions f(x)=-1x+50 and
f(x)=-0.6x+40, and above f(x)=0x+15.
I have attached a file that shows both.
Best regards
Ivan Johansen
;This file was created by Graph (http://www.padowan.dk)
;Do not change this file from other programs.
[Graph]
Version = 4.3.0.378
MinVersion = 2.5
OS = Windows XP 5.1 Service Pack 2
[Axes]
xMin = -29.6
xMax = 50.4
xTickUnit = 10
xGridUnit = 10
yMin = -17.6
yMax = 62.3999999999999
yTickUnit = 10
yGridUnit = 10
AxesColor = clBlue
GridColor = 0x00FF9999
ShowLegend = 0
Radian = 1
[Relation1]
Relation = y < -1x+50 and y < -.6x+40 and y > 0x+15 and y > -247.5x+2500
Style = 0
Color = clFuchsia
[Func1]
FuncType = 0
y = -1x+50
Color = clRed
[Shade1]
LegendText = Shade 1
ShadeStyle = 4
BrushStyle = 5
Color = clNavy
FuncNo = 1
Func2No = 4
sMin = 25
sMax = 35
sMin2 = 25
sMax2 = 35
MarkStart = 0
[Func2]
FuncType = 0
y = -.6x+40
Color = clRed
[Shade2]
LegendText = Shade 2
ShadeStyle = 4
BrushStyle = 5
Color = clNavy
FuncNo = 2
Func2No = 4
sMin = 10
sMax = 25
sMin2 = 10
sMax2 = 25
MarkEnd = 0
[Func3]
FuncType = 0
y = -247.5x+2500
Color = clRed
[Func4]
FuncType = 0
y = 0x+15
Color = clRed
[Data]
TextLabelCount = 0
FuncCount = 4
PointSeriesCount = 0
ShadeCount = 2
RelationCount = 1
OleObjectCount = 0
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Graph-support mailing list
Graph-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/graph-support