在线下方绘制阴影区域

时间:2015-12-07 02:28:19

标签: gnuplot

我试图遮挡线下方的区域,但是当我这样做时,即使我在下面指出,我也会在线上方获得阴影区域。你知道遮蔽这个区域时会出现什么问题吗?

X                Y1            Y2         C.Interval(-)  C.Interval(+)     
0.1            0.1111        0.1111       0.110950699    0.111166503
0.2            0.2500        0.2498       0.249474612    0.250095218      
0.4            0.6667        0.6675       0.666310581    0.668667648
0.6            1.4993        1.4962       1.491809644    1.500612543   
0.8            4.0000        4.0069       3.982266522    4.031590962

结果是相反的方向: enter image description here

我的数据是:

SELECT
    COUNT(WorkOrderID) AS TotalWorkOrders, 
    PC.[Name]
FROM [Production].[WorkOrder] WO
INNER JOIN [Production].[Product] P ON WO.[ProductID] = P.[ProductID]
INNER JOIN [Production].[ProductSubcategory] PS ON PS.[ProductSubcategoryID] = P.[ProductSubcategoryID]
INNER JOIN [Production].[ProductCategory] PC ON PC.[ProductCategoryID] = PS.[ProductCategoryID]
WHERE WO.[StartDate] >= '1999—03-08' AND WO.[StartDate] <= '2008-05-02'
GROUP BY PC.[Name]

我怎样才能遮挡下面的区域?

谢谢

干杯

1 个答案:

答案 0 :(得分:1)

我认为我需要在下面包含参数x1,以指示阴影区域必须低于该线。

gnuplot> plot "data2.dat" using 1:3:4:5 with yerrorlines ls 1 linecolor rgb "blue",\
""         using 1:2 with filledcurves below x1 linecolor rgb "red"

enter image description here