ListPlot from Table of single input x and many y(x) output
Suppose have data for several x and several y(x), for example
mydata = {{11, 1.1, 2.3, 2.4}, {12, 1.3, 1.4, 1.9}, {13, 1.8, 1.7, 1.2}}
mydata // MatrixForm
So
for x=11, have y(x)= 1.1, 2.3 and 2.4
for x=12, have y(x)= 1.3, 1.4 and 1.9
for x=13, have y(x)= 1.8, 1.7 and 1.2
How to do list plot for many y(x) as function of x?
Use of
ListPlot[mydata]
is no working.
plotting list-manipulation table
add a comment |
Suppose have data for several x and several y(x), for example
mydata = {{11, 1.1, 2.3, 2.4}, {12, 1.3, 1.4, 1.9}, {13, 1.8, 1.7, 1.2}}
mydata // MatrixForm
So
for x=11, have y(x)= 1.1, 2.3 and 2.4
for x=12, have y(x)= 1.3, 1.4 and 1.9
for x=13, have y(x)= 1.8, 1.7 and 1.2
How to do list plot for many y(x) as function of x?
Use of
ListPlot[mydata]
is no working.
plotting list-manipulation table
1
Related: (21884), (47038)
– Mr.Wizard♦
2 days ago
add a comment |
Suppose have data for several x and several y(x), for example
mydata = {{11, 1.1, 2.3, 2.4}, {12, 1.3, 1.4, 1.9}, {13, 1.8, 1.7, 1.2}}
mydata // MatrixForm
So
for x=11, have y(x)= 1.1, 2.3 and 2.4
for x=12, have y(x)= 1.3, 1.4 and 1.9
for x=13, have y(x)= 1.8, 1.7 and 1.2
How to do list plot for many y(x) as function of x?
Use of
ListPlot[mydata]
is no working.
plotting list-manipulation table
Suppose have data for several x and several y(x), for example
mydata = {{11, 1.1, 2.3, 2.4}, {12, 1.3, 1.4, 1.9}, {13, 1.8, 1.7, 1.2}}
mydata // MatrixForm
So
for x=11, have y(x)= 1.1, 2.3 and 2.4
for x=12, have y(x)= 1.3, 1.4 and 1.9
for x=13, have y(x)= 1.8, 1.7 and 1.2
How to do list plot for many y(x) as function of x?
Use of
ListPlot[mydata]
is no working.
plotting list-manipulation table
plotting list-manipulation table
edited 2 days ago
Nigel1
asked 2 days ago
Nigel1Nigel1
1756
1756
1
Related: (21884), (47038)
– Mr.Wizard♦
2 days ago
add a comment |
1
Related: (21884), (47038)
– Mr.Wizard♦
2 days ago
1
1
Related: (21884), (47038)
– Mr.Wizard♦
2 days ago
Related: (21884), (47038)
– Mr.Wizard♦
2 days ago
add a comment |
3 Answers
3
active
oldest
votes
mydata2 = Thread[{First@#, Rest@#}] & /@ mydata;
ListPlot[mydata2]
add a comment |
mydata2 = Map[(mydata[[All, {1, #}]]) &, Range[2, Last@Dimensions@mydata]];
ListPlot[mydata2, Joined -> True]
2
Notice how your image is very similar to Mr.Wizard's image. Still, you image somehow appears to be of lower visual quality; it looks 'fuzzy' or something. Why is that? Well, this is because you saved it as a JPG image. JPG works well with photographic images, but introduces artefacts in illustrations, diagrams, screenshots, etc. For this kind of images, PNG is the ideal choice! :)
– Andreas Rejbrand
2 days ago
add a comment |
Not applicable to all data, but in this case DataRange
appears useful:
ListLinePlot[mydata[Transpose][[2 ;;]], DataRange -> {11, 13}]
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "387"
};
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
});
}
});
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%2fmathematica.stackexchange.com%2fquestions%2f189282%2flistplot-from-table-of-single-input-x-and-many-yx-output%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
mydata2 = Thread[{First@#, Rest@#}] & /@ mydata;
ListPlot[mydata2]
add a comment |
mydata2 = Thread[{First@#, Rest@#}] & /@ mydata;
ListPlot[mydata2]
add a comment |
mydata2 = Thread[{First@#, Rest@#}] & /@ mydata;
ListPlot[mydata2]
mydata2 = Thread[{First@#, Rest@#}] & /@ mydata;
ListPlot[mydata2]
answered 2 days ago
kglrkglr
178k9198409
178k9198409
add a comment |
add a comment |
mydata2 = Map[(mydata[[All, {1, #}]]) &, Range[2, Last@Dimensions@mydata]];
ListPlot[mydata2, Joined -> True]
2
Notice how your image is very similar to Mr.Wizard's image. Still, you image somehow appears to be of lower visual quality; it looks 'fuzzy' or something. Why is that? Well, this is because you saved it as a JPG image. JPG works well with photographic images, but introduces artefacts in illustrations, diagrams, screenshots, etc. For this kind of images, PNG is the ideal choice! :)
– Andreas Rejbrand
2 days ago
add a comment |
mydata2 = Map[(mydata[[All, {1, #}]]) &, Range[2, Last@Dimensions@mydata]];
ListPlot[mydata2, Joined -> True]
2
Notice how your image is very similar to Mr.Wizard's image. Still, you image somehow appears to be of lower visual quality; it looks 'fuzzy' or something. Why is that? Well, this is because you saved it as a JPG image. JPG works well with photographic images, but introduces artefacts in illustrations, diagrams, screenshots, etc. For this kind of images, PNG is the ideal choice! :)
– Andreas Rejbrand
2 days ago
add a comment |
mydata2 = Map[(mydata[[All, {1, #}]]) &, Range[2, Last@Dimensions@mydata]];
ListPlot[mydata2, Joined -> True]
mydata2 = Map[(mydata[[All, {1, #}]]) &, Range[2, Last@Dimensions@mydata]];
ListPlot[mydata2, Joined -> True]
answered 2 days ago
RMMARMMA
1,39311229
1,39311229
2
Notice how your image is very similar to Mr.Wizard's image. Still, you image somehow appears to be of lower visual quality; it looks 'fuzzy' or something. Why is that? Well, this is because you saved it as a JPG image. JPG works well with photographic images, but introduces artefacts in illustrations, diagrams, screenshots, etc. For this kind of images, PNG is the ideal choice! :)
– Andreas Rejbrand
2 days ago
add a comment |
2
Notice how your image is very similar to Mr.Wizard's image. Still, you image somehow appears to be of lower visual quality; it looks 'fuzzy' or something. Why is that? Well, this is because you saved it as a JPG image. JPG works well with photographic images, but introduces artefacts in illustrations, diagrams, screenshots, etc. For this kind of images, PNG is the ideal choice! :)
– Andreas Rejbrand
2 days ago
2
2
Notice how your image is very similar to Mr.Wizard's image. Still, you image somehow appears to be of lower visual quality; it looks 'fuzzy' or something. Why is that? Well, this is because you saved it as a JPG image. JPG works well with photographic images, but introduces artefacts in illustrations, diagrams, screenshots, etc. For this kind of images, PNG is the ideal choice! :)
– Andreas Rejbrand
2 days ago
Notice how your image is very similar to Mr.Wizard's image. Still, you image somehow appears to be of lower visual quality; it looks 'fuzzy' or something. Why is that? Well, this is because you saved it as a JPG image. JPG works well with photographic images, but introduces artefacts in illustrations, diagrams, screenshots, etc. For this kind of images, PNG is the ideal choice! :)
– Andreas Rejbrand
2 days ago
add a comment |
Not applicable to all data, but in this case DataRange
appears useful:
ListLinePlot[mydata[Transpose][[2 ;;]], DataRange -> {11, 13}]
add a comment |
Not applicable to all data, but in this case DataRange
appears useful:
ListLinePlot[mydata[Transpose][[2 ;;]], DataRange -> {11, 13}]
add a comment |
Not applicable to all data, but in this case DataRange
appears useful:
ListLinePlot[mydata[Transpose][[2 ;;]], DataRange -> {11, 13}]
Not applicable to all data, but in this case DataRange
appears useful:
ListLinePlot[mydata[Transpose][[2 ;;]], DataRange -> {11, 13}]
answered 2 days ago
Mr.Wizard♦Mr.Wizard
230k294741040
230k294741040
add a comment |
add a comment |
Thanks for contributing an answer to Mathematica 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.
Use MathJax to format equations. MathJax reference.
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%2fmathematica.stackexchange.com%2fquestions%2f189282%2flistplot-from-table-of-single-input-x-and-many-yx-output%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
Related: (21884), (47038)
– Mr.Wizard♦
2 days ago