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
 Forum for Origin C
 masking and plotting data

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
akerstan Posted - 05/08/2009 : 08:15:02 AM
Origin Ver.8G and Service Release v8.0951
Operating System: XP

Hello everybody,

I am trying to write a program for graphing some data.
The problem is that some of the data in the column I want to plot is useless. Therefor I want to mask it.

At first I chose the data to mask:


string c1="worksheet -s 11 1 11 167";
LT_execute(c1);

string c2="mark -w1 Book1";
LT_execute(c2);

string c3="worksheet -s 11 640 11 -1";
LT_execute(c3);

string c4="mark -w1 Book1";
LT_execute(c4);

And now I want to get a plot where I can see the left data points.


Curve crv1(wks, 0, 10);
GraphPage gpg;

gpg.Create("Origin");

GraphLayer gly = gpg.Layers();


gly.AddPlot(crv1);

DataPlot dp = gly.DataPlots(-1);

dp.SetRange(100, 200);

gly.Rescale();


After I executed my program I have got the data masked in the column but can still see it in my plot...

Please... Is there somebody with an idea?
1   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 05/26/2009 : 4:17:23 PM
The display of Masked datapoints is handled by the @MP system variable.
When set to 0, masked points will display in the current mask color.
When set to 1, masked points will not display in a graph. (They do still display in a worksheet.)

In Origin C, you can use the LT_Set_Var function to manipulate @MP:

LT_Set_Var("@MP", 0); // Display masked points in graph
LT_Set_Var("@MP", 1); // Hide masked points in graph

You will need a refresh after execution.

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