Plotting Graph

November 21st, 2022
  1. You may use gnuplot to plot your simulation data into graph.
    • Here is an example. You can edit the graph.gp using emacs or your prefered editor.
    • Then compile it to generate an eps file using this command:
      • gnuplot graph.gp
    • This example teaches you how to use latex inside gnuplot. You may not need this advanced step.
    • Install gnuplot in Mac: brew install gnuplot
  2. Alternatively, you may also try GLE for plotting graphs. You can use GLE at lyceum:
    • First log into lyceum2 using -X: ssh -X lyceum2.soton.ac.uk
    • When you are in lyceum, type in the command: module load gle
    • Now you can generate gle plots (.eps format) using this command like:
      • gle awgn-capacity-mqam.gle
    • View them using ‘evince’ command as detailed below.
  3. You can use ‘evince’ to view .eps or .ps file in lyceum:
    • evince graph.eps
  4. Alternatively, you can convert .eps file to .pdf file and then view the .pdf file using acroread:
    • epstopdf graph.eps
    • acroread graph.pdf
  5. You can print multiple gle plots (.eps) into one A4 page using this scripts.
Comments are closed.