ListPlot from Table of single input x and many y(x) output












3















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.










share|improve this question




















  • 1





    Related: (21884), (47038)

    – Mr.Wizard
    2 days ago
















3















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.










share|improve this question




















  • 1





    Related: (21884), (47038)

    – Mr.Wizard
    2 days ago














3












3








3


1






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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago







Nigel1

















asked 2 days ago









Nigel1Nigel1

1756




1756








  • 1





    Related: (21884), (47038)

    – Mr.Wizard
    2 days ago














  • 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










3 Answers
3






active

oldest

votes


















4














mydata2 = Thread[{First@#, Rest@#}] & /@ mydata;
ListPlot[mydata2]


enter image description here






share|improve this answer































    4














    mydata2 = Map[(mydata[[All, {1, #}]]) &, Range[2, Last@Dimensions@mydata]];
    ListPlot[mydata2, Joined -> True]


    enter image description here






    share|improve this answer



















    • 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














    Not applicable to all data, but in this case DataRange appears useful:



    ListLinePlot[mydata[Transpose][[2 ;;]], DataRange -> {11, 13}]


    enter image description here






    share|improve this answer























      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
      });


      }
      });














      draft saved

      draft discarded


















      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









      4














      mydata2 = Thread[{First@#, Rest@#}] & /@ mydata;
      ListPlot[mydata2]


      enter image description here






      share|improve this answer




























        4














        mydata2 = Thread[{First@#, Rest@#}] & /@ mydata;
        ListPlot[mydata2]


        enter image description here






        share|improve this answer


























          4












          4








          4







          mydata2 = Thread[{First@#, Rest@#}] & /@ mydata;
          ListPlot[mydata2]


          enter image description here






          share|improve this answer













          mydata2 = Thread[{First@#, Rest@#}] & /@ mydata;
          ListPlot[mydata2]


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 2 days ago









          kglrkglr

          178k9198409




          178k9198409























              4














              mydata2 = Map[(mydata[[All, {1, #}]]) &, Range[2, Last@Dimensions@mydata]];
              ListPlot[mydata2, Joined -> True]


              enter image description here






              share|improve this answer



















              • 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


















              4














              mydata2 = Map[(mydata[[All, {1, #}]]) &, Range[2, Last@Dimensions@mydata]];
              ListPlot[mydata2, Joined -> True]


              enter image description here






              share|improve this answer



















              • 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
















              4












              4








              4







              mydata2 = Map[(mydata[[All, {1, #}]]) &, Range[2, Last@Dimensions@mydata]];
              ListPlot[mydata2, Joined -> True]


              enter image description here






              share|improve this answer













              mydata2 = Map[(mydata[[All, {1, #}]]) &, Range[2, Last@Dimensions@mydata]];
              ListPlot[mydata2, Joined -> True]


              enter image description here







              share|improve this answer












              share|improve this answer



              share|improve this answer










              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
















              • 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













              2














              Not applicable to all data, but in this case DataRange appears useful:



              ListLinePlot[mydata[Transpose][[2 ;;]], DataRange -> {11, 13}]


              enter image description here






              share|improve this answer




























                2














                Not applicable to all data, but in this case DataRange appears useful:



                ListLinePlot[mydata[Transpose][[2 ;;]], DataRange -> {11, 13}]


                enter image description here






                share|improve this answer


























                  2












                  2








                  2







                  Not applicable to all data, but in this case DataRange appears useful:



                  ListLinePlot[mydata[Transpose][[2 ;;]], DataRange -> {11, 13}]


                  enter image description here






                  share|improve this answer













                  Not applicable to all data, but in this case DataRange appears useful:



                  ListLinePlot[mydata[Transpose][[2 ;;]], DataRange -> {11, 13}]


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 2 days ago









                  Mr.WizardMr.Wizard

                  230k294741040




                  230k294741040






























                      draft saved

                      draft discarded




















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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







                      Popular posts from this blog

                      "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

                      Alcedinidae

                      Origin of the phrase “under your belt”?