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
 2 questions: visualize of 15 curves in 15 colors
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

tony_lincoln

USA
Posts

Posted - 06/20/2008 :  01:02:52 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hey,

I have 15 curves, which have different x and y coordinates. The format of the txt file for these 15 curves are like this:

curve_0 curve_1 curve_2 ... curve_15
x01 y01 x11 y11 x21 y21 ... x151 y151
x02 y02 x12 y12 x22 y22 ... x152 y152
x03 y03 x13 y13 x23 y23 ... x153 y153
x0n y0n x1n y1n x2n y2n ... x15n y15n

I can paste these curves into workbook in originpro ver 8, then choose them (make them black), then press right button of my mouse, choose plot/multi-curve/double-Y and plot them in a 2D way.
The default color for these 15 curves is blue. I need to change the blue color for every curve into another color. So I can see these 15 curves together, which have specific color seperately.

My question 1 is, Can I change the curve color AUTOMATICALLY, using origin C programming or other skills?
The input is one txt file which has the format mentioned above,
The output is a 2D visualization of 15 curves with 15 different colors.

Quesiton 2 is, How can I do the global fitting after the visualization? I guess that it is better to use Origin C programming as well?

Thank you very much and I appreciate your help!
Tony

Shirley_GZ

China
Posts

Posted - 06/23/2008 :  02:58:37 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Check that if the curves are grouped up by choosing Graph: Plot Setup to open the Plot Setup dialog box. If not, you can select all the curves and choose Group by right-click on the selected curves to group them up.
After that, you can change the colors in this way:
1.Double click the graph to bring up the Plot Detail dialog box:

2. Click Increment of Line Color in the Group tab, and then choose By One in the drop down list. The curve color will be changed automatically. You also can change the Edit Mode into Independent, in this way you can change the color of curves one by one.

In Origin 8.0, you don't need write Origin C programming to do global fitting, you can choose Analysis: Fitting: Nonlinear Curve Fit to open the NLFit dialog box, and then do the fitting as below:



Originlab Technical Service Team
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