The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Adding legends to plots
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

beenyy

USA
Posts

Posted - 04/07/2004 :  4:20:41 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I need to add a legend to a plot. How do I go about doing this? Currently I'm using the code:

GraphLayer g1 = grphData.Layers();
int ch75Plot = g1.AddPlot(crve, IDM_PLOT_LINE);

But this just adds the plot with no legend.

Thanks!

Mike Buess

USA
3037 Posts

Posted - 04/07/2004 :  4:49:02 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
g1.LT_execute("legend");

Mike Buess
Origin WebRing Member
Go to Top of Page

beenyy

USA
Posts

Posted - 04/08/2004 :  8:05:31 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks Mike!
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000