plot 2D graph with points from a file

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-1
down vote

favorite












I have a file with values



2 2
3 21
4 583
5 197
6 83
7 179
8 246
9 220
10 393
11 295
12 339
13 250
14 223
15 194
16 895
17 201
18 1097
19 371
20 706
21 76
22 180
23 236
24 238
25 101
26 101
27 79
28 116
29 70
30 112
31 54
32 4849
33 53
34 53
35 50
36 32
37 53
38 67
39 35
40 126


and so on. I want to plot these points into a 2D graph.







share|improve this question


















  • 4




    OK, and what part is giving you trouble? I see you tagged with gnuplot, so should we assume you want to use that tool? What do you have so far? If you don't share what you've done with us, we'll just waste your time telling you things you've already tried. So please edit your question and explain what you have so far and what you need help with.
    – terdon♦
    Nov 27 '17 at 11:44










  • the data is generated using a tool. It gives output in this format. I tried using the tool 'plot. Says these is an undefined symbol in the file.
    – Sam
    Nov 27 '17 at 12:08






  • 1




    Well, that's precisely the sort of information that should be in the question. Please edit your question and i) tell us what tool you used; ii) show how you imported the data into gnuplot; iii) show us the exact error message you got. We can't help you fix a problem if you don't tell us what the problem is. Could the data be coming from a Windows program?
    – terdon♦
    Nov 27 '17 at 12:50














up vote
-1
down vote

favorite












I have a file with values



2 2
3 21
4 583
5 197
6 83
7 179
8 246
9 220
10 393
11 295
12 339
13 250
14 223
15 194
16 895
17 201
18 1097
19 371
20 706
21 76
22 180
23 236
24 238
25 101
26 101
27 79
28 116
29 70
30 112
31 54
32 4849
33 53
34 53
35 50
36 32
37 53
38 67
39 35
40 126


and so on. I want to plot these points into a 2D graph.







share|improve this question


















  • 4




    OK, and what part is giving you trouble? I see you tagged with gnuplot, so should we assume you want to use that tool? What do you have so far? If you don't share what you've done with us, we'll just waste your time telling you things you've already tried. So please edit your question and explain what you have so far and what you need help with.
    – terdon♦
    Nov 27 '17 at 11:44










  • the data is generated using a tool. It gives output in this format. I tried using the tool 'plot. Says these is an undefined symbol in the file.
    – Sam
    Nov 27 '17 at 12:08






  • 1




    Well, that's precisely the sort of information that should be in the question. Please edit your question and i) tell us what tool you used; ii) show how you imported the data into gnuplot; iii) show us the exact error message you got. We can't help you fix a problem if you don't tell us what the problem is. Could the data be coming from a Windows program?
    – terdon♦
    Nov 27 '17 at 12:50












up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











I have a file with values



2 2
3 21
4 583
5 197
6 83
7 179
8 246
9 220
10 393
11 295
12 339
13 250
14 223
15 194
16 895
17 201
18 1097
19 371
20 706
21 76
22 180
23 236
24 238
25 101
26 101
27 79
28 116
29 70
30 112
31 54
32 4849
33 53
34 53
35 50
36 32
37 53
38 67
39 35
40 126


and so on. I want to plot these points into a 2D graph.







share|improve this question














I have a file with values



2 2
3 21
4 583
5 197
6 83
7 179
8 246
9 220
10 393
11 295
12 339
13 250
14 223
15 194
16 895
17 201
18 1097
19 371
20 706
21 76
22 180
23 236
24 238
25 101
26 101
27 79
28 116
29 70
30 112
31 54
32 4849
33 53
34 53
35 50
36 32
37 53
38 67
39 35
40 126


and so on. I want to plot these points into a 2D graph.









share|improve this question













share|improve this question




share|improve this question








edited Nov 27 '17 at 11:39









Jeff Schaller

32.1k849109




32.1k849109










asked Nov 27 '17 at 11:38









Sam

32




