Hi, I was wondering what is the standard procedure if I want to output multiple graphs in exact the same size and format -- the color bar position would be the same, the size of the graph would be the same as well as all the others? What is a good way to achieve this purpose? Thank you all!
Do you mean creating the same type of graph from different waves?
I like to write a function which sets the formatting. Use the ModifyAxis window etc. to change the graph to you likings, then copy and paste the commands into a function, e.g.:
//Make some data: Make/O aa SetScale/Ix, 0, 2*pi, "", aa
aa= cos(x)
//create and format graph
function MakePlot(w) wave w
// Display data Display/K=1 w
// modify axis and marker ModifyGraph mode=3,marker=7 ModifyGraph tick=2,mirror=1,minor=1,btLen=4,stLen=2
I like to write a function which sets the formatting. Use the ModifyAxis window etc. to change the graph to you likings, then copy and paste the commands into a function, e.g.:
Make/O aa
SetScale/I x, 0, 2*pi, "", aa
aa= cos(x)
function MakePlot(w)
wave w
// Display data
Display/K=1 w
// modify axis and marker
ModifyGraph mode=3,marker=7
ModifyGraph tick=2,mirror=1,minor=1,btLen=4,stLen=2
// axis labels
Label left "\\Z14 y-axis"
Label bottom "\\Z14 x-axis"
//Set size and margins
ModifyGraph width=566.929,height=368.504
ModifyGraph margin(left)=85,margin(bottom)=85
//set annotation
String name = NameOfWave(w)
String AnnotationString
sprintf AnnotationString, " Data:\r \\s(%s) %s ", name, name
TextBox/C /N=NewText /S=3 /A=RB AnnotationString
// set ColorScales etc
end
November 19, 2015 at 05:56 am - Permalink
November 19, 2015 at 06:42 am - Permalink
November 19, 2015 at 11:34 am - Permalink
November 19, 2015 at 11:35 am - Permalink