home *** CD-ROM | disk | FTP | other *** search
/ Aminet 10 / aminetcdnumber101996.iso / Aminet / misc / sci / xmgr24b.lha / xmgr / docs / FAQ < prev    next >
Text File  |  1995-12-02  |  17KB  |  466 lines

  1. $Id: xmgr.faq,v 1.1 1995/05/27 02:35:00 pturner Exp pturner $
  2.  
  3. Archive-name: xmgr-faq
  4. Last-modified: APR 18, 1995
  5. Posting-Frequency: whenever
  6. Version: 0.0
  7.  
  8. xmgr FAQ
  9.  
  10. [Last changed: 18 APR 95]
  11.  
  12. This article contains the answers to some Frequently Asked Questions (FAQ) 
  13. often seen on the xmgr mailing list. It is posted to help reduce volume in 
  14. this mail list and to provide hard-to-find information of general interest.
  15.  
  16.    This article is located at:
  17.  
  18.     ftp://ftp.teleport.com/pub/users/pturner/xmgr/xmgr.faq
  19.     http://www.teleport.com/~pturner/xmgr/xmgr.faq
  20.  
  21. This FAQ is maintained by Paul J Turner (pturner@teleport.com).
  22.  
  23. Send updates and corrections to me at that email address.  It would help if
  24. the subject line contained the phrase "For xmgr FAQ". I will be making a
  25. HTML version available sometime in the future.
  26.  
  27. Thanks to all who have contributed to this FAQ.
  28.  
  29. ================================
  30.  
  31. This article includes answers to the questions listed below. Key:
  32.  
  33.                 + questions NEW to this issue;
  34.                 * CHANGES since last issue.
  35.  
  36. -1)+ Administrivia - How do I get off this *%!$&*#@ mailing list?
  37.  0)+ What is the most recent version of xmgr and where do I get it?
  38.  1)+ I've found a bug in xmgr, how do I report it?
  39.  2)+ While compiling xmgr on [Suns or Linux] I get error 
  40.      messages about missing include files?
  41.  3)+ How are math operations done between sets?
  42.  4)+ How do I set the background color of a plot, outside of the graph frame?
  43.  5)+ I run xmgr and get the following error messages:
  44. Warning: translation table syntax error: Unknown keysym name: osfPageLeft
  45. Warning: ... found while parsing '<Key>osfPageLeft:SWLeftPage()'
  46. [...]
  47.  6a)+ What happened to the Alternate axis?
  48.  6b)+ I'd like plot data against an axis on the right (top) and another
  49.       data set against an axis on the left (bottom)?
  50.   7)+ Can I use different fonts, symbols, font size, or sub/superscript in Xmgr?
  51.   8)+ How is hh:mm:ss data input? I have logfiles with time in this format 
  52.       but seem unable to persuade xmgr to read it.
  53.   9)+ How do I get the Angstrom symbol to show up in labels, titles, text?
  54.  10)+ Will xmgr do 3d plots, animation and/or contouring?
  55.  11)+ How do I build xmgr under Solaris 2.4?
  56.  12)+ Where is the non-linear curve fitting module in 3.0x?
  57.  13)+ Where is grbatch? How does batch printing work?
  58.  14)+ Why aren't fills using patterns printed using the PostScript
  59.       driver?
  60.  
  61. ------------------------------------------------------------------
  62.  
  63. -1) How do I get off this *%!$&*#@ list?
  64.  
  65. Please, do not send requests to unsubscribe to the mailing list, 
  66. there are over 250 people on the list and everyone of them will
  67. need to process your message, if you are having problems with your 
  68. subscription, send mail to me directly.
  69.  
  70. To subscribe or unsubscribe send mail to:
  71.  
  72.         majordomo@admin.ogi.edu
  73.  
  74. with a body of (not in the "Subject:" line):
  75.  
  76.         subscribe xmgr
  77.  
  78. to subscribe to the list. To unsubscribe from the list:
  79.  
  80.         unsubscribe xmgr
  81.  
  82. You'll need to make sure that when unsubscribing, you use
  83. the same E-mail address you used to subscribe. If it is not
  84. possible to use that address, then use
  85.  
  86.         unsubscribe xmgr jdoe@host.inst.domain
  87.  
  88. Where jdoe@host.inst.domain is the original address. If you aren't
  89. sure what the address you used is, check the header on any mail 
  90. message you've received from the list.
  91.  
  92. For information about majordomo at our site, sent mail to 
  93. majordomo@admin.ogi.edu with a body of
  94.  
  95.         help
  96.  
  97. Use the address xmgr@admin.ogi.edu to send mail to the list.
  98.  
  99. The xmgr mailing list is unmoderated, meaning that mail sent
  100. to the list is automatically forwarded to all subscribers.
  101.  
  102. ------------------------------------------------------------------
  103.  
  104.  0) What is the most recent version of xmgr and where do I get it?
  105.  
  106.      The most recent version of xmgr is 3.01 patchlevel 4 and is
  107.      located at the URL:
  108.  
  109.         ftp://ftp.teleport.com//pub/users/pturner/xmgr-3.01pl4.tar.Z
  110.         ftp://ftp.ccalmr.ogi.edu//pub/xmgr/xmgr-3.01pl4.tar.Z
  111.  
  112.      The previous version 3.01 patchlevel 3 is at:
  113.  
  114.         ftp://ftp.ccalmr.ogi.edu//pub/xmgr/xmgr-3.01pl3.tar.Z
  115.  
  116. ------------------------------------------------------------------
  117.  
  118.  1) I've found a bug in xmgr, how do I report it?
  119.  
  120.      You can send mail to the mailing list (xmgr@admin.ogi.edu) or
  121.      to pturner@teleport.com. Included in your report should be
  122.      the version of xmgr and the patchlevel. Also, include the 
  123.      machine type, operating system name + version number, and
  124.      any other information that might be useful.
  125.  
  126. ------------------------------------------------------------------
  127.  
  128.  2) While compiling xmgr on [Suns or Linux] I get error 
  129.      messages about missing include files?
  130.  
  131.      Depending on the vendor the answer to this question varies:
  132.  
  133.      a. The include files are there but in a non-standard place.
  134.         Check with your local sys admin.
  135.      b. The system is a SUN. Prior to Solaris 2.4 (this may be
  136.         incorrect), Motif was something that needed to be purchased.
  137.      c. The system is running Linux, again, Motif is commercially 
  138.         available.
  139.      d. The system uses the Motif window manager but may require
  140.         a 'development' license to get the libraries and include files
  141.         needed to build xmgr. Seems that most vendors do this.
  142.  
  143. ------------------------------------------------------------------
  144.  
  145.  3) How are math operations done between sets?
  146.  
  147. When using Edit/Transformations/Evaluate expression, it is important to 
  148. keep in mind that x and y refer to the set selected in the choice item of 
  149. this popup. If you set a=y and don't change the set number, then b=y will 
  150. load to a and b the same y (in this case, y from set 0). Computing y=a-b 
  151. will get you a vector of zeros. The proper sequence of events is:
  152.  
  153. 1. Copy s0 to s2 using Edit/Set ops/Copy set.
  154. 2. Using Edit/Transformations/Evaluate expression with the set 0 
  155.    selected, perform a=y.
  156. 3. Select set 1.
  157. 4. Perform b=y.
  158. 5. Select set 2.
  159. 6. Perform y=b-a.
  160. 7. Done.
  161.  
  162. This popup is a holdover from a long time ago (with 3.02 given the new 
  163. way of selecting sets, it will become more useful). I'd use the 
  164. File/Commands popup and explicitly give the set number as follows:
  165.  
  166. copy s0 to s2
  167. s2.y = s1.y - s0.y
  168.  
  169. Now, s2 will have the difference. It is important to note that the 
  170. lengths of s0 and s1 must be the same.
  171.  
  172. Another example follows, save to a file and use File/Commands/Read:
  173.  
  174. # Demo of operations between sets
  175. #
  176. # Open File/Commands and Read this file, then
  177. # click on Replay.
  178. #
  179. # activate s0, s1 and set their lengths
  180. #
  181. activate s0 1024
  182. activate s1 1024
  183. #
  184. # load the index (1, 2, ..., 1024) of each point to x
  185. #
  186. s0.x = index
  187. s1.x = index
  188. #
  189. # Stuff something into y of both sets
  190. #
  191. s0.y = 2*cos(2*pi*x/100) + 5 * sin(2*pi*x/35)
  192. s1.y = 3*cos(2*pi*x/100) + 7 * sin(2*pi*x/35)
  193. #
  194. # Let's save s0 to s2
  195. #
  196. copy s0 to s2
  197. #
  198. # Compute the difference
  199. #
  200. s0.y = s0.y - s1.y
  201. #
  202. # Autoscale on the difference
  203. #
  204. autoscale s0
  205. #
  206. # pause a bit
  207. #
  208. sleep 5
  209. #
  210. # let's look at all of the active sets
  211. #
  212. autoscale
  213.  
  214. ------------------------------------------------------------------
  215.  
  216.   4)  How do I set the background color of a plot, outside of the graph frame?
  217.  
  218.   Use graph 0 as the background:
  219.     1.  set the viewport for graph 0 such that 0<x<1 and 0<y<1
  220.     2.  fill the frame of graph 0 with whatever color you want
  221.     3.  graphs 1 and up will plot in front of graph 0, so the desired
  222.          effect is achieved.
  223.  
  224. "Stewart A. Rounds, Hydrologist, Portland, OR " <sarounds@wrdmail.er.usgs.gov>
  225.  
  226. ------------------------------------------------------------------
  227.  
  228.    5) I run xmgr and get the following error messages:
  229.  
  230. xmgr (xmgr) v3.01pl3
  231. (C) Copyright 1991-1994 Paul J Turner
  232. All Rights Reserved
  233. Warning: translation table syntax error: Unknown keysym name: osfPageLeft
  234. Warning: ... found while parsing '<Key>osfPageLeft:SWLeftPage()'
  235. Warning: translation table syntax error: Unknown keysym name: osfPageRight
  236. Warning: ... found while parsing '<Key>osfPageRight:SWRightPage()'
  237. Warning: translation table syntax error: Unknown keysym name: osfPageLeft
  238. Warning: ... found while parsing '<Key>osfPageLeft:PageUpOrLeft(1)'
  239. Warning: translation table syntax error: Unknown keysym name: osfPageRight
  240. Warning: ... found while parsing '<Key>osfPageRight:PageDownOrRight(1)'
  241. Warning: translation table syntax error: Unknown keysym name: osfPageLeft
  242. Warning: ... found while parsing '<Key>osfPageLeft:SWLeftPageGrab()'
  243. Warning: translation table syntax error: Unknown keysym name: osfPageRight
  244. Warning: ... found while parsing '<Key>osfPageRight:SWRightPageGrab()'
  245. [...]
  246.  
  247. Get the XKeySymDB file from the X11R6 distribution.  Put it somewhere
  248. where you can get at it and 
  249.  
  250.   setenv XKEYSYMDB /place/where/you/put/XKeysymDB
  251.   
  252. This will satisfy xmgr.  It seems that a lot of the motif KeySym names
  253. are missing from the XKeySymDB that comes with SunOS
  254. (/usr/openwin/lib/XKeySymDB).  The X11R6 one lives in
  255. lib/X11/XKeySymDB.
  256.  
  257. and...
  258.  
  259. The file XKeySymDB, which is found in /usr/openwin/lib on Sun
  260. Workstations and possibly in /usr/X11/lib on others does not have all
  261. the Motif XKeySyms defined.  Get the XKeySymDB file from the X11R5 or
  262. X11R6 distribution, put it somewhere convenient and "setenv XKEYSYMDB
  263. /path/where/you/put/XKeySymDB".  (Perhaps this file could be distributed 
  264. with future versions of xmgr?)
  265.  
  266. ["M. Scott Wills" <mwills@zephyr.ess.harris.com>]
  267.  
  268. ------------------------------------------------------------------
  269.  
  270.  6a)+ What happened to the Alternate axis, it was in 2.10,  but missing
  271.       in 3.0x?
  272.  6b)+ I'd like plot data against an axis on the right (top) and another
  273.       data set in a different scale against an axis on the left (bottom)?
  274.  
  275. The alternate axis made for complications in the axis drawing routines
  276. that made that section of code too difficult to maintain - I dropped it
  277. in favor of overlaying graphs. With this you can achieve the same effect,
  278. but you'll need to pay close attention to which graph is the 'current'
  279. graph. There is a selection in the Graph ops toolbox that should make it
  280. easier to set up the 2 graphs. This is also how to plot data sets 
  281. in different scales against an axis on the right an an axis on the left.
  282.  
  283. ------------------------------------------------------------------
  284.  
  285.   7) Can I use different fonts, symbols, font size, or sub/superscript in Xmgr?
  286.  
  287.    Yes, Xmgr has all these features. Wherever you can type a text in xmgr, 
  288.    e.g. Axis labels, graph title, text from Strings&Things, etc., you can use 
  289.    all those features within the same text.  
  290.    Here is how, the following is quoted from the online help provided with 
  291.    Xmgr v3.0 and higher.
  292.  
  293. Changing fonts within a string 
  294.  
  295.    To change fonts within a string precede the font number listed below by a
  296.    backslash. To turn subscripting or superscripting on or off use \s for
  297.    subscripts and \S for superscripting. Font selection is current for the
  298.    remainder of the string or until the next font change. Subscripts and
  299.    superscripts remain for the remainder of the string or until \N is seen. To
  300.    print a backslash use \\. To backspace use \b. To begin underlining
  301.    use \u, to stop underlining use \U. \+ increases the size of the
  302.    characters and \- decreases the size of the characters.
  303.  
  304.    xmgr uses the Hershey fonts to draw text on the screen, but PostScript 
  305.    fonts for hardcopy. There are discrepancies between the two sets of fonts 
  306.    and of this writing, there are problems with the mapping of Greek and 
  307.    special characters.
  308.  
  309.    Font # Font 
  310.       0 .... Complex Roman on screen, maps to Times-Roman. 
  311.       1 .... Triplex Roman on screen, maps to Times-Bold. 
  312.       2 .... Complex Italic on screen, maps to Times-Italic. 
  313.       3 .... Triplex Italic on screen, maps to Times-BoldItalic. 
  314.       4 .... Simplex on screen, maps to Helvetica. 
  315.       5 .... Duplex on screen, maps to Helvetica-Bold 
  316.       6 .... Complex Italic on screen, maps to Helvetica-Oblique. 
  317.       7 .... Triplex Italic on screen, maps to Helvetica-BoldOblique. 
  318.       8 .... Simplex Greek on screen, maps to the lower 128 characters of the
  319.       Symbol font. 
  320.       9 .... Symbols on screen, maps to the upper 128 characters of the
  321.       Symbol font. 
  322.       x .... Special symbols 
  323.  
  324.    Summary of other special commands 
  325.       + .... increase size 
  326.       - .... decrease size 
  327.       b .... backspace length of previous character 
  328.       s .... begin subscripting 
  329.       S .... begin superscripting 
  330.       u .... begin underline 
  331.       U .... stop underline 
  332.       N .... return to normal 
  333.  
  334. Example2: 
  335.  
  336.  1- Using font 0 and e prints as epsilon from the Simplex Greek font, i.e
  337.    the expression
  338.  
  339.           \0F\sX\N(\8e\0) = sin(\8e\0)*e\S(-X)\N*cos(\8e\0) 
  340.  
  341.    prints roughly (in TeX/LaTeX language )
  342.          
  343.            F_X(\epsilon) = \sin(\epsilon)*e^{(-X)}*\cos(\epsilon) 
  344.  
  345.  
  346.  2- To increase (decrease) the font size use use \+ ( \- ) special commands.
  347.     The expression
  348.     
  349.     \8p\0\S\+-\N
  350.  
  351.     prints (in TeX language) 
  352.  
  353.     \pi^{-}
  354.     with increasing the size of the minus sign.
  355.  
  356.  
  357. NOTE: Special characters are mapped to the keyboard, the present mapping is
  358.       not very well organized and may change. 
  359.  
  360. "Mostafa G.H. Mostafa" <mostafa@gad.phy.ornl.gov>
  361.  
  362. ------------------------------------------------------------------
  363.  
  364.  8) How is hh:mm:ss data input? I have logfiles with time in this format 
  365.    but seem unable to persuade xmgr to read it.
  366.  
  367. All the date formats require that the input data be in julian days,
  368. i.e. number of days since some the start of some "epoch".
  369.  
  370. There are a couple of programs in the contrib directory that comes with
  371. xmgr to help you manipulate dates, but if you output your data in
  372. (floating point) "days" and graph the result, you'll get the idea.
  373.  
  374. As I recall, the default "autoscale" (heckbert?) mode was very
  375. confusing when used with the date formats.  It is either broken w.r.t.
  376. dates or it simply chose poor values for the data I was giving it (i.e.
  377. tick labels were all 12:00, or some such).  If this happens to you,
  378. switch the autoscale mode to "fixed" instead of "heckbert".
  379.  
  380. BTW: the "Julian" day apparently begins at noon, so you may need to add
  381. an offset of 0.5 (days) to your data.
  382.  
  383. ["M. Scott Wills" <mwills@zephyr.ess.harris.com>]
  384.  
  385. ------------------------------------------------------------------
  386.  
  387.   9)+ How do I get the Angstrom symbol to show up in labels, titles, text?
  388.  
  389.   ISO Latin encodings were added to the PostScript driver by Przemek 
  390.   Klosowski (przemek@rrdbartok.nist.gov). You can now print the Angstrom 
  391.   symbol. There is no onscreen display of the extended characters (something 
  392.   will show, but it won't be right). 3.02 will use the xvertext routines 
  393.   so that it will be a bit more WYSIWYG.  Use \c to go into the upper 
  394.   128 characters and \C to return to normal. \cE\C is the Angstrom symbol.
  395.  
  396. ------------------------------------------------------------------
  397.  
  398.  10)+ Will xmgr do 3d plots, animation and/or contouring?
  399.  
  400.   Not any time soon - conflicts with work the author does for pay.
  401.  
  402. ------------------------------------------------------------------
  403.  
  404.  11)+ How do I build xmgr under Solaris 2.4?
  405.  
  406.  Here are the lines that make xmgr under solaris 2.4,
  407.  which I suggest be added to the FAQ or into the Makefile
  408.  itself.  Several folks have submitted these suggestions,
  409.  and we are grateful for their help.
  410.  
  411.  The pointers -L and -R tell xmgr where to look for its
  412.  libraries (the environment variable LD_LIBRARY_PATH should
  413.  work but often doesn't, so it's easier to do this here).
  414.  The conditional compilation flag -DSOLARIS is pretty crucial
  415.  but isn't mentioned anywhere that we could find it.
  416.  
  417.  ### Sun - Solaris 2.4 - Motif 1.2.2/X11R5
  418.  LIBS = -L/usr/openwin/lib -L/usr/dt/lib -lXm -lXt -lX11 -lm \
  419.  -R/usr/openwin/lib  -R/usr/dt/lib
  420.  INCLUDES = -I/usr/openwin/include -I/usr/dt/include
  421.  CC = gcc -g -O -DSOLARIS
  422.  ### End Sun Solaris
  423.  
  424.  This is for xmgr-3.01pl3, I should add.
  425.  
  426.  Dean Urban
  427.  Duke School of the Environment
  428.  
  429.  ------------------------------------------------------------------
  430.  
  431.  12)+ Where is the non-linear curve fitting module in 3.0x?
  432.  
  433.  The non-linear curve fitting routines are still in 3.0x but not
  434.  immediately visible. You can get them by executing
  435.  
  436.  xmgr -nonl
  437.  
  438.  The reason for this is that these routines are not supported and
  439.  were in earlier versions for testing purposes only. Be very, very
  440.  careful about the results.
  441.  
  442.  ------------------------------------------------------------------
  443.  
  444.  13)+ Where is grbatch? How does batch printing work?
  445.   
  446.  Grbatch is simply a copy of xmgr named grbatch or a symbolic link from 
  447.  xmgr (xvgr) to grbatch. In the case of the symbolic link:
  448.  
  449.  ln -s xmgr grbatch
  450.  
  451.  done wherever the xmgr binary is located will do the trick (rehash
  452.  or logout and login to make sure that grbatch shows up in your path).
  453.  Executing grbatch with no command line parameters or data files will produce 
  454.  a hardcopy on the default printer.
  455.  
  456.  ------------------------------------------------------------------
  457.  
  458.  14)+ Why aren't fills using patterns printed using the PostScript
  459.       driver?
  460.  
  461.  The fills and patterns drawn on the screen and the .mif output are
  462.  not matched in the PostScript output, grayscale is the best that
  463.  can be done. I know how to do it, but I haven't found the time.
  464.  
  465.  ------------------------------------------------------------------
  466.