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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 same color for two dataplots

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
flombone Posted - 07/22/2013 : 07:10:05 AM
Origin Ver. and Service Release (Select Help-->About Origin): Origin pro 9.0.0
Operating System: windows 7 pro


Dear all,

I am plotting two series X1,Y1, X2,Y2 on the same graph (same layer) with the command:
plotxy iy:=((1,2),(3,4)) plot:=200;
The problems come when I try to change the colors and the width of the two series. I would like to use the same color for both plots. Can anyone please help me? It should not be too difficult, but I had no success so far.

Thanks in advance,

Paolo
2   L A T E S T    R E P L I E S    (Newest First)
flombone Posted - 07/24/2013 : 08:52:48 AM
works perfectly, thank you greg!

i had tried to ungroup the plot, the missing step was the line:
range raPlot1 = 1

greg Posted - 07/22/2013 : 10:05:23 AM
When you pass multiple XYRanges to plotxy, Origin groups those plots by default. You cannot change individual member properties when grouped. You could create the first plot then add the second, at a cost of few more lines of script, but you could also ungroup the plots then use the SET command to change plot properties:

plotxy iy:=((1,2),(3,4)) plot:=200; // This creates a Grouped plot
layer -gu; // This ungroups
range raPlot1 = 1; // Range pointing to first plot
range raPlot2 = 2; // Range pointing to second plot
set raplot1 -c 5; // Set color of first
set raplot2 -c 5; // then second

Consult the Help for the SET command to access other plot properties.

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000