Grace (originally named Xmgrace) is a 2D plotting tool which allows you to interactively modify plots, to set all kind of plot parameters, change the appearance of your figure, and to save the figure in the format of your choice. It can also be scripted to automate the generation of plot images. Grace also includes many tools for data set analysis, including regression fitting, plotting of functions and data set manipulations.
Questions tagged [xmgrace]
85 questions
13
votes
2 answers
How do I plot certain columns using xmgrace in the terminal?
I want to write a bash script to automate the plotting of data, using a plotting tool called xmgrace, but I want to be able to select which columns are plotted.
Say in my data file I have 3 columns, with the x and y data in the 1st and 3rd columns.…

Eddy
- 6,661
- 21
- 58
- 71
7
votes
1 answer
How to I set the default startup window size for an X11 application (such as xmgrace)
I've been trying to run through the .Xresources method, with no success (see comment here from a related question)
So what do I need to modify to make sure my Xmgrace window is of a particular size? When I run xmgrace myplot.agr it always ends up…

PyKa
- 113
- 1
- 7
5
votes
0 answers
unable to open plot .xvg files using grace
I have been using Grace to plot the graphs obtained from my GROMACS simulations for a long time. However, now when I try opening the .xvg files, I get an error:
Raags-MBP:native tubulin energies Preetiwadhwa$ xmgrace potential.xvg
Warning:…

Raag Saluja
- 1,037
- 2
- 7
- 5
4
votes
3 answers
Add data sets with xmgrace
I use xmgrace to plot data sets and I would like to add two data sets together.
So I have two files:
data1
1 1
2 4
3 9
...
data2
1 2
2 3
3 4
...
I start xmgrace with
xmgrace data1 data2
Then I see both files plotted. Now I would like to generate…

thyme
- 388
- 5
- 18
4
votes
2 answers
How to make a special characters in xmgrace
How can I show special characters in xmgrace? I can't find a list of special symbols including the multiplication symbol or greek letters or the use of subscripts.

wiedzminYo
- 531
- 4
- 11
- 24
3
votes
2 answers
copy and paste the text in xmgrace
I have a graph in xmgrace (say, a graph of 10 different concentrations and hence 10 lines of different color), and I have typed some text corresponding to define what does each line represent. But now I have another similar graph and want to copy…

D.H.N
- 69
- 1
- 9
3
votes
3 answers
How to flip axis in xmgrace?
I have a graph and I just want to rotate it 90°, which could be accomplished if I could flip the x and y axis.
How can I do it? I have no experience in using xmgrace via terminal.

Quasímodo
- 3,812
- 14
- 25
3
votes
1 answer
Miscellaneous characters in xmgrace
xmgrace is wonderful, but it has some problems when dealing with miscellaneous characters.
How can I make the script small l ($\ell$ in latex) in xmgrace?

T. Jilali
- 31
- 1
3
votes
1 answer
Changing default settings in xmgrace
I am trying to change the default settings, such as the font of the axes' labels, in xmgrace.
I found many equivalent suggestions to do so online, for example the one in this blog:
open xmgrace, make the desired settings, save them…

valerio
- 677
- 4
- 12
- 25
3
votes
2 answers
Xmgrace: plot function of data
How can I plot a function of data with xmgrace?
Let's say I have a 3-columns file and I want to plot the sum of 2nd and 3rd column as a function of the 1st. With gnuplot, I can just do
p "file.dat" u 1:($2+$3)
How can I do the same thing with…

valerio
- 677
- 4
- 12
- 25
3
votes
2 answers
Xmgrace: plot all columns in multiple column file as a function of the first
I know that with xmgrace if I have a multiple column file I can plot a certain column as a function of another (say, 3 vs 1) with the command
xmgrace -block file.dat -bxy 1:3
If I want to plot 2vs1 and 3vs1 in the same window, I will simply use the…

valerio
- 677
- 4
- 12
- 25
3
votes
1 answer
Converting postscript to a4 format pdf
I'm trying to convert a .ps file made with xmgrace (it's a curve of data as you can guess) but when I convert using ImageMagick via the convert command or ps2pdf with the options -format a4 or -sPAPERSIZE=a4 I end up with the same problem.
Actually…

G.Clavier
- 216
- 2
- 7
3
votes
1 answer
how to use xmgrace to plot histogram from a plot
I have a text file (say, sample1.dat) with two columns:first column is a serial no running from 1 to 5000 and second column consists of 5000 dihedral angles varying in between -180 to 180 in degree. By using the command
xmgrace sample1.dat
I got…

Mahendra Thapa
- 163
- 2
- 4
- 12
3
votes
1 answer
How can I specify columns to plot on multiple files when using xmgrace?
I know that If I do:
xmgrace file1 file2 file2
There will be three sets of plots in different colors, and that if there are multiple columns in those files, the second the column will be plotted against the first.
What if I want plot the 3rd…

Zhangyi Hu
- 39
- 1
- 2
- 3
2
votes
2 answers
Display float axis labels with dots instead of commas
Is it possible to display the axis labels on a xmgrace plot as 0.5 instead of 0,5, which is what I get by default?
Thank you!

lgotta
- 47
- 5