tikz distribution and contour plot from seaborn
I have a generated a contour plot from 2 density estimations using seaborn. I want to reproduce the plot using tikz, but I don't find any resources.
Any help would be appreciated. Thank you
Edit: here is a sample of the data
X
102.676
78.5586
79.6868
82.5308
91.4554
93.5447
76.1719
66.3583
65.6621
0.746499
79.8957
0.850208
1.22866
104.088
36.3896
81.0653
94.9967
60.7178
96.3762
26.597
104.794
77.087
106.279
77.5906
43.9731
112.355
92.8647
92.1753
82.8094
105.941
47.7353
28.5966
89.6883
88.8432
105.329
82.1814
34.0755
96.8788
76.9557
46.4801
77.4166
81.6322
64.593
78.3
111.075
97.762
107.732
90.5405
67.6399
0.746499
42.7024
101.782
83.0307
73.2556
68.4083
57.8238
66.0233
39.0776
71.2586
70.5701
0.850208
87.5717
62.1982
109.8
1.22866
81.2693
83.7004
110.437
90.2362
80.5196
94.9327
69.5344
89.2766
61.7433
74.558
90.8988
67.9168
107.35
108.054
92.4359
99.6905
41.9103
78.3808
79.0937
59.2144
65.5379
56.6337
56.9718
107.554
42.5465
56.2624
63.5392
77.1599
74.6713
62.1982
52.2043
78.8423
43.819
59.56
65.5032
42.7706
61.8486
41.5089
38.5357
70.9904
86.0314
109.952
100.993
60.4296
0.099839
73.9194
61.7402
88.9099
63.9207
43.0294
62.519
86.3689
58.9263
41.7816
84.8238
71.8382
36.0272
-0.928131
-0.8
75.3791
Y
102.51
79.72
80.21
81.12
97.31
100.18
78.82
65.74
64.72
10.54
78.72
10.54
10.54
102.51
36.64
80.21
101.08
66.96
102.99
26.61
102.51
83.02
105.93
78.82
44.85
110.61
100.26
100.26
82.18
114.12
54.92
29.54
90.07
94.78
103.37
81.08
34.78
103.64
79.43
52.38
77.16
79.92
64.39
78.82
118.49
102.99
115.78
95.06
67.35
7.22
49.61
108.24
88.76
79.44
73.88
56.84
71.72
41.05
75.41
75.41
7.22
94.78
66.41
118.49
7.22
79.58
88.76
118.49
92.84
79.43
100.26
67.35
95.06
61.46
82.3
92.84
70.32
114.12
114.12
95.06
107.76
49.89
79.43
79.43
62.67
64.98
56.41
55.81
105.93
49.89
55.81
66.41
83.52
79.44
69.17
57.49
78.2
49.89
58.99
72.35
42.04
67.98
42.04
40.55
70.3
91.48
108.28
107.76
65.02
2.8
82.3
67.46
92.84
64.09
49.45
67.98
84.58
66.54
49.45
84.29
76.55
36.5
1.33
-0.140002
79.44
tikz-pgf pgfplots
New contributor
add a comment |
I have a generated a contour plot from 2 density estimations using seaborn. I want to reproduce the plot using tikz, but I don't find any resources.
Any help would be appreciated. Thank you
Edit: here is a sample of the data
X
102.676
78.5586
79.6868
82.5308
91.4554
93.5447
76.1719
66.3583
65.6621
0.746499
79.8957
0.850208
1.22866
104.088
36.3896
81.0653
94.9967
60.7178
96.3762
26.597
104.794
77.087
106.279
77.5906
43.9731
112.355
92.8647
92.1753
82.8094
105.941
47.7353
28.5966
89.6883
88.8432
105.329
82.1814
34.0755
96.8788
76.9557
46.4801
77.4166
81.6322
64.593
78.3
111.075
97.762
107.732
90.5405
67.6399
0.746499
42.7024
101.782
83.0307
73.2556
68.4083
57.8238
66.0233
39.0776
71.2586
70.5701
0.850208
87.5717
62.1982
109.8
1.22866
81.2693
83.7004
110.437
90.2362
80.5196
94.9327
69.5344
89.2766
61.7433
74.558
90.8988
67.9168
107.35
108.054
92.4359
99.6905
41.9103
78.3808
79.0937
59.2144
65.5379
56.6337
56.9718
107.554
42.5465
56.2624
63.5392
77.1599
74.6713
62.1982
52.2043
78.8423
43.819
59.56
65.5032
42.7706
61.8486
41.5089
38.5357
70.9904
86.0314
109.952
100.993
60.4296
0.099839
73.9194
61.7402
88.9099
63.9207
43.0294
62.519
86.3689
58.9263
41.7816
84.8238
71.8382
36.0272
-0.928131
-0.8
75.3791
Y
102.51
79.72
80.21
81.12
97.31
100.18
78.82
65.74
64.72
10.54
78.72
10.54
10.54
102.51
36.64
80.21
101.08
66.96
102.99
26.61
102.51
83.02
105.93
78.82
44.85
110.61
100.26
100.26
82.18
114.12
54.92
29.54
90.07
94.78
103.37
81.08
34.78
103.64
79.43
52.38
77.16
79.92
64.39
78.82
118.49
102.99
115.78
95.06
67.35
7.22
49.61
108.24
88.76
79.44
73.88
56.84
71.72
41.05
75.41
75.41
7.22
94.78
66.41
118.49
7.22
79.58
88.76
118.49
92.84
79.43
100.26
67.35
95.06
61.46
82.3
92.84
70.32
114.12
114.12
95.06
107.76
49.89
79.43
79.43
62.67
64.98
56.41
55.81
105.93
49.89
55.81
66.41
83.52
79.44
69.17
57.49
78.2
49.89
58.99
72.35
42.04
67.98
42.04
40.55
70.3
91.48
108.28
107.76
65.02
2.8
82.3
67.46
92.84
64.09
49.45
67.98
84.58
66.54
49.45
84.29
76.55
36.5
1.33
-0.140002
79.44
tikz-pgf pgfplots
New contributor
1
Welcome to TeX-SE! While it is certainly possible to draw something like this, you will have much better chances to get a real answer if you provide us with what you have tried and at the very least with the data.
– marmot
2 hours ago
@marmot thank you for your comment. I have added a sample of the data. Actually I have 2 Variable X and Y. I need to plot the distribution of each variable and the do a contour plot, or a surf plot :)
– ufdul
2 hours ago
I think you want to use acontour plot
from pgfplots for the contours.
– marmot
2 hours ago
Can you please add the tex code you have tried so far to plot that data?
– Kurt
2 hours ago
add a comment |
I have a generated a contour plot from 2 density estimations using seaborn. I want to reproduce the plot using tikz, but I don't find any resources.
Any help would be appreciated. Thank you
Edit: here is a sample of the data
X
102.676
78.5586
79.6868
82.5308
91.4554
93.5447
76.1719
66.3583
65.6621
0.746499
79.8957
0.850208
1.22866
104.088
36.3896
81.0653
94.9967
60.7178
96.3762
26.597
104.794
77.087
106.279
77.5906
43.9731
112.355
92.8647
92.1753
82.8094
105.941
47.7353
28.5966
89.6883
88.8432
105.329
82.1814
34.0755
96.8788
76.9557
46.4801
77.4166
81.6322
64.593
78.3
111.075
97.762
107.732
90.5405
67.6399
0.746499
42.7024
101.782
83.0307
73.2556
68.4083
57.8238
66.0233
39.0776
71.2586
70.5701
0.850208
87.5717
62.1982
109.8
1.22866
81.2693
83.7004
110.437
90.2362
80.5196
94.9327
69.5344
89.2766
61.7433
74.558
90.8988
67.9168
107.35
108.054
92.4359
99.6905
41.9103
78.3808
79.0937
59.2144
65.5379
56.6337
56.9718
107.554
42.5465
56.2624
63.5392
77.1599
74.6713
62.1982
52.2043
78.8423
43.819
59.56
65.5032
42.7706
61.8486
41.5089
38.5357
70.9904
86.0314
109.952
100.993
60.4296
0.099839
73.9194
61.7402
88.9099
63.9207
43.0294
62.519
86.3689
58.9263
41.7816
84.8238
71.8382
36.0272
-0.928131
-0.8
75.3791
Y
102.51
79.72
80.21
81.12
97.31
100.18
78.82
65.74
64.72
10.54
78.72
10.54
10.54
102.51
36.64
80.21
101.08
66.96
102.99
26.61
102.51
83.02
105.93
78.82
44.85
110.61
100.26
100.26
82.18
114.12
54.92
29.54
90.07
94.78
103.37
81.08
34.78
103.64
79.43
52.38
77.16
79.92
64.39
78.82
118.49
102.99
115.78
95.06
67.35
7.22
49.61
108.24
88.76
79.44
73.88
56.84
71.72
41.05
75.41
75.41
7.22
94.78
66.41
118.49
7.22
79.58
88.76
118.49
92.84
79.43
100.26
67.35
95.06
61.46
82.3
92.84
70.32
114.12
114.12
95.06
107.76
49.89
79.43
79.43
62.67
64.98
56.41
55.81
105.93
49.89
55.81
66.41
83.52
79.44
69.17
57.49
78.2
49.89
58.99
72.35
42.04
67.98
42.04
40.55
70.3
91.48
108.28
107.76
65.02
2.8
82.3
67.46
92.84
64.09
49.45
67.98
84.58
66.54
49.45
84.29
76.55
36.5
1.33
-0.140002
79.44
tikz-pgf pgfplots
New contributor
I have a generated a contour plot from 2 density estimations using seaborn. I want to reproduce the plot using tikz, but I don't find any resources.
Any help would be appreciated. Thank you
Edit: here is a sample of the data
X
102.676
78.5586
79.6868
82.5308
91.4554
93.5447
76.1719
66.3583
65.6621
0.746499
79.8957
0.850208
1.22866
104.088
36.3896
81.0653
94.9967
60.7178
96.3762
26.597
104.794
77.087
106.279
77.5906
43.9731
112.355
92.8647
92.1753
82.8094
105.941
47.7353
28.5966
89.6883
88.8432
105.329
82.1814
34.0755
96.8788
76.9557
46.4801
77.4166
81.6322
64.593
78.3
111.075
97.762
107.732
90.5405
67.6399
0.746499
42.7024
101.782
83.0307
73.2556
68.4083
57.8238
66.0233
39.0776
71.2586
70.5701
0.850208
87.5717
62.1982
109.8
1.22866
81.2693
83.7004
110.437
90.2362
80.5196
94.9327
69.5344
89.2766
61.7433
74.558
90.8988
67.9168
107.35
108.054
92.4359
99.6905
41.9103
78.3808
79.0937
59.2144
65.5379
56.6337
56.9718
107.554
42.5465
56.2624
63.5392
77.1599
74.6713
62.1982
52.2043
78.8423
43.819
59.56
65.5032
42.7706
61.8486
41.5089
38.5357
70.9904
86.0314
109.952
100.993
60.4296
0.099839
73.9194
61.7402
88.9099
63.9207
43.0294
62.519
86.3689
58.9263
41.7816
84.8238
71.8382
36.0272
-0.928131
-0.8
75.3791
Y
102.51
79.72
80.21
81.12
97.31
100.18
78.82
65.74
64.72
10.54
78.72
10.54
10.54
102.51
36.64
80.21
101.08
66.96
102.99
26.61
102.51
83.02
105.93
78.82
44.85
110.61
100.26
100.26
82.18
114.12
54.92
29.54
90.07
94.78
103.37
81.08
34.78
103.64
79.43
52.38
77.16
79.92
64.39
78.82
118.49
102.99
115.78
95.06
67.35
7.22
49.61
108.24
88.76
79.44
73.88
56.84
71.72
41.05
75.41
75.41
7.22
94.78
66.41
118.49
7.22
79.58
88.76
118.49
92.84
79.43
100.26
67.35
95.06
61.46
82.3
92.84
70.32
114.12
114.12
95.06
107.76
49.89
79.43
79.43
62.67
64.98
56.41
55.81
105.93
49.89
55.81
66.41
83.52
79.44
69.17
57.49
78.2
49.89
58.99
72.35
42.04
67.98
42.04
40.55
70.3
91.48
108.28
107.76
65.02
2.8
82.3
67.46
92.84
64.09
49.45
67.98
84.58
66.54
49.45
84.29
76.55
36.5
1.33
-0.140002
79.44
tikz-pgf pgfplots
tikz-pgf pgfplots
New contributor
New contributor
edited 2 hours ago
ufdul
New contributor
asked 2 hours ago
ufdulufdul
11
11
New contributor
New contributor
1
Welcome to TeX-SE! While it is certainly possible to draw something like this, you will have much better chances to get a real answer if you provide us with what you have tried and at the very least with the data.
– marmot
2 hours ago
@marmot thank you for your comment. I have added a sample of the data. Actually I have 2 Variable X and Y. I need to plot the distribution of each variable and the do a contour plot, or a surf plot :)
– ufdul
2 hours ago
I think you want to use acontour plot
from pgfplots for the contours.
– marmot
2 hours ago
Can you please add the tex code you have tried so far to plot that data?
– Kurt
2 hours ago
add a comment |
1
Welcome to TeX-SE! While it is certainly possible to draw something like this, you will have much better chances to get a real answer if you provide us with what you have tried and at the very least with the data.
– marmot
2 hours ago
@marmot thank you for your comment. I have added a sample of the data. Actually I have 2 Variable X and Y. I need to plot the distribution of each variable and the do a contour plot, or a surf plot :)
– ufdul
2 hours ago
I think you want to use acontour plot
from pgfplots for the contours.
– marmot
2 hours ago
Can you please add the tex code you have tried so far to plot that data?
– Kurt
2 hours ago
1
1
Welcome to TeX-SE! While it is certainly possible to draw something like this, you will have much better chances to get a real answer if you provide us with what you have tried and at the very least with the data.
– marmot
2 hours ago
Welcome to TeX-SE! While it is certainly possible to draw something like this, you will have much better chances to get a real answer if you provide us with what you have tried and at the very least with the data.
– marmot
2 hours ago
@marmot thank you for your comment. I have added a sample of the data. Actually I have 2 Variable X and Y. I need to plot the distribution of each variable and the do a contour plot, or a surf plot :)
– ufdul
2 hours ago
@marmot thank you for your comment. I have added a sample of the data. Actually I have 2 Variable X and Y. I need to plot the distribution of each variable and the do a contour plot, or a surf plot :)
– ufdul
2 hours ago
I think you want to use a
contour plot
from pgfplots for the contours.– marmot
2 hours ago
I think you want to use a
contour plot
from pgfplots for the contours.– marmot
2 hours ago
Can you please add the tex code you have tried so far to plot that data?
– Kurt
2 hours ago
Can you please add the tex code you have tried so far to plot that data?
– Kurt
2 hours ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
ufdul is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f480784%2ftikz-distribution-and-contour-plot-from-seaborn%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
ufdul is a new contributor. Be nice, and check out our Code of Conduct.
ufdul is a new contributor. Be nice, and check out our Code of Conduct.
ufdul is a new contributor. Be nice, and check out our Code of Conduct.
ufdul is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f480784%2ftikz-distribution-and-contour-plot-from-seaborn%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Welcome to TeX-SE! While it is certainly possible to draw something like this, you will have much better chances to get a real answer if you provide us with what you have tried and at the very least with the data.
– marmot
2 hours ago
@marmot thank you for your comment. I have added a sample of the data. Actually I have 2 Variable X and Y. I need to plot the distribution of each variable and the do a contour plot, or a surf plot :)
– ufdul
2 hours ago
I think you want to use a
contour plot
from pgfplots for the contours.– marmot
2 hours ago
Can you please add the tex code you have tried so far to plot that data?
– Kurt
2 hours ago