gnuplot :Lecture: 2( Plot from a file)

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 พ.ย. 2024

ความคิดเห็น • 44

  • @PhysicsThroughComputation
    @PhysicsThroughComputation  3 ปีที่แล้ว

    Looping in Gnuplot : th-cam.com/video/NpdHgRHXLYU/w-d-xo.html
    Set ranges : th-cam.com/video/ZEUHCx8gKvI/w-d-xo.html

  • @daefin9993
    @daefin9993 ปีที่แล้ว

    thank you so much. i am working on a project where i have to plot some functions in c++ ( saving data to file and running commands through a different file), and your videos have helped a lot with this

  • @harekrishna456
    @harekrishna456 2 ปีที่แล้ว

    Amazing sir . Happy to learn.

    • @PhysicsThroughComputation
      @PhysicsThroughComputation  2 ปีที่แล้ว

      Thank you ... Please subscribe to my channel to support me. Please join my telegram group @PhysicsThroughComputation for any queries.

  • @sanjaytamang908
    @sanjaytamang908 3 ปีที่แล้ว +1

    Sir would you please send me the fortran code for rk4 method that u have done

    • @PhysicsThroughComputation
      @PhysicsThroughComputation  3 ปีที่แล้ว

      Thanks Sanjay for your comment. I have described the code in this video. Please watch it.
      th-cam.com/video/duCDUS5OBog/w-d-xo.html

  • @kresobetaorionis3400
    @kresobetaorionis3400 2 ปีที่แล้ว +1

    Hello. Is it possible to set thin but large curly braces in gnuplot?

    • @PhysicsThroughComputation
      @PhysicsThroughComputation  2 ปีที่แล้ว

      Do you want it as a label ?

    • @kresobetaorionis3400
      @kresobetaorionis3400 2 ปีที่แล้ว

      @@PhysicsThroughComputation I want to emphasize with it a part of an arrow.

    • @PhysicsThroughComputation
      @PhysicsThroughComputation  2 ปีที่แล้ว

      @@kresobetaorionis3400 I don't understand. Could you please post it in my telegram group Physics Through Computation in detail ? You can also post it in our facebook group as well. A hand-drawn picture showing what you want will be helpful for me to reproduce it in gnuplot.

    • @kresobetaorionis3400
      @kresobetaorionis3400 2 ปีที่แล้ว +1

      @@PhysicsThroughComputation Do You have an E-Mail address? I have neither telegram nor facebook.

    • @PhysicsThroughComputation
      @PhysicsThroughComputation  2 ปีที่แล้ว

      @@kresobetaorionis3400 Yes, go2souvik@gmail.com

  • @saurabhchandrakandpal5417
    @saurabhchandrakandpal5417 3 ปีที่แล้ว

    Excellent video.Keep it up

  • @idreeskhan1629
    @idreeskhan1629 4 ปีที่แล้ว +1

    nice video sir.how we can plot the exracted data from openFoam after simulation.i'm ploting but i'm getting an error like "gnuplot> plot "data30.csv" using 1:11
    warning: Skipping data file with no valid points
    ^
    x range is invalid"

    • @PhysicsThroughComputation
      @PhysicsThroughComputation  4 ปีที่แล้ว

      Thanks for commenting. Please subscribe to my channel.
      I think your data are separated by commas that's why the problem arises. 1st remove the commas from the data file using sed. In the terminal type
      sed 's/,/ /g' inputfile > output file.
      Thanks for watching.

    • @idreeskhan1629
      @idreeskhan1629 4 ปีที่แล้ว

      @@PhysicsThroughComputation thanks sir actually i save file in "csv" which in spread sheet so when i run plot command it gives me an error.

    • @PhysicsThroughComputation
      @PhysicsThroughComputation  4 ปีที่แล้ว

      Open your datafile with the help of an editor like gedit,notepad. Then see if ur data are separated by commas or not. If they are separated by commas then do what I said in the previous comment. If that doesn't work , comment few lines of the data file

  • @tanusrisantra7111
    @tanusrisantra7111 3 ปีที่แล้ว +2

    Voice is too low

    • @PhysicsThroughComputation
      @PhysicsThroughComputation  3 ปีที่แล้ว

      Thanks for raising the issue. I will figure it out shortly. Please subscribe to my youtube channel to support me. Thanks @Tanusri. Stay safe😊

  • @shreyanshshukla4939
    @shreyanshshukla4939 2 ปีที่แล้ว

    Really helpful thanks

  • @naveenkumar-rt5uj
    @naveenkumar-rt5uj 3 ปีที่แล้ว

    how to import .csv or excel file . I want to plot different excel data in a plot . thanks

    • @PhysicsThroughComputation
      @PhysicsThroughComputation  3 ปีที่แล้ว

      set datafile separator "',"
      p 'file.csv' u 1:2 w lp, 'file.csv' u 1:3 a lp
      Thanks

  • @randomvidoes
    @randomvidoes 4 ปีที่แล้ว +1

    Sound is low

    • @PhysicsThroughComputation
      @PhysicsThroughComputation  4 ปีที่แล้ว +1

      Sorry for the technical issue. I have fixed that issue in my other videos . Keep watching. If you are new to my channel please subscribe to my channel for computational stuffs.

  • @soumyaranjanpanda8865
    @soumyaranjanpanda8865 4 ปีที่แล้ว

    Sir, Can you provide this data file you are using.. ?I want to test..

    • @PhysicsThroughComputation
      @PhysicsThroughComputation  4 ปีที่แล้ว +1

      Thanks for commenting, Please subscribe to my channel to support me. Here is the data file
      1.0 0.03
      2.0 0.03
      3.0 0.03
      4.0 0.03
      5.0 0.03
      6.0 0.03
      6.5 0.03
      7.0 0.03
      7.1 0.03
      7.2 0.04
      7.3 0.04
      7.4 0.05
      7.5 0.06
      7.6 0.07
      7.7 0.10
      7.8 0.16
      7.9 0.28
      8.0 0.44
      8.1 0.58
      8.2 0.76
      8.3 1.13
      8.4 1.34
      8.5 1.68
      8.6 2.33
      8.7 2.63
      8.8 3.19
      8.9 3.45
      9.0 4.24
      9.1 4.44
      9.2 5.01
      9.3 5.16
      9.4 5.84
      9.5 6.08
      9.6 6.75
      9.7 7.18
      9.8 7.70
      9.9 8.12
      10.0 8.28
      10.1 8.64
      10.2 9.03
      10.3 9.61
      10.4 9.81
      10.5 10.27
      10.6 10.42
      10.7 10.63
      10.8 10.96
      10.9 11.38
      11.0 11.68
      11.1 11.97
      11.2 12.30
      11.3 12.48
      11.4 12.60
      11.5 12.99
      11.6 13.28
      11.7 13.34
      11.8 13.57
      11.9 13.85
      12.0 14.05
      12.1 14.21
      12.2 14.42
      12.3 14.56
      12.4 14.72
      12.5 14.94
      12.6 15.10
      12.7 15.29
      12.8 15.48
      12.9 15.64
      13.0 15.74
      13.1 15.89
      13.2 16.06
      13.3 16.15
      13.4 16.28
      13.5 16.51
      13.6 16.56
      13.7 16.72
      13.8 16.81
      13.9 16.87
      14.0 17.04
      14.1 17.18
      14.2 17.31
      14.3 17.35
      14.4 17.37
      14.5 17.50
      14.6 17.62
      14.7 17.67
      14.8 17.78
      14.9 17.88
      15.0 17.96
      15.1 18.08
      15.2 18.09
      15.3 18.22
      15.4 18.28
      15.5 18.35
      15.6 18.41
      15.7 18.43
      15.8 18.48
      15.9 18.53
      16.0 18.56
      16.1 18.60
      16.2 18.62
      16.3 18.65
      16.4 18.65
      16.5 18.66
      16.6 18.65
      16.7 18.64
      16.8 18.61
      16.9 18.57
      17.0 18.52
      17.1 18.47
      17.2 18.41
      17.3 18.33
      17.4 18.24
      17.5 18.18
      17.6 18.05
      17.8 17.86
      17.9 17.76
      18.0 17.57
      18.1 17.39
      18.2 17.20
      18.3 16.98
      18.4 16.79
      18.5 16.65
      18.6 16.45
      18.7 16.27
      18.8 16.09
      18.9 15.72
      19.0 15.51
      19.1 15.22
      19.2 15.01
      19.3 14.75
      19.4 14.57
      19.5 14.31
      19.6 14.08
      19.7 13.75
      19.8 13.51
      19.9 13.13
      20.0 12.88
      20.1 12.50
      20.2 12.25
      20.3 11.92
      20.4 11.69
      20.5 11.51
      20.6 11.22
      20.7 11.06
      20.8 10.74
      20.9 10.58
      21.0 10.40
      21.1 10.35
      21.2 10.25
      21.3 10.22
      21.4 10.20
      21.5 10.25
      21.6 10.29
      21.7 10.35
      21.8 10.48
      21.9 10.66
      22.0 10.79
      22.1 10.98
      22.2 11.20
      22.3 11.48
      22.4 11.69
      22.5 11.98
      22.6 12.25
      22.7 12.66
      22.8 12.92
      22.9 13.20
      23.0 13.52
      23.1 13.82
      23.2 14.32
      23.3 14.67
      23.4 15.01
      23.5 15.29
      23.6 15.60
      23.7 15.89
      23.8 16.37
      23.9 16.71
      24.0 16.93
      24.1 17.46
      24.2 17.56
      24.3 18.00
      24.4 18.41
      24.5 18.62
      24.6 18.88
      24.7 19.31
      24.8 19.60
      24.9 19.95
      25.0 20.4
      25.1 20.6
      25.2 21.1
      25.3 21.3
      25.4 21.6
      25.5 21.9
      25.6 22.1
      25.7 22.2
      25.8 22.5
      25.9 22.7
      26.0 22.9
      26.1 23.1
      26.2 23.3
      26.3 23.5
      26.4 23.6
      26.5 23.8
      26.6 23.9
      26.7 24.1
      26.8 24.2
      26.9 24.3
      27.0 24.4
      27.1 24.6
      27.2 24.6
      27.3 24.7
      27.4 24.8
      27.5 24.8
      27.6 24.8
      27.7 24.8
      27.8 24.8
      27.9 24.8
      28.0 24.7
      28.1 24.7
      28.2 24.7
      28.3 24.6
      28.4 24.5
      28.5 24.4
      28.6 24.3
      28.7 24.1
      28.8 24.0
      28.9 23.6
      29.0 23.5
      29.1 23.3
      29.2 23.0
      29.3 22.7
      29.4 22.4
      29.5 22.3
      29.6 21.9
      29.7 21.5
      29.8 21.3
      29.9 20.8
      30.0 20.5
      30.1 20.1
      30.2 19.44
      30.3 18.84
      30.4 18.25
      30.5 17.85
      30.6 17.35
      30.7 16.88
      30.8 16.52
      30.9 15.87
      31.0 15.61
      31.1 15.19
      31.2 14.33
      31.3 13.78
      31.4 13.38
      31.5 12.76
      31.6 12.35
      31.7 11.93
      31.8 11.49
      31.9 10.77
      32.0 10.21
      32.1 9.83
      32.2 9.62
      32.3 9.14
      32.4 8.87
      32.5 8.34
      32.6 8.14
      32.7 8.01
      32.8 7.78
      32.9 7.66
      33.0 7.56
      33.1 7.55
      33.2 7.58
      33.3 7.68
      33.4 7.91
      33.5 8.18
      33.6 8.53
      33.7 8.85
      33.8 9.14
      33.9 9.33
      34.0 9.77
      34.1 10.32
      34.2 10.79
      34.3 11.29
      34.4 11.86
      34.5 12.77
      34.6 13.26
      34.7 13.87
      34.8 14.38
      34.9 15.20
      35.0 15.52
      35.1 16.28
      35.2 17.08
      35.3 17.71
      35.4 18.72
      35.5 19.21
      35.6 19.91
      35.7 20.5
      35.8 20.9
      35.9 21.6
      36.0 22.4
      36.1 22.8
      36.2 23.4
      36.3 23.9
      36.4 24.6
      36.5 25.1
      36.6 25.8
      36.7 26.3
      36.8 26.8
      36.9 27.0
      37.0 27.5
      37.1 27.9
      37.2 28.2
      37.3 28.6
      37.4 28.8
      37.5 29.1
      37.6 29.5
      37.7 29.7
      37.8 30.0
      37.9 30.3
      38.0 30.4
      38.1 30.6
      38.2 30.8
      38.3 31.0
      38.4 31.2
      38.5 31.3
      38.6 31.3
      38.7 31.4
      38.8 31.5
      38.9 31.5
      39.0 31.6
      39.1 31.6
      39.2 31.6
      39.3 31.6
      39.4 31.5
      39.5 31.5
      39.6 31.4
      39.7 31.3
      39.8 31.2
      39.9 31.1
      40.0 30.9
      40.1 30.7
      40.2 30.6
      40.3 30.4
      40.4 30.1
      40.5 29.8
      40.6 29.6
      40.7 29.3
      40.8 29.0
      40.9 28.8
      41.0 28.3
      41.1 27.9
      41.2 27.5
      41.3 27.2
      41.4 26.7
      41.5 26.3
      41.6 25.7
      41.7 25.1
      41.8 24.7
      41.9 24.3
      42.0 23.5
      42.1 23.0
      42.2 22.5
      42.3 21.9
      42.4 21.1
      42.5 20.5
      42.6 19.36
      42.7 19.05
      42.8 18.15
      42.9 17.58
      43.0 16.95
      43.1 16.09
      43.2 15.63
      43.3 15.18
      43.4 14.50
      43.5 13.44
      43.6 13.05
      43.7 12.31
      43.8 11.42
      43.9 10.81
      44.0 10.52
      44.1 9.91
      44.2 9.37
      44.3 8.97
      44.4 8.63
      44.5 8.20
      44.6 8.04
      44.7 7.86
      44.8 7.78
      44.9 7.78
      45.0 7.82
      45.1 7.95
      45.2 8.14
      45.3 8.39
      45.4 8.62
      45.5 9.15
      45.6 9.53
      45.7 10.03
      45.8 10.56
      45.9 11.16
      46.0 11.88
      46.1 12.45
      46.2 13.08
      46.3 13.81
      46.4 14.88
      46.5 15.39
      46.6 16.63
      46.7 17.15
      46.8 17.98
      46.9 18.62
      47.0 19.34
      47.1 20.2
      47.2 21.5
      47.3 22.3
      47.4 23.0
      47.5 23.8
      47.6 24.5
      47.7 25.3
      47.8 25.9
      47.9 27.4
      48.0 27.8
      48.5 31.2
      49.0 33.7
      49.5 35.6
      50.0 37.1
      50.5 38.0
      51.0 38.2
      51.5 38.0
      51.6 37.9
      51.7 37.8
      52.0 37.3
      52.5 35.9
      53.0 34.1
      53.5 31.5
      54.0 29.0
      54.5 25.7
      55.0 22.0
      55.5 18.22
      56.0 15.17
      56.5 12.37
      57.0 11.55

  • @adeelahmedawan1079
    @adeelahmedawan1079 4 ปีที่แล้ว

    sir how can we generate eps file from gnuplot

    • @PhysicsThroughComputation
      @PhysicsThroughComputation  4 ปีที่แล้ว +1

      You can just open gnuplot and type
      set term eps
      set output 'plot.eps'
      plot anything
      It will create an EPS file .
      Thanks.. please Subscribe to my Channel. Like and share the videos. I always update lectures twice a week aleast.

    • @adeelahmedawan1079
      @adeelahmedawan1079 4 ปีที่แล้ว

      thnx alot...i have already sbs this...i will remain in touch with you..i m doing work on siesta code ..can you help me if i had some problelms

    • @PhysicsThroughComputation
      @PhysicsThroughComputation  4 ปีที่แล้ว +1

      @@adeelahmedawan1079 I wii try upload more useful lectures.
      Thanks for Subscribing..

  • @NanditaKar-z9j
    @NanditaKar-z9j 4 ปีที่แล้ว

    Thank u sir .... nicely explained...

    • @PhysicsThroughComputation
      @PhysicsThroughComputation  4 ปีที่แล้ว +1

      Welcome @Nandita Kar, Please Subscribe to my channel to support me. Like and Share and Comment on which topic you want me to make videos.:)

    • @NanditaKar-z9j
      @NanditaKar-z9j 4 ปีที่แล้ว

      Already Subscribed sir ...I need to understand the Fortran programming of eigen value equation by Jacobi method and Fortran programming of maximization and minimization of function using 1st derivative

    • @PhysicsThroughComputation
      @PhysicsThroughComputation  4 ปีที่แล้ว

      @@NanditaKar-z9j I will try to make videos on that. Thanks for the suggestion.

    • @NanditaKar-z9j
      @NanditaKar-z9j 4 ปีที่แล้ว

      Ok sir thank you

  • @shamontihaque4870
    @shamontihaque4870 4 ปีที่แล้ว

    How do I add xlabel and ylabel?

    • @PhysicsThroughComputation
      @PhysicsThroughComputation  4 ปีที่แล้ว +1

      1) open terminal
      2) type gnuplot and enter
      3) type
      set xlabel "write something"
      set ylabel " write something"
      I have made a lecture on this. Go though the gnuplot lec series. You will get know about many facts of gnuplot.
      Please do subscribe. Thanks for commenting. Stay tuned for more videos.

    • @shamontihaque4870
      @shamontihaque4870 4 ปีที่แล้ว

      @@PhysicsThroughComputation Thank you

  • @Poutoksereiseimaigw
    @Poutoksereiseimaigw 4 ปีที่แล้ว

    ΠΑΤΑ ΤΟ ΜΗΔΕΝ ΔΕΝ ΑΚΟΥΜΕ

  • @jonatanpaschoal7362
    @jonatanpaschoal7362 ปีที่แล้ว

    Feito