Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'ListPlot and ListLinePlot filling bug?' topicStudent Support Forum > General > Archives > "ListPlot and ListLinePlot filling bug?"

Help | Reply To Topic
Author Comment/Response
Jeremy
08/31/12 6:13pm

Hi,

I am trying to use the Filling option for ListPlot and LineListPlot to emphasize the difference between two sets of data, but I can't get the filling to show. I can see filling if I set Filling -> Bottom (and the Mathematica Help examples that demonstrate Filling work fine), but not when I set it to the other curve as in Filling -> {2->{1}}.

Any help would be appreciated.

Best,
Jeremy


data120607site13to17m1 = ImportString["35\t3769.40857
30\t3627.08977
34\t3089.56261
39\t2647.18834
40\t2510.34334
41\t2431.88554
38\t2293.21594
37\t1991.15341
42\t1833.87289
43\t1758.15199
44\t1675.13269
46\t1553.79679
49\t1378.27027
48\t1237.95853
49\t1189.60663
45\t1025.02771
46\t947.48221
47\t917.37631
45\t832.53241
44\t748.60081
43\t644.78107
41\t489.69007
34\t9.09043
37\t-85.78877
40\t-233.94629
43\t-362.58059
44\t-407.64821
45\t-533.08946
48\t-679.87853
45\t-1059.21287
45\t-1242.95009
43\t-1496.93441
42\t-1509.70661
25\t-2557.02701
", "TSV"] // Reverse[#, 2] &;

data120607site13to17e1 = ImportString["56\t3740.85358
52\t3698.88778
56\t3607.65778
46\t3377.75818
47\t3273.75598
52\t3231.79018
48\t3085.09234
48\t2798.63014
53\t2734.76914
55\t2634.41614
54\t2516.9119
56\t2448.67186
56\t2401.9621
53\t2302.70386
51\t2180.45566
53\t2142.13906
53\t2045.43526
54\t1983.39886
57\t1943.25766
61\t1873.92286
62\t1839.25546
62\t1737.07786
63\t1650.59182
61\t1566.66022
64\t1511.92222
65\t1396.97242
62\t1230.20398
62\t1051.39318
66\t943.74178
64\t896.30218
63\t834.26578
60\t808.72138
59\t775.14874
61\t632.82994
57\t526.2733
50\t460.5877
49\t331.0411
53\t278.1277
49\t204.41386
49\t-7.23974
55\t-54.67934
52\t-116.71574
55\t-142.26014
55\t-248.08694
58\t-344.79074
60\t-381.28274
65\t-478.71638
67\t-520.68218
60\t-588.19238
61\t-790.72298
61\t-929.39258
59\t-1035.94922
60\t-1077.91502
58\t-1163.67122
60\t-1214.76002
58\t-1377.87926
57\t-1514.72426
55\t-1604.12966
58\t-1690.6157
54\t-1742.79926
51\t-1888.76726
53\t-1983.64646
49\t-2021.96306
47\t-2079.2555
49\t-2143.1165
49\t-2201.5037
46\t-2261.7155
45\t-2425.9295
47\t-2552.55674
49\t-2587.22414
47\t-2649.26054
43\t-2740.49054
", "TSV"] // Reverse[#, 2] &;

ListLinePlot[
Sort[#1, #1[[1]] > #2[[1]] &] & /@ {data120607site13to17m1,
data120607site13to17e1}, Filling -> {2 -> {1}}, Joined -> True]

URL: ,
Help | Reply To Topic