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
 Origin Forum
 I need to plot a graph with different colours.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

daniele90

4 Posts

Posted - 10/11/2018 :  10:42:25 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:
Hi, I have a worksheet, A (x) and B (y) with 1040 points.
I would like to draw different pairs of points with different colors. For example from 1 to 104 in blue, from 105 to 209 in red, etc etc ....

Thank you!

Edited by - daniele90 on 10/11/2018 2:47:00 PM

Hideo Fujii

USA
1582 Posts

Posted - 10/11/2018 :  3:58:06 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi daniele90,

You can apply "indexing" coloring to the data plot by referring to the extra data column. So, when you have
a plot from A(X) and B(Y), first make an extra column C in the worksheet, and enter the color values as
1=BLACK, 2=RED, etc. (see https://www.originlab.com/doc/LabTalk/ref/List-of-Colors) in this column.
Then, double-click the plot to open the Plot Details dialog. Select "Line" tab (or "Symbol" tab for symbols),
and for Color, you can set Index:col(C) in the "Color Chooser". Origin will assign the colors according
to the color list. See details: https://www.originlab.com/doc/Origin-Help/PlotColor-DatasetControl#Indexing

Hope this helps.

--Hideo Fujii
OriginLab
Go to Top of Page

daniele90

4 Posts

Posted - 10/12/2018 :  05:57:36 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
thank you so much, now I can draw a multicolored chart.

but I get this correspondence between numbers and colors:

1---->red,
2--->yellow,
3---->cyan,
4----> blue..

different from the one in the link:
https://www.originlab.com/doc/LabTalk/ref/List-of-Colors.
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 10/12/2018 :  10:21:55 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi daniele90,

It seems that you have chosen "Map:col(C)" (for color mapping with color scaling) instead of
"Index:col(C)". Please recheck. (Color mapping is useful for the smooth color transition using
palette for e.g., in contour plot.)

One correction, when you choose color indexing, the coloring is controlled by the color list
which was also shown in the Color Chooser. Its default is "Q13 Color4Line" in recent versions.
You can change it to other color list there, or modify from the "Color List" tab in the Plot Details
dialog.

Hope this helps.

--Hideo Fujii
OriginLab

Edited by - Hideo Fujii on 10/12/2018 10:24:01 AM
Go to Top of Page

daniele90

4 Posts

Posted - 10/15/2018 :  04:57:10 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
thank you very much Hideo Fujiii, you have been very helpful!!
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