<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">The following should help you with your
problem. I assume you have generated two agr files with Wien2k,
such as "case.bands.agr" and "case1.bands.agr".<br>
<br>
Both these files have a graph set of g0 specified throughout the
inside of the files, so the data in both files are combined in the
g0 data set. So you need to change the graph set in one of the
files to g1.<br>
<br>
You can use the simple perl script below to help you do just
that. In the directory with "case1.bands.agr" and
"renamegset.pl", run in a terminal:<br>
<br>
renamegset case1.bands.agr 1 >> caseg1.bands.agr <br>
<br>
(notice the output file has a "g" in it so that is doesn't
overwrite the original file)<br>
<br>
renamegset.pl<br>
----------------------------------<br>
#!/usr/bin/perl<br>
#<br>
# Renames Grace graph set numbers<br>
#<br>
# usage: renamegset file.agr graphnumber <br>
# <br>
# graphnumber is an integer 1,2,...<br>
#<br>
# output to stdout<br>
#<br>
# To redirect stdout to a file:<br>
# renamegset file.agr graphnumber >> outfile.agr<br>
<br>
#Opens file.agr<br>
open FILE, "<$ARGV[0]";<br>
<br>
#Searches file.agr<br>
while (<FILE>) {<br>
<br>
#Regular expression<br>
#For example, replaces g0 with g1<br>
#In general, replaces 0 with the given "graphnumber"<br>
s/([gG])([0-9]+)/g$ARGV[1]/g; <br>
<br>
#Prints new file.agr to the screen<br>
print $_;<br>
<br>
}<br>
<br>
#Closes file.agr<br>
close FILE;<br>
----------------------------------<br>
<br>
After creating "caseg1.bands.agr" with the g1 data set, the file
should be in the same directory as "case.bands.agr" and the batch
file "case.bfile". Then, the two graphs can be plotted together
vertically (above/below each other) by using in the terminal:<br>
<br>
xmgrace -batch case.bfile<br>
<br>
You can also modify the "case.bfile" if you want the graphs
horizontally (side by side) instead. The same procedure can be
extended to plot more than two graphs as well.<br>
<br>
case.bfile<br>
----------------------------------<br>
# Usage: xmgrace -batch case.bfile<br>
# Must run in directory with case.bands.agr and caseg1.bands.agr<br>
# Tested with Grace-5.1.22<br>
<br>
# Creates a panel of graphs (Example here for 2 rows and 1 column)<br>
arrange(2,1,0.01,0.5,0.5) <br>
<br>
# Selects panel graph 0<br>
FOCUS G0<br>
<br>
# Reads agr file for graph 0<br>
READ "case.bands.agr"<br>
<br>
# Sets the size and placement of graph 0<br>
VIEW 0.2,0.8,0.8,1.2<br>
<br>
# Selects panel graph 1<br>
FOCUS G1<br>
<br>
# Reads agr file for graph 1<br>
READ "caseg1.bands.agr"<br>
<br>
# Sets the size and placement of graph 1<br>
VIEW 0.2,0.1,0.8,0.5<br>
----------------------------------<br>
<br>
On 9/6/2012 10:11 AM, Masood Yousaf wrote:<br>
</div>
<blockquote
cite="mid:1346947881.80419.YahooMailNeo@web114518.mail.gq1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:times
new roman, new york, times, serif;font-size:12pt">
<div id="yiv1539665701">
<div>
<div
style="color:#000;background-color:#fff;font-family:times
new roman, new york, times, serif;font-size:12pt;">Respected
Wien2k Users<br>
<br>
This is my second email although the problem looks simple.
I tried to make 2 band gap plots adjacent (parallel) to
each other in xmgrace but when I try to insert the second
band gap plot in xmgrace in seperate graph(adjacent to 1st
plot), it does not appear. I tried several time with
different approaches but was not able to produce two band
gap plots adjacent to each other . Kindly guide how can I
over come this problem. <br
id="yiv1539665701yui_3_2_0_47_134691514596062">
<div id="yiv1539665701yui_3_2_0_47_134691514596072"><br>
</div>
<div id="yiv1539665701yui_3_2_0_47_134691514596068">Best
wishes<br>
Masood<br>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Wien mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Wien@zeus.theochem.tuwien.ac.at">Wien@zeus.theochem.tuwien.ac.at</a>
<a class="moz-txt-link-freetext" href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a>
</pre>
</blockquote>
<br>
</body>
</html>