Hi!
I feel like this should be simple, but I must be missing something. I have a bunch of columns and I want to graph all of them in a loop. I set up the loop so it creates all the graphs, I just can't seem to be able to save them... Here is my code so far:
wind = {};
For(i = 1, i <= nitems(List) - 4, i++,
wind = New Window(List,
Distribution(
Stack(1),
Continuous Distribution(
Column(List),
Horizontal Layout(1),
Vertical(0),
Count Axis(1),
Normal Quantile Plot(1)
),
SendToReport(
Dispatch(
{"Distributions"},
"1",
ScaleBox,
{Min(-0.000151), Max(0.000151), Inc(0.000002), Minor Ticks(1),
Add Ref Line(0.00015, Solid, "Dark Red", "", 1),
Add Ref Line(-0.00015, Solid, "Dark Red", "", 1)}
),
Dispatch(
{"Distributions"},
"Distrib Quantile Plot",
FrameBox,
{Frame Size(622, 207)}
),
Dispatch(
{"Distributions"},
"Distrib Outlier Box",
FrameBox,
{Frame Size(622, 46)}
),
Dispatch(
{"Distributions"},
"Distrib Histogram",
FrameBox,
{Frame Size(622, 504)}
)
)
);
);
wind << Save Picture("C:\Users\sophia\Documents\test\", PNG);
);
The bolded line is the one I'm having a problem with. I was hoping that the new windows would save at the path I assigned, but with the name I have already given it and just add the .PNG.
Thanks for any help!