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
0
votes
1 answer
Xmgrace delete specific row in dataset via batch file
I want to delete the first row of dataset. I tried through Commands window (Window>Commands) by typing any:
S0[2][0]
S0[1][0]
S0[1][1]
S0[1:2][1]
But I got errors:
[Error] syntax error: S0[2][0]
[Error] syntax error: S0[1][0]
[Error] syntax error:…

mspilsbury
- 36
- 6
0
votes
0 answers
Why is xmgrace ignoring my column of X data?
I've been a longtime user of xmgrace/grace, but today I'm stumped. I have a .dat file that is simply two columns of space-separated X Y data like I'm accustomed to plotting. But for some reason the program is only using the Y information and…

sh37211
- 1,411
- 1
- 17
- 39
0
votes
1 answer
Is it possible to change line width in xmgrace only in legend?
I want to change line width in xmgrace, but only in legends. I can change length in legends (Graph Appearance -> Legends -> Legend Line length), but not width. I can change the width of the line but it also changes line width not only in legends,…

Jakub
- 679
- 5
- 16
0
votes
1 answer
How to solve sudo: port: command not found (Big Sur)
I updated macOS Big Sur Version 11.2.3 that uses zsh. While installing openmotif to have Xmgrace after that I found this sudo: port: command not found. I dont know how to pass through.

Gerardo Martinez
- 21
- 1
- 2
0
votes
1 answer
How to draw a circle in Xmgrace
How to draw a circle in Xmgrace with center in (x,y) and diameter d? One way is to create sets from two functions. For example, -(1-x^2)^0.5 and (1-x^2)^0.5, but are there alternatives?

Quasímodo
- 3,812
- 14
- 25
0
votes
1 answer
Generating bar plots via xmgrace batch
I am using gracebat of xmgrace to generate images of bar graphs (based on xvg inputs) in batch mode:
gracebat input.xvg -hdevice PNG -nosafe -printfile output.png -hardcopy -batch grace.bfile
and here is my batch file
s0 line type 0
s0 type BAR
s0…
user8510929
0
votes
1 answer
Horizontal stack of legends in xmgrace figure
Is it possible to have a horizontal stack of legends in xmgrace, e.g., two rows and 3 columns?

sudipkd
- 1
- 1
0
votes
1 answer
rectangles on Grace plots
I have been using Grace (xmgrace) plotting for many years. I recently had an important idea for my work, and it involves rectangles on my plots. Grace supports rectangles (called "boxes"), but when I use a filled "box" it blocks my data curves. I…

Russ P.
- 47
- 5
0
votes
1 answer
Adding vertical line using "by function" not working in XMGrace
I have a large dataset of radius (y) v. time (x). I would like to add a vertical line at x = 1.656e12. When I add this using create new > by formula, I write:
"Stop at" =
"Length" = 1.656e12
"Set type" = "XY"
X =…

coalescedance
- 25
- 1
- 6
0
votes
1 answer
qtgrace/xmgrace non-overlaping data sets
I'm using qtgrace for MacOS and when I plotted two data in qtgrace I got something like this:
Overlapping data sets
However, I would like to plot something like this:
Non-overlapping data sets
My data 1:
0 14
0.1 6
0.2 14
…

Gabriela Lima
- 27
- 3
0
votes
1 answer
How to set a property for all sets in xmgrace in a single statement
Suppose I have file1.dat and file2.dat. I want to plot them and, for both sets, set the line-width of to 2 (for error-bars too) and the symbol to a circle. Currently, I invoke
xmgrace -batch batch.xmg
with this batch.xmg:
READ XYDY "file1.dat"
READ…

Quasímodo
- 3,812
- 14
- 25
0
votes
1 answer
How to add top x-axis in xmgrace?
I have plotted a graph with xmgrace, the x-values are in linear scale of nm (for wavelength). I want to add a top reciprocal x-axis in eV units.
The formula to transform nm to eV is:
I could not find a way to add another x-axis without adding a…

Avishai Barnoy
- 113
- 1
- 7
0
votes
1 answer
Can xmgrace produce 1D plots?
Is it possible to get in xmgrace a 1D plot, i.e., a line with an arrow in front of it, subdivided in labeled subregions by means of vertical bars?
Thank you for your attention!

lgotta
- 47
- 5
0
votes
1 answer
How to plot line in xmgrace using Bash or shell script
I want to plot a vertical dotted red line in particular point (say 2.2) in xmgrace using script

Narender Bansal
- 47
- 7
0
votes
1 answer
How to calculate area under the curve from logarithmic plot with xmgrace?
I have plotted my data on linear scale in xmgrace by using these numbers:
0.001 0
0.00589391 0.10
0.155206 0.20
0.294695 0.30
0.43222 0.40
0.436149 0.50
0.489194 0.60
0.611002 0.70
0.860511 0.80
0.939096 0.90
0.964637…

djordje
- 319
- 1
- 2
- 9