how to implement [as titleStr ] for Display
Blackwidow
I have been trying to figure out how to properly title (rename) my plots, which I produce by using 'display.'
So far, I have been just doing "Display/N=$"name of the plot"wave2 vs wave1" to get it going but when I looked at documentation (Help for Display), I found "[as titleStr ]," which appeared to be another way to give a name to the plot I am creating.
I wasn't able to implement [as titleStr ] though and I would appreciate it if someone could write a line that shows how to use [as titleStr ].
Be careful- a window name is not the same as the window title. Here is an example that (assuming there are no graphs yet) makes a graph whose *name* is Graph0, but has "This is a title" displayed in the title bar of the graph window:
display junk as "This is a title"
The title, that is, the part after "as" is a string expression. The window name, that is, the part after /N, is a name, which is why you need the $ operator. There are restrictions on what characters you can use in a window name.
DisplayHelpTopic "Window Names and Titles"
DisplayHelpTopic "Graph Names"
DisplayHelpTopic "Using $ to Refer to a Window"
September 14, 2018 at 05:06 pm - Permalink