Subscribe Bookmark RSS Feed

JMP Automation VB or C#, How do I add Row Legend

Folks, how do you add row legend onto the graph when using Automation.
3 REPLIES
mattf

Community Trekker

Joined:

Jun 23, 2011

Here is a VB example that adds a legend to Graph Builder.
Is that what you were after for a graph legend?



Best regards,
-Matt
Matt,
What you send me will probably do. However, I was creating plots using VB/C# rather than using RunCommand..

For example,
Dim surPlot As JMP.Survival
surPlot = dataTable_Current.Document.CreateSurvival
surPlot.LaunchAddTime("Time")
surPlot.LaunchAddCensor("Cen")
surPlot.LaunchSpecifyCensorCode(0)
surPlot.LaunchAddGroup("Groups")
surPlot.FailurePlot(True)
surPlot.SurvivalPlot(False)
surPlot.WeibullEst(True)
surPlot.WeibullPlot(True)
surPlot.Launch()

After this graph appears, how do I add a row legend ? Typically, when on manual or JSL, I know how, but I wanted to use VB/C# access.

Thanks

Bruce
JMP Tech support provide an answer to the problem, here is the solution

myJMP.RunCommand("Report(Survival[1])[FrameBox(1)] << Row Legend(:Variable, color(1), marker(1));")