more on 'plot' in XwinNMR 3.5 on SGI

From: Phil Dennison (dennison@uci.edu)
Date: Thu May 26 2005 - 12:23:14 PDT


Dear all,

The only responses I received were along the lines of use XwinPlot
instead. Now, I like XwinPlot for fancy things like positioning
expanded regions etc, but I still think that a lot of standard plots
are much easier with the old plot/view commands. Maybe Bruker just
did too good a job with the old system using pscal etc.

One particular area that I think is lacking in XwinPlot is printing
to a remote printer. I have a lot of users who access my SGI
datastations remotely via X-servers, mostly from Apple computers.
I've set up an au program where they can select their own remote
printer from a list and then the parameter 'curplot' is temporarily
changed for that one plot. So that if they are in the NMR lab, or
somewhere else, next time they want to print that spectrum they don't
have to mess with 'edo' or 'setres'. In XwinPlot one can change the
printer destination in 'print setup', or even save a list of setup
files, but I don't think this is as user friendly.

Maybe there is a better way that I haven't found yet.

Anyway, I've been determined to play with the other plot options.

The on-screen 'autoplot' loads the screen display limits into the
current XwinPlot layout and prints the spectrum. The command
'plot_1d' can be typed with the same effect. Typing 'autoplot' is not
the same though as the plot limits are not updated from the display.
This maintains the difference between pressing 'plot' and typing
'plot' in XwinNMR 2.6.

I have found that it is possible to use the 'autoplot' button to
update the plot limits and prevent any printed output by making sure
that the XwinPlot layout won't print. The way I have that works is to
set up a dummy network printer that doesn't appear in /etc/printcap.

This is fine, and then 'plot' and 'view' can be used as normal. But
it would be nice to put all this in one au program. For example I
have a 'vplot' au program that executes 'view' then asks whether or
not to print the spectrum. So I tried to write something that would
make use of the 'plot_1d' command to set the plot limits. My idea was
that most datasets would have a 'proper' XwinPlot layout file as
standard, so that the au program would first save the name of this
layout, then load the dummy layout, execute 'plot_1d' reload the
original layout file, then execute view and plot.

The problem is that the command 'plot_1d' doesn't appear to be usable
in au programs or even in macros. I tried all the combinations of
PLOT_1D, plot_1d, XCMD("plot_1d"), CPR_exec, etc with no success -
the 'plot_1d' command does not work. I think that the correct suntax
is XCMD("plot_1d"). This compiles OK, but on running produces the
error 'ILLEGAL COMMAND plot_1d'.

Does anybody have any thoughts on this?

Regards,

Phil.

-- 
Dr Phil Dennison
NMR Facility Director			(949)824-6010 (office)
Department of Chemistry			(949)824-5649 (lab)
University of California, Irvine	(949)824-8571 (fax)
Irvine, CA 92697-2025			dennison@uci.edu
USA



This archive was generated by hypermail 2b29 : Thu Dec 29 2005 - 01:02:06 PST