Search code examples
gnuplot

Using a log scale on gnuplot


I am trying to change my scale on gnuplot. I had a file from which I am plotting the fifth and sixth columns, and I am trying to change the x axis to a log scale. I am using

set logscale <x> <2>

but it is saing that 'x' is an invalid axis. Is there a way to find out what the "name" of my 'x' axis is so that I can use this command?


Solution

  • From your question it's rather hard to see what you exactly want. Comment if this isn't what you're looking for. It sounds like you want to set the x axis to logscale base 2. It's done this way

    set logscale x 2
    

    In general, this is the command

    set logscale <axes> <base>