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
 Problem in color of the plot
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

phdkrish19

Japan
12 Posts

Posted - 10/07/2022 :  12:28:14 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 2022b
Operating System: windows 11

Hi,

I am creating two Y plots by using the command plotxy iy:= ((44,47),(44,48)) plot:=201 . 44,47,48 are column numbers. But the two Y plots are in same color - Black. I want them to be in different color. Please let me know how to right a program for creating the plot with two different colors.

Thanks in advance
Krish.

YimingChen

1623 Posts

Posted - 10/07/2022 :  12:14:49 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
layer.plots.COLORINC=1;
Go to Top of Page

phdkrish19

Japan
12 Posts

Posted - 10/13/2022 :  02:01:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks a lot!

quote:
Originally posted by YimingChen

layer.plots.COLORINC=1;


Go to Top of Page

phdkrish19

Japan
12 Posts

Posted - 10/13/2022 :  02:04:21 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks!

But I want them to be my preferred color. for example, I want the plots in Green and blue. Please let me know what the command for this is.

Thanks in advance
Krishnan.

quote:
Originally posted by YimingChen

layer.plots.COLORINC=1;


Go to Top of Page

YimingChen

1623 Posts

Posted - 10/13/2022 :  09:18:57 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Assuming you have made a grouped line plot, you can try the script below to set the first line color using HTML color code.

range r1 = 1; 
set r1 -gm 1; // set edit mode to independent
set r1 -c Color("#00FF00");  // set color


James
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