# Software to plot a log graph

I have to plot a graph with log distribution on y axis. The values are: 10^-3..10^3.

What software do you suggest me to use.

My OS is Ubuntu, so I prefer software for Linux.

Thanks.

## locked by whuber♦Oct 30 '15 at 21:47

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. See the help center for guidance on writing a good question.

In case you are using LaTeX for your report writing, the package pgfplots can read in data files and plot single or double logarithmic axis. In case you need to do calculations you can escape to gnuplot.

It just looks this tiny bit better if your text font matches your axis labels font.

• Indeed I use LaTeX. Also your approach avoids the pain of creating EPSs and importing them. – jutky Jul 5 '11 at 3:24

R takes some time to get used to, but here's a simple example ("#" indicates that a comment follows):

x <- rnorm(20)  # generate a sample of size 20 from N(0,1)
y <- 10^x  # define y_i = 10^(x_i) for each i=1,...,20
plot(x, y)  # plot y vs x
plot(x, y, log="y")  # plot y vs x with log scale for y


Edited after comment from @chl

• Please, give an example of use for semi-log plot in R to make your answer complete and acceptable. – chl Jul 4 '11 at 12:15

You could also use the open source plotting package Gnuplot for this task. The first section of a very readable tutorial here shows how to plot with a log scale.

For a quick and easy graph, you should give GraphCalc a try.

I would use DMelt software environment written in Java Most examples use Python scripting. Look at the class HPlot. It has a support for log scale on X and Y