Debian Codegraph @

doc/FAQ.html

raw
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2 <HTML>
3 <HEAD>
4 <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.69">
5 <TITLE>Grace FAQ (for Grace-5.1.23)</TITLE>
6 </HEAD>
7 <BODY>
8 <H1>Grace FAQ (for Grace-5.1.23)</H1>
9
10
11 <H2>by the Grace Team
12 </H2>12.06.2010
13
14 <HR>
15 <EM> This document contains Frequently Asked Questions (FAQ) about
16 <B>Grace</B>, a WYSIWYG 2D plotting tool for scientific data.
17 (A German translation of this document, made by Tobias Brinkert, is
18 available here:
19 <A HREF="http://www.semibyte.de/dokuwiki/informatik:linux:xmgrace:grace_faq">Grace FAQ</A>.)
20 </EM>
21 <HR>
22 <P>
23 <H2><A NAME="toc1">1.</A> <A HREF="FAQ.html#s1">General Questions </A></H2>
24
25 <UL>
26 <LI><A NAME="toc1.1">1.1</A> <A HREF="FAQ.html#ss1.1">What is Grace? </A>
27 <LI><A NAME="toc1.2">1.2</A> <A HREF="FAQ.html#ss1.2">Where can I get Grace? </A>
28 <LI><A NAME="toc1.3">1.3</A> <A HREF="FAQ.html#ss1.3">Where can I get the most recent information about Grace? </A>
29 <LI><A NAME="toc1.4">1.4</A> <A HREF="FAQ.html#ss1.4">What is the difference between Xmgr and Grace? </A>
30 <LI><A NAME="toc1.5">1.5</A> <A HREF="FAQ.html#ss1.5">Why did you change the name? </A>
31 <LI><A NAME="toc1.6">1.6</A> <A HREF="FAQ.html#ss1.6">Is Grace free? </A>
32 <LI><A NAME="toc1.7">1.7</A> <A HREF="FAQ.html#ss1.7">Who wrote Grace? </A>
33 <LI><A NAME="toc1.8">1.8</A> <A HREF="FAQ.html#ss1.8">Is there a Postscript|LaTeX|HTML|SGML version of this document? </A>
34 </UL>
35 <P>
36 <H2><A NAME="toc2">2.</A> <A HREF="FAQ.html#s2">Getting Help </A></H2>
37
38 <UL>
39 <LI><A NAME="toc2.1">2.1</A> <A HREF="FAQ.html#ss2.1">Are there any books about Grace? </A>
40 <LI><A NAME="toc2.2">2.2</A> <A HREF="FAQ.html#ss2.2">Is there a User's Guide available for Grace? </A>
41 <LI><A NAME="toc2.3">2.3</A> <A HREF="FAQ.html#ss2.3">Is there a Tutorial available for Grace? </A>
42 <LI><A NAME="toc2.4">2.4</A> <A HREF="FAQ.html#ss2.4">Where do I get support for Grace? </A>
43 <LI><A NAME="toc2.5">2.5</A> <A HREF="FAQ.html#ss2.5">Is there a newsgroup devoted to Grace? </A>
44 <LI><A NAME="toc2.6">2.6</A> <A HREF="FAQ.html#ss2.6">Is there a mailing list for Grace? </A>
45 <LI><A NAME="toc2.7">2.7</A> <A HREF="FAQ.html#ss2.7">Is there a forum for Grace? </A>
46 </UL>
47 <P>
48 <H2><A NAME="toc3">3.</A> <A HREF="FAQ.html#s3">Providing Help: Finding and Reporting Bugs </A></H2>
49
50 <UL>
51 <LI><A NAME="toc3.1">3.1</A> <A HREF="FAQ.html#ss3.1">I think I found a bug in Grace! How do I report it? </A>
52 <LI><A NAME="toc3.2">3.2</A> <A HREF="FAQ.html#ss3.2">Is there a list of known bugs? </A>
53 <LI><A NAME="toc3.3">3.3</A> <A HREF="FAQ.html#ss3.3">The bug report #xxx is marked as "Fixed" in the w3todo, but I checked the last version of Grace and the bug is still there! </A>
54 <LI><A NAME="toc3.4">3.4</A> <A HREF="FAQ.html#ss3.4">The bug report #xxx I reported is marked as "Ignored" in the w3todo and I even got no reply?! </A>
55 <LI><A NAME="toc3.5">3.5</A> <A HREF="FAQ.html#ss3.5">I have got an idea! How do I report a wish? </A>
56 <LI><A NAME="toc3.6">3.6</A> <A HREF="FAQ.html#ss3.6">I want to help! How can I contribute to Grace? </A>
57 <LI><A NAME="toc3.7">3.7</A> <A HREF="FAQ.html#ss3.7">How do I submit patches/contributions? </A>
58 <LI><A NAME="toc3.8">3.8</A> <A HREF="FAQ.html#ss3.8">I like Grace! Should I donate anything to its authors? </A>
59 </UL>
60 <P>
61 <H2><A NAME="toc4">4.</A> <A HREF="FAQ.html#s4">Installation </A></H2>
62
63 <UL>
64 <LI><A NAME="toc4.1">4.1</A> <A HREF="FAQ.html#ss4.1">How do I install Grace? </A>
65 <LI><A NAME="toc4.2">4.2</A> <A HREF="FAQ.html#ss4.2">Can I compile Grace myself? </A>
66 <LI><A NAME="toc4.3">4.3</A> <A HREF="FAQ.html#ss4.3">When I run `configure', it says the XXX package is not found, whereas I am certain it was installed on my system! </A>
67 <LI><A NAME="toc4.4">4.4</A> <A HREF="FAQ.html#ss4.4">When I type './configure' I get: ``configure: error M*tif has not been found'' </A>
68 <LI><A NAME="toc4.5">4.5</A> <A HREF="FAQ.html#ss4.5">What is Motif (LessTif)? </A>
69 <LI><A NAME="toc4.6">4.6</A> <A HREF="FAQ.html#ss4.6">`configure' stops telling it can't find "ar". </A>
70 <LI><A NAME="toc4.7">4.7</A> <A HREF="FAQ.html#ss4.7">Are there Grace binaries available? For which platforms? </A>
71 <LI><A NAME="toc4.8">4.8</A> <A HREF="FAQ.html#ss4.8">Is there a Windows|OS/2|VMS port of Grace? </A>
72 <LI><A NAME="toc4.9">4.9</A> <A HREF="FAQ.html#ss4.9">Compilation with gcc fails on Solaris complaining about unresolved symbols. </A>
73 </UL>
74 <P>
75 <H2><A NAME="toc5">5.</A> <A HREF="FAQ.html#s5">Runtime Problems </A></H2>
76
77 <UL>
78 <LI><A NAME="toc5.1">5.1</A> <A HREF="FAQ.html#ss5.1">When I start Grace I get the message ``Can't find library libXXX.so'' or similar. </A>
79 <LI><A NAME="toc5.2">5.2</A> <A HREF="FAQ.html#ss5.2">I get errors like "X Error of failed request: BadValue (integer parameter out of range for operation)" </A>
80 <LI><A NAME="toc5.3">5.3</A> <A HREF="FAQ.html#ss5.3">Grace crashes with "Oops Got SIGSEV" (on GNU/Linux) </A>
81 <LI><A NAME="toc5.4">5.4</A> <A HREF="FAQ.html#ss5.4">I run Grace and get the following error messages: "Warning: translation table syntax error: Unknown keysym name: osfPageLeft Warning: ... found while parsing '&lt;Key>osfPageLeft:SWLeftPage()'" </A>
82 <LI><A NAME="toc5.5">5.5</A> <A HREF="FAQ.html#ss5.5">I run Grace on a Solaris 2.5.1 box, and when I try to open a file, I can't read the names of the files (files section of the dialog) because Grace writes ALL the path of each file in the list and there is no horizontal scroll. </A>
83 <LI><A NAME="toc5.6">5.6</A> <A HREF="FAQ.html#ss5.6">Grace can not find font database and initialize the T1 library </A>
84 <LI><A NAME="toc5.7">5.7</A> <A HREF="FAQ.html#ss5.7">Pressing Ctrl and clicking with the left mouse button on the canvas or dialog panels make Grace crash. </A>
85 <LI><A NAME="toc5.8">5.8</A> <A HREF="FAQ.html#ss5.8">The size of the canvas is huge. </A>
86 <LI><A NAME="toc5.9">5.9</A> <A HREF="FAQ.html#ss5.9">Extended ASCII characters do not appear and/or appear as incorrect control characters in text input fields. </A>
87 <LI><A NAME="toc5.10">5.10</A> <A HREF="FAQ.html#ss5.10">File selection dialogs are unusable. </A>
88 <LI><A NAME="toc5.11">5.11</A> <A HREF="FAQ.html#ss5.11">All of the text in the menus and dialog boxes are represented as squares. </A>
89 <LI><A NAME="toc5.12">5.12</A> <A HREF="FAQ.html#ss5.12">On Fedora Core 4, all set selectors collapse into a single of even a zero-height line after a few operations. </A>
90 </UL>
91 <P>
92 <H2><A NAME="toc6">6.</A> <A HREF="FAQ.html#s6">Basic Concepts </A></H2>
93
94 <UL>
95 <LI><A NAME="toc6.1">6.1</A> <A HREF="FAQ.html#ss6.1">What is a project? </A>
96 <LI><A NAME="toc6.2">6.2</A> <A HREF="FAQ.html#ss6.2">What is a parameter file? </A>
97 <LI><A NAME="toc6.3">6.3</A> <A HREF="FAQ.html#ss6.3">Which data formats does Grace recognize? </A>
98 <LI><A NAME="toc6.4">6.4</A> <A HREF="FAQ.html#ss6.4">What is block data? </A>
99 <LI><A NAME="toc6.5">6.5</A> <A HREF="FAQ.html#ss6.5">What is the NXY data type? </A>
100 <LI><A NAME="toc6.6">6.6</A> <A HREF="FAQ.html#ss6.6">What is the Julian Date?</A>
101 </UL>
102 <P>
103 <H2><A NAME="toc7">7.</A> <A HREF="FAQ.html#s7">Using Grace </A></H2>
104
105 <UL>
106 <LI><A NAME="toc7.1">7.1</A> <A HREF="FAQ.html#ss7.1">How do I start Grace? </A>
107 <LI><A NAME="toc7.2">7.2</A> <A HREF="FAQ.html#ss7.2">Where is gracebat? How does batch printing work? </A>
108 <LI><A NAME="toc7.3">7.3</A> <A HREF="FAQ.html#ss7.3">How can I customize the default appearance of Grace? </A>
109 <LI><A NAME="toc7.4">7.4</A> <A HREF="FAQ.html#ss7.4">Which environment variables does Grace use? </A>
110 <LI><A NAME="toc7.5">7.5</A> <A HREF="FAQ.html#ss7.5">What command line options does Grace recognize? </A>
111 <LI><A NAME="toc7.6">7.6</A> <A HREF="FAQ.html#ss7.6">Can one change the colour selecton for the menu, locator, tool, and status bars, and all the popup menus? </A>
112 <LI><A NAME="toc7.7">7.7</A> <A HREF="FAQ.html#ss7.7">What different kinds of sets can Grace plot? </A>
113 <LI><A NAME="toc7.8">7.8</A> <A HREF="FAQ.html#ss7.8">I'd like to plot data against an axis on the right (top) and another data set in a different scale against an axis on the left (bottom) </A>
114 <LI><A NAME="toc7.9">7.9</A> <A HREF="FAQ.html#ss7.9">How do I do polar plots? </A>
115 <LI><A NAME="toc7.10">7.10</A> <A HREF="FAQ.html#ss7.10">Can I use different fonts, symbols, font size, or sub/superscripts in Grace? </A>
116 <LI><A NAME="toc7.11">7.11</A> <A HREF="FAQ.html#ss7.11">How do I produce special characters (Umlauts) with Grace? </A>
117 <LI><A NAME="toc7.12">7.12</A> <A HREF="FAQ.html#ss7.12">Can I use my own fonts and/or encodings? </A>
118 <LI><A NAME="toc7.13">7.13</A> <A HREF="FAQ.html#ss7.13">At which precision is numerical data saved? How can I set the precision? </A>
119 <LI><A NAME="toc7.14">7.14</A> <A HREF="FAQ.html#ss7.14">When I save a project and then re-open it, the Julian date values appear to be rounded to the nearest half day. </A>
120 <LI><A NAME="toc7.15">7.15</A> <A HREF="FAQ.html#ss7.15">How do I read in project files created by Xmgr? </A>
121 <LI><A NAME="toc7.16">7.16</A> <A HREF="FAQ.html#ss7.16">I can't open anymore project files saved with an old version of Xmgr. </A>
122 <LI><A NAME="toc7.17">7.17</A> <A HREF="FAQ.html#ss7.17">When I load a project saved with an earlier version of Xmgr (&lt;4.0), symbols of all (some) sets are drawn in black. </A>
123 <LI><A NAME="toc7.18">7.18</A> <A HREF="FAQ.html#ss7.18">How do I save disk space? Can I use compressed project files? </A>
124 <LI><A NAME="toc7.19">7.19</A> <A HREF="FAQ.html#ss7.19">Can I import bitmap graphics into Grace? </A>
125 <LI><A NAME="toc7.20">7.20</A> <A HREF="FAQ.html#ss7.20">Can I export Grace graphs to GIF|TIFF| PostScript|PDF etc? </A>
126 <LI><A NAME="toc7.21">7.21</A> <A HREF="FAQ.html#ss7.21">Where have all the region operations gone to? </A>
127 <LI><A NAME="toc7.22">7.22</A> <A HREF="FAQ.html#ss7.22">How can I input data in date/time formats? </A>
128 <LI><A NAME="toc7.23">7.23</A> <A HREF="FAQ.html#ss7.23">How do I set the background color of a plot, outside of the graph frame? </A>
129 <LI><A NAME="toc7.24">7.24</A> <A HREF="FAQ.html#ss7.24">How do I use more than 16 colors for objects/lines in Grace? </A>
130 <LI><A NAME="toc7.25">7.25</A> <A HREF="FAQ.html#ss7.25">How can I use pipes with Grace? </A>
131 <LI><A NAME="toc7.26">7.26</A> <A HREF="FAQ.html#ss7.26">Is it possible to make Grace starting with a completely empty canvas, until the commands are loaded and executed? </A>
132 <LI><A NAME="toc7.27">7.27</A> <A HREF="FAQ.html#ss7.27">When I include an EPS file generated by Grace into my (La)TeX document, the graphic hides some of the surrounding text. </A>
133 <LI><A NAME="toc7.28">7.28</A> <A HREF="FAQ.html#ss7.28">Printing to my old PostScript printer produces an error. </A>
134 <LI><A NAME="toc7.29">7.29</A> <A HREF="FAQ.html#ss7.29">How do I make a Grace image fit on a given paper size? </A>
135 <LI><A NAME="toc7.30">7.30</A> <A HREF="FAQ.html#ss7.30">My decimal tick labels are systematically of the form e.g. 0,5 instead of 0.5 (i.e. I get a comma instead of a dot). </A>
136 <LI><A NAME="toc7.31">7.31</A> <A HREF="FAQ.html#ss7.31">Is it possible to use the dB (decibel) axis scale? </A>
137 <LI><A NAME="toc7.32">7.32</A> <A HREF="FAQ.html#ss7.32">In "Data set properties", I don't see a possibility to view the more essential part of the mantissa; it's swallowed in the black triangle. </A>
138 <LI><A NAME="toc7.33">7.33</A> <A HREF="FAQ.html#ss7.33">When making use of <I>-param</I> via the command line to set the parameters, the world scaling is not correctly set (it just auto-scales). </A>
139 <LI><A NAME="toc7.34">7.34</A> <A HREF="FAQ.html#ss7.34">I am unable to find "Load &amp; Evaluate" which I used quite a lot with Xmgr. </A>
140 <LI><A NAME="toc7.35">7.35</A> <A HREF="FAQ.html#ss7.35">How can I specify a template other than the default one on the command line? In the scripts? </A>
141 <LI><A NAME="toc7.36">7.36</A> <A HREF="FAQ.html#ss7.36">How can I save my 'preferences' options? </A>
142 <LI><A NAME="toc7.37">7.37</A> <A HREF="FAQ.html#ss7.37">In an XY-plot with a huge number of points some regions become straight lines instead of the original curve. When I zoom in to the area the data becomes correctly drawn. </A>
143 </UL>
144 <P>
145 <H2><A NAME="toc8">8.</A> <A HREF="FAQ.html#s8">Mathematics </A></H2>
146
147 <UL>
148 <LI><A NAME="toc8.1">8.1</A> <A HREF="FAQ.html#ss8.1">What algorithm is used for non-linear curve fitting? </A>
149 </UL>
150 <P>
151 <H2><A NAME="toc9">9.</A> <A HREF="FAQ.html#s9">Command Line Interface </A></H2>
152
153 <UL>
154 <LI><A NAME="toc9.1">9.1</A> <A HREF="FAQ.html#ss9.1">Which non-interactive batch commands does Grace know? </A>
155 <LI><A NAME="toc9.2">9.2</A> <A HREF="FAQ.html#ss9.2">How can I do feature extraction non-interactively? </A>
156 <LI><A NAME="toc9.3">9.3</A> <A HREF="FAQ.html#ss9.3">How can I use non-linear fits in the batch mode? </A>
157 <LI><A NAME="toc9.4">9.4</A> <A HREF="FAQ.html#ss9.4">Is it possible to call the command "POINT expr, expr" with more than two values, as needed, for example, for points in XYDYDY sets? </A>
158 </UL>
159 <P>
160 <H2><A NAME="toc10">10.</A> <A HREF="FAQ.html#s10">Miscellaneous </A></H2>
161
162 <UL>
163 <LI><A NAME="toc10.1">10.1</A> <A HREF="FAQ.html#ss10.1">Does Grace have an UNDO function? </A>
164 <LI><A NAME="toc10.2">10.2</A> <A HREF="FAQ.html#ss10.2">Can Grace plot 3D graphs? </A>
165 <LI><A NAME="toc10.3">10.3</A> <A HREF="FAQ.html#ss10.3">Which features are planned for the future? </A>
166 <LI><A NAME="toc10.4">10.4</A> <A HREF="FAQ.html#ss10.4">Are there things that Grace can't do? </A>
167 <LI><A NAME="toc10.5">10.5</A> <A HREF="FAQ.html#ss10.5">How should Grace be acknowledged when it is used to prepare a publication? </A>
168 </UL>
169
170 <HR>
171 <H2><A NAME="s1">1.</A> <A HREF="#toc1">General Questions </A></H2>
172
173
174
175 <H2><A NAME="ss1.1">1.1</A> <A HREF="#toc1.1">What is Grace? </A>
176 </H2>
177
178
179 <P>Grace is a tool to make two-dimensional plots of numerical
180 data. It runs under various (if not all) flavours of UNIX
181 with X11 and M*tif. Its capabilities are roughly similar to
182 GUI-based programs like Sigmaplot or Microcal Origin plus
183 script-based tools like gnuplot or Genplot. Its strength
184 lies in the fact that it combines the convenience of a
185 graphical user interface with the power of a scripting
186 language which enables it to do sophisticated calculations
187 or perform automated tasks.</P>
188 <P>Grace is derived from Xmgr (a.k.a. ACE/gr), originally
189 written by Paul Turner.</P>
190 <P>From version number 4.00, the development was taken over by
191 a team of volunteers under the coordination of Evgeny Stambulchik.</P>
192 <P>When its copyright was changed to GPL, the name was changed to Grace,
193 which stands for ``GRaphing, Advanced Computation and Exploration of
194 data'' or ``Grace Revamps ACE/gr''. The first version of Grace
195 available is named 5.0.0, while the last public version of Xmgr has
196 the version number 4.1.2.</P>
197 <P>Paul still maintains and develops a non-public version of
198 Xmgr for internal use.</P>
199
200 <H2><A NAME="ss1.2">1.2</A> <A HREF="#toc1.2">Where can I get Grace? </A>
201 </H2>
202
203
204 <P>You can get the newest information about Grace and download
205 the latest version at the
206 <A HREF="http://plasma-gate.weizmann.ac.il/Grace/">Grace home page</A>.</P>
207 <P>You can fetch it from a mirror site as well. The list of
208 mirror sites can be found at
209 <A HREF="ftp://plasma-gate.weizmann.ac.il/pub/grace/MIRRORS">ftp://plasma-gate.weizmann.ac.il/pub/grace/MIRRORS</A>.</P>
210
211 <H2><A NAME="homepage"></A> <A NAME="ss1.3">1.3</A> <A HREF="#toc1.3">Where can I get the most recent information about Grace? </A>
212 </H2>
213
214
215 <P>Please refer to the
216 <A HREF="http://plasma-gate.weizmann.ac.il/Grace/">official Grace Home Page</A>. There you
217 can also find the latest version of this FAQ, links to the
218 latest release and to mirror sites closer to you.</P>
219
220 <H2><A NAME="ss1.4">1.4</A> <A HREF="#toc1.4">What is the difference between Xmgr and Grace? </A>
221 </H2>
222
223
224 <P>Apart from the licensing, the main difference is that Grace is
225 WYSIWYG (What You See Is What You Get). This was achieved through a
226 major rewrite of all the mid-level drawing routines and the use of
227 the device-independent Type 1 font rendering library T1lib for
228 typesetting.</P>
229 <P>For help with changing from Xmgr to Grace see section
230 <CODE>Xmgr to Grace migration guide</CODE> in the
231 User's Guide (question
232 <A HREF="#manual">User's Guide</A>.</P>
233 <P>There are currently several features of Xmgr which are not yet
234 implemented in Grace (of course, alongside with a lot of new stuff
235 not found in Xmgr). A full compatibility is desirable except for
236 ``bad'' features of Xmgr.</P>
237
238 <P>Among the Xmgr features not (yet) implemented in Grace are:</P>
239 <P>
240 <UL>
241 <LI>X-Y graph flip
242 </LI>
243 <LI>Horizontal and vertical lines as symbols
244 </LI>
245 <LI>Smith plots
246 </LI>
247 </UL>
248 </P>
249
250 <H2><A NAME="ss1.5">1.5</A> <A HREF="#toc1.5">Why did you change the name? </A>
251 </H2>
252
253
254 <P>When the licensing was changed to GPL, Paul wanted to keep
255 the name for his non-public version of Xmgr, so we chose a
256 new name.</P>
257
258 <H2><A NAME="ss1.6">1.6</A> <A HREF="#toc1.6">Is Grace free? </A>
259 </H2>
260
261
262 <P>Yes. Grace is free in terms of the GNU General Public
263 License (GPL) (see the file <CODE>LICENSE</CODE> which comes with
264 Grace or the
265 <A HREF="http://www.gnu.org">GNU Home Page</A> for details).</P>
266
267 <H2><A NAME="ss1.7">1.7</A> <A HREF="#toc1.7">Who wrote Grace? </A>
268 </H2>
269
270
271 <P>The sources of Grace still contain a significant amount of code from
272 Xmgr by Paul Turner. For a list of those who contributed to Grace
273 since then, see the file <CODE>CHANGES</CODE> in the Grace distribution.</P>
274
275 <P>Some integral parts of Grace are borrowed from other
276 packages, namely libraries which are also available
277 as stand-alone distributions.
278 In alphabetical order:</P>
279 <P>
280 <UL>
281 <LI>
282 <A HREF="http://www.moshier.net/">Cephes math library</A>
283 </LI>
284 <LI>
285 <A HREF="http://metalab.unc.edu/pub/Linux/libs/graphics/">T1lib</A>
286 </LI>
287 <LI>
288 <A HREF="http://www.lesstif.org/Xbae.html">Xbae</A>
289 </LI>
290 </UL>
291 </P>
292
293 <H2><A NAME="ss1.8">1.8</A> <A HREF="#toc1.8">Is there a Postscript|LaTeX|HTML|SGML version of this document? </A>
294 </H2>
295
296
297 <P>Yes. It is written in SGML which means that all the above
298 versions can easily be created using <CODE>sgml-tools</CODE> (see
299 their
300 <A HREF="http://www.sgmltools.org/">home page</A>).
301 At the Grace home page
302 (see question
303 <A HREF="#homepage">Home Page</A>), all
304 these versions are available.</P>
305
306
307 <H2><A NAME="s2">2.</A> <A HREF="#toc2">Getting Help </A></H2>
308
309
310
311 <H2><A NAME="ss2.1">2.1</A> <A HREF="#toc2.1">Are there any books about Grace? </A>
312 </H2>
313
314
315 <P>As of now, Grace is a purely virtual creature living in the net,
316 i.e. there is no printed literature. All relevant docs are currently
317 bundled with Grace. See questions
318 <A HREF="#homepage">Home Page</A> and
319 <A HREF="#manual">User's Guide</A> for details. You can
320 print your own copy of the FAQ, the User's Guide and the Tutorial by
321 converting the DVI files to PostScript output.</P>
322
323 <H2><A NAME="manual"></A> <A NAME="ss2.2">2.2</A> <A HREF="#toc2.2">Is there a User's Guide available for Grace? </A>
324 </H2>
325
326
327 <P>Yes. It is part of the Grace distribution and usually is
328 located in <CODE>$GRACE_HOME/doc/</CODE>. There are several
329 versions: the SGML source and HTML, LaTeX, DVI and PS
330 derived from it. You can read the HTML version from a
331 running Grace session by clicking on <CODE>"Help/User
332 Guide"</CODE>. You need a web browser to read the HTML version
333 (see also question
334 <A HREF="#environment">Environment Variables</A>). You can always download the newest version
335 from the Grace homepage (see question
336 <A HREF="#homepage">Home Page</A>).</P>
337 <P>The User's Guide is not quite complete, yet.</P>
338
339 <H2><A NAME="tutorial"></A> <A NAME="ss2.3">2.3</A> <A HREF="#toc2.3">Is there a Tutorial available for Grace? </A>
340 </H2>
341
342
343 <P>Yes. There are several tutorials which give detailed
344 step-by-step information how to achieve various tasks. They
345 are also part of the Grace distribution. You can find them
346 in <CODE>$GRACE_HOME/doc/</CODE>.</P>
347 <P>There are tutorials about creating a simple plot, batch
348 plotting, fitting curves, transformations (graphical -
349 simple ones, interpolation, feature extraction, using the
350 command line), using pipes, overlaying graphs, hot links.</P>
351
352 <H2><A NAME="support"></A> <A NAME="ss2.4">2.4</A> <A HREF="#toc2.4">Where do I get support for Grace? </A>
353 </H2>
354
355
356 <P>You have the following options:</P>
357 <P>
358 <UL>
359 <LI>There is a User's Guide (see question
360 <A HREF="#manual">User's Guide</A>) which came with Grace on your
361 computer. It is usually located in
362 <CODE>$GRACE_HOME/doc/</CODE> along with other files which
363 may contain useful help for your problem. If you
364 downloaded the sources, there are even more files in
365 the main directory of the source tree.
366 </LI>
367 <LI>Have a look at the Grace home page (question
368 <A HREF="#homepage">Home Page</A>).
369 </LI>
370 <LI>On the Grace forums (see question
371 <A HREF="#forums">Forums</A> for details)
372 you can easily get in contact with users and
373 developers of Grace. However be aware that people
374 here are trying to help in their spare time -
375 so you can't always expect quick responses.
376 </LI>
377 </UL>
378 </P>
379
380 <H2><A NAME="ss2.5">2.5</A> <A HREF="#toc2.5">Is there a newsgroup devoted to Grace? </A>
381 </H2>
382
383
384 <P>No, there isn't. We feel that a bulletin board (see question
385 <A HREF="#forums">Forums</A>) is more
386 appropriate to discuss the topics related to Grace.</P>
387
388 <H2><A NAME="ss2.6">2.6</A> <A HREF="#toc2.6">Is there a mailing list for Grace? </A>
389 </H2>
390
391
392 <P>There used to be a few, but now they are replaced with
393 bulletin-board-style forums (see question
394 <A HREF="#forums">Forums</A>).</P>
395 <P>The
396 <A HREF="http://plasma-gate.weizmann.ac.il/Grace/maillists/grace/">mailing list archives</A> are
397 still available for browsing.</P>
398
399 <H2><A NAME="forums"></A> <A NAME="ss2.7">2.7</A> <A HREF="#toc2.7">Is there a forum for Grace? </A>
400 </H2>
401
402
403 <P>Yes. Just follow this link:
404 <A HREF="http://plasma-gate.weizmann.ac.il/Grace/phpbb/">forums</A>. It has its
405 own FAQ.</P>
406
407
408 <H2><A NAME="s3">3.</A> <A HREF="#toc3">Providing Help: Finding and Reporting Bugs </A></H2>
409
410
411
412 <H2><A NAME="bugreport"></A> <A NAME="ss3.1">3.1</A> <A HREF="#toc3.1">I think I found a bug in Grace! How do I report it? </A>
413 </H2>
414
415
416 <P>
417 <DL>
418
419 <DT><B>First</B><DD>
420 <P>Make sure that what you found really is a bug.</P>
421
422 <DT><B>Second</B><DD>
423 <P>Try to make sure that it is a bug in Grace,
424 and that the failure is not caused by another piece of
425 software.</P>
426
427 <DT><B>Third</B><DD>
428 <P>Make sure you are running the latest official
429 release of Grace. The development of Grace is
430 rather fast, so your bug might already be fixed.</P>
431
432 <DT><B>Fourth</B><DD>
433 <P>Try to find out if the bug is already known
434 (see question
435 <A HREF="#w3todo">Known Bugs</A>).</P>
436
437 <DT><B>Fifth</B><DD>
438 <P>OK: You <EM>have</EM> found a new bug. Use
439 <B>w3todo</B> (question
440 <A HREF="#w3todo">Known Bugs</A>) to report it. Follow the instructions on the
441 page and try to be as precise as possible. It won't be of
442 much help if you write ``The program crashes.'' Try to
443 find a simple reproducible case. Mention the version of
444 Grace and where you got the build and the operating system
445 you use. You should submit the system info as provided by
446 ``uname -a'' (if this utility exists, of course) and the output
447 of ``xmgrace -version''. Often the problem is related to
448 some specific data set. Please try hard on reducing this
449 to the minimum which is sufficient of reproducing the
450 bug. If it's only a few lines of data please submit
451 it together with the other details.
452 Once you submit the bug report, it will be automatically
453 relayed to the mailing list. You will usually be notified when
454 the bug is fixed or if we need more information, so please
455 don't forget to give your correct e-mail address.</P>
456
457 </DL>
458 </P>
459
460 <H2><A NAME="w3todo"></A> <A NAME="ss3.2">3.2</A> <A HREF="#toc3.2">Is there a list of known bugs? </A>
461 </H2>
462
463
464 <P>Yes. You can search and browse the database of known bugs in
465 Grace at the bug report facility
466 <A HREF="http://plasma-gate.weizmann.ac.il/w3todo/index.phtml">w3todo</A>
467 or using the <CODE>"Help/Comments"</CODE> menu from within
468 Grace. The database also keeps track of the status of the
469 bug (<CODE>Confirmed, Working on, Testing, Fixed, Closed,</CODE>
470 etc.). This is also the place to submit bug reports and
471 wishes.</P>
472 <P>Some bugs and fixes may not appear in w3todo, but are
473 covered on the
474 <A HREF="#forums">forums</A>.</P>
475
476 <H2><A NAME="ss3.3">3.3</A> <A HREF="#toc3.3">The bug report #xxx is marked as "Fixed" in the w3todo, but I checked the last version of Grace and the bug is still there! </A>
477 </H2>
478
479
480 <P>The term "fixed" means the bug is fixed in the current
481 <I>development</I> version, and the next <I>public</I> version
482 will have the fix in it. Reports with fixes incorporated in an
483 existing public version are marked as "Closed".</P>
484
485 <H2><A NAME="ss3.4">3.4</A> <A HREF="#toc3.4">The bug report #xxx I reported is marked as "Ignored" in the w3todo and I even got no reply?! </A>
486 </H2>
487
488
489 <P>You must have missed something very obvious. Check out how to
490 properly submit a bug report in this document. Most probably your
491 report was incomplete or just redundant to an existing entry. It's
492 worth checking the log file of the bug report (the "View log" button
493 at the bottom of the report viewing page).</P>
494
495 <H2><A NAME="ss3.5">3.5</A> <A HREF="#toc3.5">I have got an idea! How do I report a wish? </A>
496 </H2>
497
498
499 <P>You can submit wishes and suggestions just the way you would
500 submit bug reports (see question
501 <A HREF="#w3todo">Known Bugs</A>). Suggestions for improvement are
502 generally very welcome. It may be possible, however, that
503 the developers are busy or that your wish is rejected for
504 some good reason, so it may be necessary to persuade (better
505 convince) them to get at it.</P>
506
507 <H2><A NAME="ss3.6">3.6</A> <A HREF="#toc3.6">I want to help! How can I contribute to Grace? </A>
508 </H2>
509
510
511 <P>Fine! There are always things to do.</P>
512 <P>If you are a C programmer, you can almost certainly find
513 something useful to do. Just ask on the forums.
514 The same applies if you are a technical writer. The documentation
515 will certainly need to be updated, corrected or completed.
516 Every small contribution is appreciated!</P>
517 <P>Make Grace known to your friends and colleagues. The more
518 users Grace has, the faster it will be improved.</P>
519
520 <H2><A NAME="ss3.7">3.7</A> <A HREF="#toc3.7">How do I submit patches/contributions? </A>
521 </H2>
522
523
524 <P>Prepare diffs against the most recent version. Use
525 either unified (-u) or context (-c) diff format.
526 Specify exactly against which version the diff is
527 supposed to work.
528 Finally send them to
529 <A HREF="mailto:fnevgeny at weizmann dot ac dot il">mailto:fnevgeny at weizmann dot ac dot il</A></P>
530 <P>In case you plan to help this way more than once you should join
531 the
532 <A HREF="#forums">forums</A>.</P>
533
534 <H2><A NAME="ss3.8">3.8</A> <A HREF="#toc3.8">I like Grace! Should I donate anything to its authors? </A>
535 </H2>
536
537
538 <P>No need to. But if you feel like making a donation,
539 choose any charity organization you like. You wanted to give
540 them some money, anyway, right? ;-)</P>
541
542
543 <H2><A NAME="s4">4.</A> <A HREF="#toc4">Installation </A></H2>
544
545
546
547 <H2><A NAME="install"></A> <A NAME="ss4.1">4.1</A> <A HREF="#toc4.1">How do I install Grace? </A>
548 </H2>
549
550
551 <P>You have the choice: either you compile the sources yourself
552 or you download precompiled binaries (we strongly suggest you take
553 the first route). You can get both from
554 the
555 <A HREF="http://plasma-gate.weizmann.ac.il/Grace/">Grace Home Page</A>. Whether binaries for your platforms
556 are available (see question
557 <A HREF="#binaries">Binaries</A>)
558 depends on whether one of the developers
559 has access to the respective platform and has had time to do
560 it.</P>
561 <P>It is always a good idea to read the <CODE>README</CODE>s that accompany
562 the downloading packages of Grace.</P>
563
564 <H2><A NAME="ss4.2">4.2</A> <A HREF="#toc4.2">Can I compile Grace myself? </A>
565 </H2>
566
567 <P>Yes! Actually, this is the preferred method of installation.
568 After getting the sources (question
569 <A HREF="#install">Installation</A>) and un<CODE>gzip</CODE>ping and un<CODE>tar</CODE>ing
570 them (use e.g. <CODE>gzip -dc grace-5.0.4.tar.gz | tar xvf -</CODE>),
571 proceed according to the relevant section of the
572 <A HREF="#manual">User's Guide</A>, which covers the compilation
573 process.</P>
574
575 <H2><A NAME="ss4.3">4.3</A> <A HREF="#toc4.3">When I run `configure', it says the XXX package is not found, whereas I am certain it was installed on my system! </A>
576 </H2>
577
578 <P>There are several possible reasons:
579 <UL>
580 <LI>You have only the run-time part installed (this especially
581 concerns GNU/Linux users). However, you should have the
582 relevant development package (C header files etc) installed, too.
583 E.g., for the JPEG library to be recognized by `configure',
584 <I>both</I> <CODE>libjpeg62</CODE> and <CODE>libjpeg62-devel</CODE>
585 packages must be installed.</LI>
586 <LI>The library and the header files don't match each other (they are
587 from different versions). This usually happens on large Unix
588 systems with a less than capable sysadmin...</LI>
589 <LI>Either the library or the header files can't be found by the
590 compiler. Use the <CODE>--with-extra-ldpath</CODE> and
591 <CODE>--with-extra-incpath</CODE> configure options to provide the
592 extra paths, respectively.</LI>
593 </UL>
594 </P>
595
596 <H2><A NAME="ss4.4">4.4</A> <A HREF="#toc4.4">When I type './configure' I get: ``configure: error M*tif has not been found'' </A>
597 </H2>
598
599
600 <P>Check whether M*tif (question
601 <A HREF="#motif">M*tif</A>) is installed on your system. If it is, look
602 at the file config.log: there is a line like this:</P>
603 <P><CODE>configure:8900: checking for a Motif &gt;= 1002 compatible API</CODE></P>
604 <P>What comes directly after it? Could be a hint. Also, see the previous
605 question.</P>
606
607 <H2><A NAME="motif"></A> <A NAME="ss4.5">4.5</A> <A HREF="#toc4.5">What is Motif (LessTif)? </A>
608 </H2>
609
610
611 <P>Throughout the Grace docs, saying "M*tif" we actually refer to
612 the Motif <I>API</I>, defining a set of functions for building
613 graphical user interfaces (GUI) via numerous widgets
614 (buttons, labels, etc). Grace makes a heavy use of the M*tif API. </P>
615 <P>There are several <I>implementations</I> of the interface. The
616 original OSF Motif (see
617 <A HREF="http://www.opengroup.org">http://www.opengroup.org</A>)
618 recently changed its license: on open-source platforms you
619 may have a chance to use it for free, although it's not in general
620 qualified as either a FreeSource or OpenSource product.</P>
621 <P>There is, however, a free replacement for Motif called LessTif (see
622 <A HREF="http://www.lesstif.org">http://www.lesstif.org</A>). LessTif is intended to be a 100%
623 source compatible replacement for Motif, but is still under
624 development. For the purposes of Grace, try using the latest version
625 of LessTif (at least 0.92.6 and above). The LessTif people usually
626 receive many bug reports from the Grace developers, so you might hope
627 that a few remaining bugs in LessTif will be fixed rather quickly.</P>
628
629 <H2><A NAME="ss4.6">4.6</A> <A HREF="#toc4.6">`configure' stops telling it can't find "ar". </A>
630 </H2>
631
632
633 <P>"ar" is the library archiver (the program used to create static
634 libraries like libFoo.a). You should have it in your path. Under
635 Solaris, for example, this can be found in /usr/ccs/bin.</P>
636
637 <H2><A NAME="binaries"></A> <A NAME="ss4.7">4.7</A> <A HREF="#toc4.7">Are there Grace binaries available? For which platforms? </A>
638 </H2>
639
640
641 <P>We do not officially support binary packages. When contributed by
642 volunteers they're put in under the
643 <A HREF="ftp://plasma-gate.weizmann.ac.il/pub/grace/contrib/">contrib</A> area. Again,
644 these are NOT supported (bug reports like "I can't install that RPM"
645 will be silently ignored), but feel free using the Grace forums
646 for relevant discussions.</P>
647
648 <H2><A NAME="ss4.8">4.8</A> <A HREF="#toc4.8">Is there a Windows|OS/2|VMS port of Grace? </A>
649 </H2>
650
651
652 <P>Yes, Grace runs on VMS. Just compile it there.</P>
653 <P>As for Win32 (Windows 95/98/NT/2000/XP) and OS/2, there are ports for
654 these platforms, though they are not "native", i.e. in order to run
655 them, one needs an X server for the respective platform.</P>
656 <P>Both OS/2 and Win32 ports may lack some of the functionality (notably,
657 support for "direct"/native printing; probably you will have to use
658 the Postscript output for printing).</P>
659 <P>A port to OS/2 made by Alexander Mai can be found
660 at
661 <A HREF="http://www.tu-darmstadt.de/~st002279/os2/">http://www.tu-darmstadt.de/~st002279/os2/</A>.
662 It requires the XFree86 libraries and an X Server (e.g. XFree86,
663 Hob X11, Exceed, etc.).</P>
664
665 <H2><A NAME="ss4.9">4.9</A> <A HREF="#toc4.9">Compilation with gcc fails on Solaris complaining about unresolved symbols. </A>
666 </H2>
667
668
669 <P>If you get such a message at the linkage stage, telling about
670 .LL794 (or similar) unresolved symbols, try compiling with native
671 cc compiler instead (./configure --with-cc=cc).</P>
672
673
674
675 <H2><A NAME="s5">5.</A> <A HREF="#toc5">Runtime Problems </A></H2>
676
677
678
679 <H2><A NAME="ss5.1">5.1</A> <A HREF="#toc5.1">When I start Grace I get the message ``Can't find library libXXX.so'' or similar. </A>
680 </H2>
681
682
683 <P>For certain tasks, Grace needs external libraries which are
684 neither provided by Grace nor the operating system. You will
685 need to install these libraries yourself. This applies to
686 M*tif, PDF (see question
687 <A HREF="#export">Output Devices</A>)
688 and probably other libraries.
689 If the message is exactly <CODE>Can't find library libXm.so</CODE>
690 (usually this happens on GNU/Linux systems ...) then you don't have
691 M*tif (the Xm libraries) installed (see question
692 <A HREF="#motif">M*tif</A>), or the linker doesn't
693 know where it is.
694 In the first case, try downloading LessTif. In the second case,
695 you have to tell your linker where it is (may be
696 a platform-specific task). On GNU/Linux look at the file
697 <CODE>/etc/ld.so.conf</CODE>. It contains pathnames of the directories
698 where dynamic libraries are stored. Add (as root) your directory
699 to this file and run <CODE>ldconfig -v</CODE>. Now the libraries
700 should be in the list. If you're not root you may try
701 to adjust the environment variable <CODE>LD_LIBRARY_PATH</CODE>
702 to include the required pathname.</P>
703 <P>For some versions of Motif, the ``soname'' (which
704 identifies the version of the library and is stored
705 somewhere in the library) on your computer doesn't match
706 the soname of the library on the computer where your copy
707 of Grace was compiled on. Then you should use a
708 (semi)statically linked version or compile Grace on your
709 computer.</P>
710
711 <H2><A NAME="ss5.2">5.2</A> <A HREF="#toc5.2">I get errors like "X Error of failed request: BadValue (integer parameter out of range for operation)" </A>
712 </H2>
713
714
715 <P>This means that Grace made an incorrect access to an X
716 library. This is most probably not Grace's fault. Probably a
717 not-yet-correctly-implemented LessTif function (see question
718 <A HREF="#motif">M*tif</A>) caused this behaviour. If you
719 use LessTif, try to get the latest version (see question
720 <A HREF="#motif">M*tif</A>). If this error persists,
721 report it as a bug (question
722 <A HREF="#bugreport">Bug Reports</A>).</P>
723
724 <H2><A NAME="ss5.3">5.3</A> <A HREF="#toc5.3">Grace crashes with "Oops Got SIGSEV" (on GNU/Linux) </A>
725 </H2>
726
727 <P>Detect whether you are using a version linked against
728 LessTif. "xmgrace -version" and "ldd xmgrace" are
729 useful commands for this purpose.</P>
730 <P>If you are using LessTif, read the according FAQ
731 <A HREF="#motif">M*tif</A> else report it as a bug
732 (
733 <A HREF="#bugreport">Bug Reports</A>).</P>
734
735 <H2><A NAME="ss5.4">5.4</A> <A HREF="#toc5.4">I run Grace and get the following error messages: "Warning: translation table syntax error: Unknown keysym name: osfPageLeft Warning: ... found while parsing '&lt;Key>osfPageLeft:SWLeftPage()'" </A>
736 </H2>
737
738
739 <P>Get the XKeySymDB file from the X11R6 distribution. Put it
740 somewhere where you can access it and set the <CODE>XKEYSYMDB</CODE>
741 environment variable to
742 <CODE>"/place/where/you/put/XKeysymDB"</CODE>. See question
743 <A HREF="#environment">Environment Variables</A> on how
744 to set environment variables.</P>
745
746 <H2><A NAME="ss5.5">5.5</A> <A HREF="#toc5.5">I run Grace on a Solaris 2.5.1 box, and when I try to open a file, I can't read the names of the files (files section of the dialog) because Grace writes ALL the path of each file in the list and there is no horizontal scroll. </A>
747 </H2>
748
749
750 <P>This is a known bug of Motif implementation on Solaris
751 2.5.1 (both Sparc and Intel hardware). Ask your vendor for a patch.</P>
752
753 <H2><A NAME="ss5.6">5.6</A> <A HREF="#toc5.6">Grace can not find font database and initialize the T1 library </A>
754 </H2>
755
756 <P>You have probably tried to run Grace without installing it,
757 just after compilation. You got the following message :</P>
758 <P>
759 <BLOCKQUOTE><CODE>
760 <PRE>
761 scanFontDBase(): Font Database File not found
762 T1_InitLib(): Fatal error scanning Font Database File
763 --> Broken or incomplete installation - read the FAQ!
764 </PRE>
765 </CODE></BLOCKQUOTE>
766 </P>
767 <P>Grace uses either the <CODE>GRACE_HOME</CODE> environment variable
768 or a compiled in default path to find the font database. If
769 the variable is not set and you have not installed the
770 database with <CODE>make install</CODE> it cannot find it. If you
771 want to test Grace before installing it, you should set the
772 environment variable to the distribution directory (the one
773 where the file <CODE>configure</CODE> lies), this is what the
774 <CODE>dotest</CODE> script does when you run <CODE>make check</CODE>. The
775 easiest thing to do however is to install everything with
776 <CODE>make install</CODE>. See question
777 <A HREF="#environment">Environment Variables</A> on how to set environment
778 variables.</P>
779 <P>If you get this message after installing a prebuilt package,
780 then you have either forgotten to download the platform-independent
781 part of the installation (named like grace-x.y.zz.common.tar.gz) or
782 not set the <CODE>GRACE_HOME</CODE> environment variable, see a few lines
783 above.</P>
784
785 <H2><A NAME="ss5.7">5.7</A> <A HREF="#toc5.7">Pressing Ctrl and clicking with the left mouse button on the canvas or dialog panels make Grace crash. </A>
786 </H2>
787
788
789 <P>This is a known bug in Motif-2.1. Most vendors have fixed it in their
790 ports and/or have a patch ready, but not all, a notable exception being
791 Motif libraries shipped by Red Hat for GNU/Linux for Intel hardware
792 (versions 6.*). Grace has a workaround for this bug. In order to enable
793 it, add the following lines to the X resources:</P>
794 <P>
795 <BLOCKQUOTE><CODE>
796 <HR>
797 <PRE>
798 XMgrace*XmDrawingArea.translations: #override\n\
799 Ctrl &lt;Btn1Down>: do_nothing()
800 XMgrace*XmRowColumn.translations: #override\n\
801 Ctrl &lt;Btn1Down>: do_nothing()
802 XMgrace*XmForm.translations: #override\n\
803 Ctrl &lt;Btn1Down>: do_nothing()
804 XMgrace*XmFrame.translations: #override\n\
805 Ctrl &lt;Btn1Down>: do_nothing()
806 XMgrace*XmScrolledWindow.translations: #override\n\
807 Ctrl &lt;Btn1Down>: do_nothing()
808 XMgrace*XmFileSelectionBox.translations: #override\n\
809 Ctrl &lt;Btn1Down>: do_nothing()
810 XMgrace*XmScale.translations: #override\n\
811 Ctrl &lt;Btn1Down>: do_nothing()
812 XMgrace*XmCommand.translations: #override\n\
813 Ctrl &lt;Btn1Down>: do_nothing()
814 XMgrace*XmMessageBox.translations: #override\n\
815 Ctrl &lt;Btn1Down>: do_nothing()
816
817 </PRE>
818 <HR>
819 </CODE></BLOCKQUOTE>
820 </P>
821
822 <H2><A NAME="ss5.8">5.8</A> <A HREF="#toc5.8">The size of the canvas is huge. </A>
823 </H2>
824
825
826 <P>It should be exactly the size of the hardcopy (A4/US letter). If
827 not, check your X server settings (run `xdpyinfo' and watch the
828 "dimensions:" line; check the numbers with a ruler).</P>
829
830
831 <H2><A NAME="ss5.9">5.9</A> <A HREF="#toc5.9">Extended ASCII characters do not appear and/or appear as incorrect control characters in text input fields. </A>
832 </H2>
833
834
835 <P>Are you using OpenMotif 2.2 (see Help/About)? It's known to behave
836 wrongly with several locale settings. Try setting the shell variable
837 LANG to a safe value, e.g. "C". The bug is known and fixed
838 (
839 <A HREF="http://bugs.motifzone.net/show_bug.cgi?id=1257">bug #1257</A>). Nag your vendor to apply the patch.</P>
840
841
842 <H2><A NAME="ss5.10">5.10</A> <A HREF="#toc5.10">File selection dialogs are unusable. </A>
843 </H2>
844
845
846 <P>It happens with OpenMotif 2.2 and some locale settings. See the
847 previous entry for a remedy.</P>
848
849
850 <H2><A NAME="ss5.11">5.11</A> <A HREF="#toc5.11">All of the text in the menus and dialog boxes are represented as squares. </A>
851 </H2>
852
853
854 <P>This happens when a Unicode font is picked by the X/Motif and, for a
855 reason, is treated as a wchar one (so you see one "square" glyph for
856 every two chars). Try different font settings; for starters, run
857 <BLOCKQUOTE><CODE>
858 <HR>
859 <PRE>
860 xmgrace -xrm "XMgrace*fontList:fixed"
861
862 </PRE>
863 <HR>
864 </CODE></BLOCKQUOTE>
865 </P>
866
867
868 <H2><A NAME="ss5.12">5.12</A> <A HREF="#toc5.12">On Fedora Core 4, all set selectors collapse into a single of even a zero-height line after a few operations. </A>
869 </H2>
870
871
872 <P>FC4 uses a BETA version of OpenMotif 2.3 (see Help/About). The bug is
873 known and fixed
874 (
875 <A HREF="http://bugs.motifzone.net/show_bug.cgi?id=1331">bug #1331</A>). Ask Fedora folks to apply the patch.</P>
876
877
878 <H2><A NAME="s6">6.</A> <A HREF="#toc6">Basic Concepts </A></H2>
879
880
881
882 <H2><A NAME="ss6.1">6.1</A> <A HREF="#toc6.1">What is a project? </A>
883 </H2>
884
885
886 <P>A project is a file which contains all information necessary
887 to restore a plot created by Grace.</P>
888
889 <H2><A NAME="parameter"></A> <A NAME="ss6.2">6.2</A> <A HREF="#toc6.2">What is a parameter file? </A>
890 </H2>
891
892
893 <P>A parameter file contains informations about settings. Every
894 batch command of Grace is a valid line in a parameter
895 file. A parameter file is essentially a project file without
896 sets in a slightly different format (i.e. without leading
897 <CODE>@</CODE>s).</P>
898
899 <H2><A NAME="ss6.3">6.3</A> <A HREF="#toc6.3">Which data formats does Grace recognize? </A>
900 </H2>
901
902
903 <P>You can read in several kinds of files where data is
904 arranged in columns separated by spaces or tabs. Lines beginning
905 with "#" are ignored.</P>
906
907 <H2><A NAME="ss6.4">6.4</A> <A HREF="#toc6.4">What is block data? </A>
908 </H2>
909
910
911 <P>The option <CODE>Read Block Data</CODE> can be used to read in files
912 where the values are organized in columns. You
913 can interactively select the type of set to be created and
914 which columns should be used. Refer to the User's Guide
915 (question
916 <A HREF="#manual">User's Guide</A>) for details.</P>
917
918 <H2><A NAME="ss6.5">6.5</A> <A HREF="#toc6.5">What is the NXY data type? </A>
919 </H2>
920
921
922 <P>Strictly speaking, it's not a data format. Rather, you may want
923 to use the relevant command line switch to read in a block data
924 file and automatically assign the data columns to sets of the XY
925 type so that the first column of the block data is used as X
926 for all the sets and the rest of the data columns are assigned to Y's.
927 Refer to the User's Guide
928 (question
929 <A HREF="#manual">User's Guide</A>) for details.</P>
930
931 <H2><A NAME="jdate"></A> <A NAME="ss6.6">6.6</A> <A HREF="#toc6.6">What is the Julian Date?</A>
932 </H2>
933
934
935 <P>The Julian Date, not to be confused with the Julian
936 calendar, is a format to represent the time in a single
937 number. Julian Date 0 is a day way in the past, namely the
938 1st January 4713 before Christ (don't ask me why). The
939 following days are numbered sequentially, each day starting
940 at noon.
941 This numbering scheme is in wide use, especially in
942 astronomy, and is used for the internal representation of
943 dates in Grace. Some further explanations are given on
944 <A HREF="http://en.wikipedia.org/wiki/Julian_day">this page</A>.</P>
945 <P>The <CODE>convcal</CODE> utility in <CODE>$GRACE_HOME/auxiliary/</CODE> can
946 be used for about any to Julian date convertion.</P>
947
948
949
950 <H2><A NAME="s7">7.</A> <A HREF="#toc7">Using Grace </A></H2>
951
952
953
954 <H2><A NAME="ss7.1">7.1</A> <A HREF="#toc7.1">How do I start Grace? </A>
955 </H2>
956
957
958 <P>There are three ways to invoke Grace. The full-featured
959 GUI-based version is called <CODE>xmgrace</CODE>. A batch-printing
960 version is called <CODE>gracebat</CODE> (see question
961 <A HREF="#gracebat">Gracebat</A>). A command-line interface mode
962 is called <CODE>grace</CODE>.</P>
963 <P>All three of them are usually located in <CODE>$GRACE_HOME/bin/</CODE>.</P>
964
965 <H2><A NAME="gracebat"></A> <A NAME="ss7.2">7.2</A> <A HREF="#toc7.2">Where is gracebat? How does batch printing work? </A>
966 </H2>
967
968
969 <P><CODE>gracebat</CODE> is simply a copy of Grace named <CODE>gracebat</CODE>
970 or a symbolic link from <CODE>gracebat</CODE> to Grace. In the case
971 of the symbolic link:</P>
972 <P><CODE>ln -s xmgrace gracebat</CODE></P>
973 <P>done wherever the Grace binary is located will do the trick
974 (rehash or logout and login to make sure that <CODE>gracebat</CODE>
975 shows up in your path). Executing <CODE>gracebat</CODE> with no
976 command line parameters or data files will produce a
977 hardcopy on the default printer.</P>
978
979 <H2><A NAME="custom"></A> <A NAME="ss7.3">7.3</A> <A HREF="#toc7.3">How can I customize the default appearance of Grace? </A>
980 </H2>
981
982
983 <P>There are several ways: the init files, X Resources, and
984 environment (shell) variables. Please refer to the
985 User's Guide (question
986 <A HREF="#manual">User Guide</A>)
987 for details.</P>
988
989 <H2><A NAME="environment"></A> <A NAME="ss7.4">7.4</A> <A HREF="#toc7.4">Which environment variables does Grace use? </A>
990 </H2>
991
992
993 <P>There are few, the most important being <CODE>GRACE_HOME</CODE>.
994 It specifies the directory where the Grace files (fonts,
995 docs, libs, ...) are stored. Default is <CODE>/usr/local/grace</CODE>.</P>
996 <P>You can set environment variables using (e.g.):</P>
997 <P><CODE>export GRACE_HOME="/usr/local/grace"</CODE></P>
998 <P>in bash and sh or</P>
999 <P><CODE>setenv GRACE_HOME "/usr/local/grace"</CODE></P>
1000 <P>in tcsh and csh.</P>
1001 <P>Please refer to the User's Guide
1002 (question
1003 <A HREF="#manual">User Guide</A>)
1004 for description of all relevant variables.</P>
1005
1006 <H2><A NAME="ss7.5">7.5</A> <A HREF="#toc7.5">What command line options does Grace recognize? </A>
1007 </H2>
1008
1009
1010 <P>Quite a few. You can display them with <CODE>xmgrace -help</CODE>.</P>
1011 <P>Or check for the man page xmgrace(1). However it may
1012 not always be up-to-date.</P>
1013
1014 <H2><A NAME="ss7.6">7.6</A> <A HREF="#toc7.6">Can one change the colour selecton for the menu, locator, tool, and status bars, and all the popup menus? </A>
1015 </H2>
1016
1017
1018 <P>As with any X application, use the "-bg &lt;colorname&gt; -fg
1019 &lt;another_colorname&gt;" command line flags. Or, define the
1020 relevant X resources:</P>
1021 <P>
1022 <BLOCKQUOTE><CODE>
1023 <PRE>
1024 XMgrace*foreground: ...
1025 XMgrace*background: ...
1026 </PRE>
1027 </CODE></BLOCKQUOTE>
1028 </P>
1029
1030 <H2><A NAME="ss7.7">7.7</A> <A HREF="#toc7.7">What different kinds of sets can Grace plot? </A>
1031 </H2>
1032
1033
1034 <P>The standard set is the regular (x,y) set, but there are
1035 others including error bars or descriptive strings. See the
1036 User's Guide (question
1037 <A HREF="#manual">User's Guide</A>)
1038 for details.</P>
1039
1040 <H2><A NAME="ss7.8">7.8</A> <A HREF="#toc7.8">I'd like to plot data against an axis on the right (top) and another data set in a different scale against an axis on the left (bottom) </A>
1041 </H2>
1042
1043
1044 <P>Use two overlaying graphs, one with a scale on the
1045 left(bottom), the other one on the right (top). Thus you
1046 can achieve the desired effect, but you'll need to pay
1047 close attention to which graph is the 'current'
1048 graph. This is also how to display a second scale on the
1049 top (right) side of the graph.</P>
1050
1051 <H2><A NAME="ss7.9">7.9</A> <A HREF="#toc7.9">How do I do polar plots? </A>
1052 </H2>
1053
1054
1055 <P>The support for polar plots is currently being
1056 implemented, so you can expect polar plots to work
1057 soon. The polar coordinates can be selected from the
1058 <CODE>"Plot/Graph Appearance"</CODE> menu. Please refer to
1059 the User's Guide (question
1060 <A HREF="#manual">User Guide</A>)
1061 for details.</P>
1062
1063 <H2><A NAME="ss7.10">7.10</A> <A HREF="#toc7.10">Can I use different fonts, symbols, font size, or sub/superscripts in Grace? </A>
1064 </H2>
1065
1066
1067 <P>Yes, Grace has all these features. Wherever you can type a
1068 text in Grace, e.g. Axis labels, graph title, text from
1069 <CODE>Plot->Drawing objects</CODE>, etc., you can use all those
1070 features within the same text. Please refer to the User
1071 Guide (question
1072 <A HREF="#manual">User's Guide</A>) for
1073 details.</P>
1074
1075 <H2><A NAME="ss7.11">7.11</A> <A HREF="#toc7.11">How do I produce special characters (Umlauts) with Grace? </A>
1076 </H2>
1077
1078
1079 <P>If you asked this question, then you are probably familiar with
1080 the issue of keymap modifying in X. Once you configured the key
1081 mapping (with the use of <CODE>xmodmap</CODE>), you can enter the
1082 extended characters from the keyboard in any text input field. If,
1083 in addition, the appropriate for your language font encoding is
1084 anything but ISO Latin1 (used in most Western Europe countries),
1085 you'll have to tell Grace so. See the
1086 <A HREF="#fonts">next question</A>.</P>
1087
1088 <H2><A NAME="fonts"></A> <A NAME="ss7.12">7.12</A> <A HREF="#toc7.12">Can I use my own fonts and/or encodings? </A>
1089 </H2>
1090
1091
1092 <P>Yes. Starting with version 5.0.1, you can use your own
1093 fonts, in addition to the standard 14 fonts which
1094 include Times-Roman, Helvetica, Courier, Symbols and Zapf
1095 Dingbats and come with Grace, and as a replacement for the
1096 default fonts (for the purporse of localization). As well,
1097 an alternative encoding scheme can be specified.</P>
1098 <P>Please refer to the User's Guide
1099 (question
1100 <A HREF="#manual">User's Guide</A>) for details.</P>
1101
1102
1103 <H2><A NAME="ss7.13">7.13</A> <A HREF="#toc7.13">At which precision is numerical data saved? How can I set the precision? </A>
1104 </H2>
1105
1106
1107 <P>By default, numbers are saved with eight valid digits. To
1108 set your own precision, use the command</P>
1109 <P><CODE>DEFAULT SFORMAT formatstring</CODE></P>
1110 <P>in an init resource file (see question
1111 <A HREF="#custom">Customization</A>) with formatstring being in the
1112 <CODE>printf(3)</CODE> format.</P>
1113 <P>As well, you can set the precision on a per-project basis. When you
1114 save a project for the first time (or use "File/Save as"), there is
1115 a relevant "Data format" field in the popup you are presented with.</P>
1116
1117 <H2><A NAME="ss7.14">7.14</A> <A HREF="#toc7.14">When I save a project and then re-open it, the Julian date values appear to be rounded to the nearest half day. </A>
1118 </H2>
1119
1120
1121 <P>For time plots, the default precision may be insufficient. See the
1122 previous question on how to alter it.</P>
1123
1124 <H2><A NAME="ss7.15">7.15</A> <A HREF="#toc7.15">How do I read in project files created by Xmgr? </A>
1125 </H2>
1126
1127
1128 <P>From Xmgr-4.1.2 on, each project file starts with a string
1129 giving the version number by which is was saved. These
1130 files should cause no problems. You can modify older files
1131 by inserting a version line at the beginning. For example,
1132 <CODE>@VERSION 40102</CODE> stands for version 4.1.2. If you have no
1133 idea what version of Xmgr your file was created with, try some.
1134 In most cases, 40102 would do the trick. Also, make sure to read
1135 the "Xmgr to Grace migration" section of the User's Guide
1136 (question
1137 <A HREF="#manual">User's Guide</A>).</P>
1138
1139 <H2><A NAME="ss7.16">7.16</A> <A HREF="#toc7.16">I can't open anymore project files saved with an old version of Xmgr. </A>
1140 </H2>
1141
1142
1143 <P>In Xmgr-4.1.0, support for the binary file format (the
1144 former default one) was dropped. You must use the
1145 <CODE>grconvert</CODE> utility supplied with the Grace
1146 distribution in order to convert the files. This can
1147 easily be achieved defining an input filter like in the
1148 <CODE>gracerc</CODE> sample file which comes with Grace.</P>
1149
1150 <H2><A NAME="ss7.17">7.17</A> <A HREF="#toc7.17">When I load a project saved with an earlier version of Xmgr (&lt;4.0), symbols of all (some) sets are drawn in black. </A>
1151 </H2>
1152
1153
1154 <P>Make sure you added a valid <CODE>@VERSION versionid</CODE> line to the
1155 beginning of the file.</P>
1156
1157 <H2><A NAME="ss7.18">7.18</A> <A HREF="#toc7.18">How do I save disk space? Can I use compressed project files? </A>
1158 </H2>
1159
1160
1161 <P>Yes. You can use your favorite compression program
1162 (e.g. `gzip') as input or output filter so that files on
1163 disk are automagically (de)compressed. Just add the lines</P>
1164 <P><CODE>DEFINE IFILTER "gzip -dc %s" PATTERN "*.gz"</CODE></P>
1165 <P>and</P>
1166 <P><CODE>DEFINE OFILTER "gzip - &gt; %s" PATTERN "*.gz"</CODE></P>
1167 <P>into your personal grace init file. Then, everytime you
1168 specify a file name that ends with <CODE>.gz</CODE>, gzip is used
1169 as input and output filters. You can use this mechanism to
1170 do other things, e.g. reading and storing files into a
1171 database.</P>
1172
1173 <H2><A NAME="ss7.19">7.19</A> <A HREF="#toc7.19">Can I import bitmap graphics into Grace? </A>
1174 </H2>
1175
1176
1177 <P>Well, not yet. The import of images will be implemented
1178 in a future release.</P>
1179
1180 <H2><A NAME="export"></A> <A NAME="ss7.20">7.20</A> <A HREF="#toc7.20">Can I export Grace graphs to GIF|TIFF| PostScript|PDF etc? </A>
1181 </H2>
1182
1183
1184 <P>PostScript (for printing), EPS (encapsulated
1185 PostScript; for the inclusion of graphics into e.g. LaTeX
1186 documents), PNM (PBM/PGM/PPM), MIF (for inclusion in
1187 FrameMaker) and SVG (Scalable Vector Graphics)
1188 are implemented by default.</P>
1189 <P>Additionally, if some extra libraries are installed, listed in the
1190 User's Guide (question
1191 <A HREF="#manual">User's Guide</A>),
1192 the JPEG, PNG, and PDF backends will be built as well.</P>
1193 <P>You can get various other formats using netpbm and pstoedit.</P>
1194 <P>Bitmaps: Using the PNM device + the <CODE>netpbm</CODE> utils
1195 (available at e.g.
1196 <A HREF="ftp://ftp.x.org/contrib/utilities/">ftp://ftp.x.org/contrib/utilities/</A> one can get
1197 TIFF, GIF, G3, BMP, PCX,... (conversion can be done on
1198 the fly with appropriate filter definitions).</P>
1199 <P>Notice that the direct support of the GIF format is impossible
1200 due to the copyright policy of Unisys - it's not a technical
1201 problem. In fact it was supported in earlier versions but
1202 to avoid any legal problems this feature has been removed.</P>
1203 <P>One can use
1204 <A HREF="http://www.geocities.com/SiliconValley/Network/1958/pstoedit/">pstoedit</A>
1205 to convert PS to a lot of other vector formats: MIF, CGM,
1206 xfig's, tgif's, Windoze and OS/2 metafiles,... even Java
1207 applets!</P>
1208
1209 <H2><A NAME="ss7.21">7.21</A> <A HREF="#toc7.21">Where have all the region operations gone to? </A>
1210 </H2>
1211
1212
1213 <P>Region operations have no meaning by themselves. Regions are
1214 restriction conditions applied to data set(s) which a
1215 transformation is performed on. For example, to kill data points in
1216 a region, use "Evaluate expression", select same source and dest
1217 set(s), leave the "formula" field empty, select your region in the
1218 "Restriction" menu, check "Negated".</P>
1219
1220 <H2><A NAME="ss7.22">7.22</A> <A HREF="#toc7.22">How can I input data in date/time formats? </A>
1221 </H2>
1222
1223
1224 <P>You can use several date/time formats in input data files.
1225 Make sure, however, that the time fields don't contain space
1226 separators inside, e.g. 1999-12-31-23:59:59.5</P>
1227 <P>Also, you can use an external program to convert the data into the
1228 <A HREF="#jdate">Julian Date</A> format, like the one (convcal)
1229 that is supplied with Grace.</P>
1230
1231 <H2><A NAME="ss7.23">7.23</A> <A HREF="#toc7.23">How do I set the background color of a plot, outside of the graph frame? </A>
1232 </H2>
1233
1234
1235 <P>This can be done using the <CODE>"Plot/Plot appearance"</CODE> popup.</P>
1236 <P>This changes the background of the entire canvas, not only
1237 the background of graphs.</P>
1238
1239 <H2><A NAME="ss7.24">7.24</A> <A HREF="#toc7.24">How do I use more than 16 colors for objects/lines in Grace? </A>
1240 </H2>
1241
1242
1243 <P>You may edit your Default.agr file in
1244 <CODE>$GRACE_HOME/templates</CODE>. Just add lines similar to
1245 <PRE>
1246 @map color 2 to (255, 0, 0), "red"
1247 </PRE>
1248 defining a RGB
1249 value and an according name for that color triplet. Please notice
1250 that altering colors 0 (white) and 1 (black) is strongly discouraged.</P>
1251
1252 <H2><A NAME="ss7.25">7.25</A> <A HREF="#toc7.25">How can I use pipes with Grace? </A>
1253 </H2>
1254
1255
1256 <P>A named pipe is a pseudo file to which one application
1257 writes data which another one reads from it.</P>
1258 <P>Applications like measurement programs can write data to a
1259 pipe and make it thus available to Grace which reads from
1260 the pipe. So Grace can serve as data displayer for otherwise
1261 non-graphical programs.</P>
1262 <P>Refer to the User's Guide (question
1263 <A HREF="#manual">User's Guide</A>) or the tutorials (question
1264 <A HREF="#tutorial">Tutorials</A>) for further information.</P>
1265 <P>One example for using pipes is included in the <CODE>`make
1266 tests'</CODE> slide show.</P>
1267
1268 <H2><A NAME="ss7.26">7.26</A> <A HREF="#toc7.26">Is it possible to make Grace starting with a completely empty canvas, until the commands are loaded and executed? </A>
1269 </H2>
1270
1271 <P>Start Grace with -pexec "G0 OFF" or load a parameter file with
1272 the above command. </P>
1273
1274
1275 <H2><A NAME="ss7.27">7.27</A> <A HREF="#toc7.27">When I include an EPS file generated by Grace into my (La)TeX document, the graphic hides some of the surrounding text. </A>
1276 </H2>
1277
1278
1279 <P>LaTeX does not do hard clipping of EPS files unless instructed to do
1280 so. Use \includegraphics*{filename} and NOT
1281 \includegraphics{filename} (package <CODE>graphics</CODE>) or
1282 \includegraphics[clip]{filename} (package <CODE>graphicx</CODE>). If
1283 using the <CODE>epsf</CODE> package, remember to include the \epsfclipon
1284 flag (but note that the <CODE>epsf</CODE> package is obsolet and buggy
1285 and not maintained by the LaTeX team and in general should not be
1286 used).</P>
1287 <P>The erasing comes about because Grace fills the background with the
1288 page size and not the bbox size. The background filling can be
1289 disabled from the "Plot/Plot appearance" popup.</P>
1290
1291 <H2><A NAME="ss7.28">7.28</A> <A HREF="#toc7.28">Printing to my old PostScript printer produces an error. </A>
1292 </H2>
1293
1294
1295 <P>By default, the PS driver uses Level 2 features, while your
1296 printer may not be PostScript Level 2 compliant. You can force
1297 the use of PS Level 1 only features in the PostScript device setup,
1298 though output may be not exactly as expected (there will be no
1299 pattern fills, for example). </P>
1300
1301 <H2><A NAME="ss7.29">7.29</A> <A HREF="#toc7.29">How do I make a Grace image fit on a given paper size? </A>
1302 </H2>
1303
1304
1305 <P>Select the correct paper size in the <CODE>Device setup</CODE>
1306 popup.</P>
1307 <P>You can also try the command psresize from the
1308 <A HREF="http://www.dcs.ed.ac.uk/~ajcd/psutils/">psutils package</A> in order to
1309 resize a Postscript file generated by Grace.</P>
1310
1311 <H2><A NAME="ss7.30">7.30</A> <A HREF="#toc7.30">My decimal tick labels are systematically of the form e.g. 0,5 instead of 0.5 (i.e. I get a comma instead of a dot). </A>
1312 </H2>
1313
1314
1315 <P>You're using a localized version of OS. You have either LANG or
1316 LC_NUMERIC shell variables set, so Grace uses the locale setting to
1317 produce numeric labels. Set at least LC_NUMERIC to C or POSIX to
1318 disable this behaviour. Notice that there is nothing specific to
1319 Grace about locale. Either you want the localization or not. Setting
1320 by default LANG to anything but C/POSIX assumes you do.</P>
1321
1322 <H2><A NAME="ss7.31">7.31</A> <A HREF="#toc7.31">Is it possible to use the dB (decibel) axis scale? </A>
1323 </H2>
1324
1325
1326 <P>In "Plot/Axis props", enable logarithmic axis scaling, then go to
1327 the "Tick labels" tab of this dialog, find the "Axis transform"
1328 input field in the "Extra" frame, and enter there "10*log10(10*$t)"
1329 (w/o quotes, of course).</P>
1330
1331 <H2><A NAME="ss7.32">7.32</A> <A HREF="#toc7.32">In "Data set properties", I don't see a possibility to view the more essential part of the mantissa; it's swallowed in the black triangle. </A>
1332 </H2>
1333
1334
1335 <P>If you find some columns are too narrow to show all significant
1336 digits, you can drag the vertical rules using Shift+Button 2.</P>
1337
1338 <H2><A NAME="ss7.33">7.33</A> <A HREF="#toc7.33">When making use of <I>-param</I> via the command line to set the parameters, the world scaling is not correctly set (it just auto-scales). </A>
1339 </H2>
1340
1341
1342 <P>The <I>-param</I> flag and its argument should be placed on the
1343 command line <B>after</B> the data filenames. Alternatively,
1344 disable the autoscale with <I>-autoscale none</I> - but
1345 <B>before</B> your data is read in.</P>
1346
1347 <H2><A NAME="ss7.34">7.34</A> <A HREF="#toc7.34">I am unable to find "Load &amp; Evaluate" which I used quite a lot with Xmgr. </A>
1348 </H2>
1349
1350
1351 <P>Use "Create new-&gt;By formula" from any set selector popup menu.</P>
1352
1353 <H2><A NAME="ss7.35">7.35</A> <A HREF="#toc7.35">How can I specify a template other than the default one on the command line? In the scripts? </A>
1354 </H2>
1355
1356
1357 <P>Template is just an empty (in the sense that there are no data sets)
1358 but otherwise a valid project file. So just put your favorite
1359 template's filename as the first argument on the command line. If
1360 your script creates several plots, use 'new from "filename"' to
1361 initialize a new project from the non-default template.</P>
1362
1363
1364 <H2><A NAME="ss7.36">7.36</A> <A HREF="#toc7.36">How can I save my 'preferences' options? </A>
1365 </H2>
1366
1367
1368 <P>A part of them are saved with the project; most of the rest are
1369 available via command-line options and/or X resources. A more
1370 homogeneous approach will be implemented in a future version. </P>
1371
1372
1373 <H2><A NAME="ss7.37">7.37</A> <A HREF="#toc7.37">In an XY-plot with a huge number of points some regions become straight lines instead of the original curve. When I zoom in to the area the data becomes correctly drawn. </A>
1374 </H2>
1375
1376
1377 <P>Enlarge "Max drawing path length" in Edit/Preferences. Also, consider
1378 whether you really need that huge number of points drawn connected
1379 by line?</P>
1380
1381
1382
1383 <H2><A NAME="s8">8.</A> <A HREF="#toc8">Mathematics </A></H2>
1384
1385
1386
1387 <H2><A NAME="ss8.1">8.1</A> <A HREF="#toc8.1">What algorithm is used for non-linear curve fitting? </A>
1388 </H2>
1389
1390
1391 <P>It is the Levenberg-Marquardt algorithm, based on LMDIF from
1392 MINPACK, with some modifications.</P>
1393
1394
1395 <H2><A NAME="commands"></A> <A NAME="s9">9.</A> <A HREF="#toc9">Command Line Interface </A> </H2>
1396
1397
1398
1399 <H2><A NAME="ss9.1">9.1</A> <A HREF="#toc9.1">Which non-interactive batch commands does Grace know? </A>
1400 </H2>
1401
1402
1403 <P>Lots. Almost every mouseclick in the GUI has an equivalent
1404 in the batch language. See the User's Guide (question
1405 <A HREF="#manual">User's Guide</A>) for details.</P>
1406
1407
1408 <H2><A NAME="ss9.2">9.2</A> <A HREF="#toc9.2">How can I do feature extraction non-interactively? </A>
1409 </H2>
1410
1411
1412 <P>Currently not at all. This will be implemented in a later
1413 release.</P>
1414
1415 <H2><A NAME="ss9.3">9.3</A> <A HREF="#toc9.3">How can I use non-linear fits in the batch mode? </A>
1416 </H2>
1417
1418
1419 <P>Example - make a batch file with the following commands:</P>
1420 <P>
1421 <PRE>
1422 fit formula "y = a0 + a1 * sin (a2 + x * pi / 180)"
1423 fit with 3 parameters
1424 fit prec 0.05
1425 a0 = 1
1426 a0 constraints on
1427 a0min = 0
1428 a0max = 2
1429 a1 = 1
1430 a1 constraints off
1431 a2 = 1
1432 a2 constraints off
1433 nonlfit (s0, 100)
1434
1435 </PRE>
1436 </P>
1437 <P>This assumes that your original curve is in set s0 and that
1438 you want to make 100 iterations.</P>
1439 <P><CODE>nonlfit()</CODE> doesn't produce any plots by itself. It only
1440 <B>fits</B>. I.e., at this point, you can use the fitted
1441 values <CODE>A0, A1, A2...</CODE>:</P>
1442 <P>Plot a set, e.g.:</P>
1443 <P>
1444 <PRE>
1445 s3 on
1446 s3 length s0.length
1447 s3.x = s0.x
1448 s3.y = a0 + a1 * sin (a2 + x * pi / 180)
1449
1450 </PRE>
1451 </P>
1452 <P>Use for another fit as the initial values, or just ECHO them
1453 (to <CODE>stdout</CODE>) with <CODE>ECHO A0</CODE>.</P>
1454
1455 <H2><A NAME="ss9.4">9.4</A> <A HREF="#toc9.4">Is it possible to call the command "POINT expr, expr" with more than two values, as needed, for example, for points in XYDYDY sets? </A>
1456 </H2>
1457
1458 <P>No, but you can do something like this (given the set type was
1459 properly defined):</P>
1460 <P>
1461 <PRE>
1462 S0 POINT expr, expr
1463 S0.Y1[S0.LENGTH - 1] = expr
1464 S0.Y2[S0.LENGTH - 1] = expr
1465 ...
1466
1467 </PRE>
1468 </P>
1469
1470
1471 <H2><A NAME="s10">10.</A> <A HREF="#toc10">Miscellaneous </A></H2>
1472
1473
1474
1475 <H2><A NAME="ss10.1">10.1</A> <A HREF="#toc10.1">Does Grace have an UNDO function? </A>
1476 </H2>
1477
1478
1479 <P>Not yet. Although it would be nice to have such a
1480 function, it is quite hard to implement. We can only ask you
1481 to be careful with certain actions and remember to <CODE>save
1482 often and early (TM)</CODE>.</P>
1483
1484 <H2><A NAME="ss10.2">10.2</A> <A HREF="#toc10.2">Can Grace plot 3D graphs? </A>
1485 </H2>
1486
1487
1488 <P>No. Not yet, I should say. Be patient. It may take quite a
1489 while to implement it, though.</P>
1490
1491 <H2><A NAME="ss10.3">10.3</A> <A HREF="#toc10.3">Which features are planned for the future? </A>
1492 </H2>
1493
1494
1495 <P>Among the many features planned to be introduced in the
1496 future are enhancing the spreadsheet-like frontend for dataset
1497 operations, contour plots, many-level undo/redo, image import and
1498 manipulations, a library for 2-way communication, ... Then 3D plots
1499 would come :-)</P>
1500
1501 <H2><A NAME="ss10.4">10.4</A> <A HREF="#toc10.4">Are there things that Grace can't do? </A>
1502 </H2>
1503
1504
1505 <P>Probably. If you have an idea for improvement, post it as a wish to
1506 the w3todo web page (see question
1507 <A HREF="#w3todo">Known Bugs</A>).</P>
1508
1509 <H2><A NAME="ss10.5">10.5</A> <A HREF="#toc10.5">How should Grace be acknowledged when it is used to prepare a publication? </A>
1510 </H2>
1511
1512
1513 <P>You are not required to, but you if wish, refer to the home page link
1514 (see
1515 <A HREF="http://plasma-gate.weizmann.ac.il/Grace/">Grace home page</A>).</P>
1516
1517 </BODY>
1518 </HTML>