View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

helplog.4: vertical labels specplot txset

Frank Valdes wrote on Jan 05, 2005

NUMBER:	4
KEYWORDS:	vertical labels specplot txset
DATE:	Wed Jan  5 15:12:05 MST 2005
FROM:	valdes

Q:	How do I write vertical labels in SPECPLOT?

A:	Unless the application, such as IGI or SPECTOOL, provide features for
	adjusting the text attributes, or an application like IDENTIFY
	automatically writes vertical text, the only control you have is
	with the "cursor mode" capability.  To learn about this type
	"help cursors" in IRAF.  Cursor mode is quite a nice feature since
	it applies to all graphs but it has the drawback that any redraw of
	the screen (by the application) will lose the changes and it is not
	possible to put the cursor mode commands in a file to be executed
	again.

	Before describing what to do with SPECPLOT I will point out that
	you might investigate the tasks noted above.  In particular,
	SPECTOOL is a powerful alternative to the tasks in the standard
	NOAO  spectroscopy packages.  It has features for stacking, like
	SPECPLOT, and for marking and labeling things, like IDENTIFY, and
	general interactions like SPLOT.  There are GUI control panels to
	do things like set the graphics attributes.

	Now for SPECTOOL start up the program.  As described in the cursor
	mode help page, to get the graphics on your screen to look like
	they will look (approximately) in a postscript file you should type
	":.txq h".  Then do a 'r' to redraw the SPECPLOT graph. This allows
	the lettering to be drawn with strokes rather than hardware fonts.

	Next rotate the lettering path with ":.txset up=180".  Then start
	adding the labeling with the 'T' key available in cursor mode.  You
	can save intermediate states with ":.w <filename>" which you
	restore with ".r <filename>".  Note that if you write to the same
	file more than once it will append.  When you read it back the
	screen will flash with all of the past saves.  Finally dump the
	graph with something like ":.snap eps".  Again, if you do a redraw
	SPECPLOT will forget about the changes you made with 'T'.

Last post on Jan 05, 2005