32







  • 4




    OK, and what part is giving you trouble? I see you tagged with gnuplot, so should we assume you want to use that tool? What do you have so far? If you don't share what you've done with us, we'll just waste your time telling you things you've already tried. So please edit your question and explain what you have so far and what you need help with.
    – terdon♦
    Nov 27 '17 at 11:44










  • the data is generated using a tool. It gives output in this format. I tried using the tool 'plot. Says these is an undefined symbol in the file.
    – Sam
    Nov 27 '17 at 12:08






  • 1




    Well, that's precisely the sort of information that should be in the question. Please edit your question and i) tell us what tool you used; ii) show how you imported the data into gnuplot; iii) show us the exact error message you got. We can't help you fix a problem if you don't tell us what the problem is. Could the data be coming from a Windows program?
    – terdon♦
    Nov 27 '17 at 12:50












  • 4




    OK, and what part is giving you trouble? I see you tagged with gnuplot, so should we assume you want to use that tool? What do you have so far? If you don't share what you've done with us, we'll just waste your time telling you things you've already tried. So please edit your question and explain what you have so far and what you need help with.
    – terdon♦
    Nov 27 '17 at 11:44










  • the data is generated using a tool. It gives output in this format. I tried using the tool 'plot. Says these is an undefined symbol in the file.
    – Sam
    Nov 27 '17 at 12:08






  • 1




    Well, that's precisely the sort of information that should be in the question. Please edit your question and i) tell us what tool you used; ii) show how you imported the data into gnuplot; iii) show us the exact error message you got. We can't help you fix a problem if you don't tell us what the problem is. Could the data be coming from a Windows program?
    – terdon♦
    Nov 27 '17 at 12:50







4




4




OK, and what part is giving you trouble? I see you tagged with gnuplot, so should we assume you want to use that tool? What do you have so far? If you don't share what you've done with us, we'll just waste your time telling you things you've already tried. So please edit your question and explain what you have so far and what you need help with.
– terdon♦
Nov 27 '17 at 11:44




OK, and what part is giving you trouble? I see you tagged with gnuplot, so should we assume you want to use that tool? What do you have so far? If you don't share what you've done with us, we'll just waste your time telling you things you've already tried. So please edit your question and explain what you have so far and what you need help with.
– terdon♦
Nov 27 '17 at 11:44












the data is generated using a tool. It gives output in this format. I tried using the tool 'plot. Says these is an undefined symbol in the file.
– Sam
Nov 27 '17 at 12:08




the data is generated using a tool. It gives output in this format. I tried using the tool 'plot. Says these is an undefined symbol in the file.
– Sam
Nov 27 '17 at 12:08




1




1




Well, that's precisely the sort of information that should be in the question. Please edit your question and i) tell us what tool you used; ii) show how you imported the data into gnuplot; iii) show us the exact error message you got. We can't help you fix a problem if you don't tell us what the problem is. Could the data be coming from a Windows program?
– terdon♦
Nov 27 '17 at 12:50




Well, that's precisely the sort of information that should be in the question. Please edit your question and i) tell us what tool you used; ii) show how you imported the data into gnuplot; iii) show us the exact error message you got. We can't help you fix a problem if you don't tell us what the problem is. Could the data be coming from a Windows program?
– terdon♦
Nov 27 '17 at 12:50










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










The simplest way to do this is to paste numbers into a
file using an editor e.g.



 $ vi mynumbers.dat


and then start gnuplot and make a scatter plot



 $ gnuplot
gnuplot> plot 'mynumbers.dat'


This will produce the following image



enter image description here



It seems like this question must already have an answer somewhere in SE
though?






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f407269%2fplot-2d-graph-with-points-from-a-file%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    The simplest way to do this is to paste numbers into a
    file using an editor e.g.



     $ vi mynumbers.dat


    and then start gnuplot and make a scatter plot



     $ gnuplot
    gnuplot> plot 'mynumbers.dat'


    This will produce the following image



    enter image description here



    It seems like this question must already have an answer somewhere in SE
    though?






    share|improve this answer
























      up vote
      1
      down vote



      accepted










      The simplest way to do this is to paste numbers into a
      file using an editor e.g.



       $ vi mynumbers.dat


      and then start gnuplot and make a scatter plot



       $ gnuplot
      gnuplot> plot 'mynumbers.dat'


      This will produce the following image



      enter image description here



      It seems like this question must already have an answer somewhere in SE
      though?






      share|improve this answer






















        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        The simplest way to do this is to paste numbers into a
        file using an editor e.g.



         $ vi mynumbers.dat


        and then start gnuplot and make a scatter plot



         $ gnuplot
        gnuplot> plot 'mynumbers.dat'


        This will produce the following image



        enter image description here



        It seems like this question must already have an answer somewhere in SE
        though?






        share|improve this answer












        The simplest way to do this is to paste numbers into a
        file using an editor e.g.



         $ vi mynumbers.dat


        and then start gnuplot and make a scatter plot



         $ gnuplot
        gnuplot> plot 'mynumbers.dat'


        This will produce the following image



        enter image description here



        It seems like this question must already have an answer somewhere in SE
        though?







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 27 '17 at 12:03









        Chris Hill

        3513




        3513



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f407269%2fplot-2d-graph-with-points-from-a-file%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay