Date/Time axis to Linear?

I'm wondering how or what i can write into a procedure that will change the axis mode from date/time to linear. for some reason the type of file i'm using has all of the axes in date/time format when i first start the program. i know i can do it by hand by going into modify axis, and then to axis mode, but as i am working with many files and graphs, this method is very time consuming. unless i change it each time i use a new file, all the sequential graphs i open through my procedure have axes in date/time mode. I have attatched the date/time graph, and a linear graph to show what i want. is there something i can write into my procedure that will prevent this from happening and put all of the axes into linear mode instead of Date/Time from the start? Thanks

BH
Graph_Linear.jpg Graph_date-time.jpg
Quote:
i know i can do it by hand by going into modify axis, and then to axis mode


When you do this, the dialog generates and executes a command. Look in the history area of the command window and you will see what command you entered.
Actually, the switch to/from date/time mode is a special case in which the dialog just goes ahead and alters the wave's scaling without generating a command. I don't know why I did it that way- I think at the time I blocked on the fact that the dialog generates ModifyGraph commands, and the command required is a SetScale command.

At any rate, to change from Date/Time to linear, you need to change the X units of the Y wave (for a waveform) or the Data units for the X wave (if an XY pair) to something other than "dat". You do that with the SetScale command.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com