How to set axes in gnuplot

I am trying to create some schemes using gnuplot. My x scale has an angstrom and y scale if mV. Currently, my x scale is as follows:

0 1e-9 2e-9 3e-9 etc. 

And my y scale is like

 -0.07 -0.06 -0.05 etc. 

And I want them to be

 0 10 20 30 etc. -70.0 -60.0 -50.0 etc. 

respectively. Is there any way to do this from within gnuplot (other than setting the xrange yrange parameter and multiplying the values ​​by the corresponding amounts)?

+4
source share
1 answer

There are two ways I can think of:

  • You can use set xtics (see documentation here )
    Then you can explicitly indicate what value the label will receive on your axis. So something like this:

     set xtics ("0" 0, "10" 1e-9, "20" 2e-9, ...) 

    must work. Proceed accordingly with the y axis ( set ytics )

  • You can multiply your values ​​accordingly. (Like what you mentioned in your question)

     plot "Data.dat" u ($1*1e9):($2*1e2) 
+11
source

All Articles