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
 How can I set the symbol shape in a Line+Symbol pl

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
heo2sh Posted - 12/09/2003 : 08:26:23 AM
I want to set the symbol shape in a line+symbol plot.
I use this command to add a plot:
int nPlot = grphLayer.AddPlot(crvData,IDM_PLOT_LINESYMB);
How can I set the type of the symbol?
2   L A T E S T    R E P L I E S    (Newest First)
cpyang Posted - 12/09/2003 : 7:35:31 PM
The Theme access from OC can be used, which we currently do not have documentation. Try the following code and set break point to the code and can see the details of the Tree and all can be controlled.



void scatter_plot(int ntype)
{
Worksheet wks("Data1");
Curve crvData(wks, 0, 1); // plot A(x) B(y)
GraphPage gp;
gp.Create(NULL, CREATE_HIDDEN); // default template, create as hidden to avoid unneeded drawing
GraphLayer glay = gp.Layers();
int nPlot = glay.AddPlot(crvData, IDM_PLOT_LINESYMB);
glay.Rescale();

DataPlot dp = glay.DataPlots(nPlot);

Tree tr;
tr = dp.Curve; // get the internal Curve branch of Theme Tree
tr.Symbol.Shape.nVal = ntype; // set symbol type, same as in Theme
dp.Curve = tr; // update surface branch from tree
gp.SetShow();// show it when all it ready
}




To learn about Theme,
1. right click on symbol and choose Save Format as Theme,
2. when dialog open, uncheck All then check the "Symbol Line and Fill", this will filter out the Theme to a smaller set.
3. click the Edit button (pencil) to open the tree


CP



Mike Buess Posted - 12/09/2003 : 3:02:10 PM
I'm not sure that there is an Origin C method for setting the symbol type yet. You might have to use LT_execute("set datasetname -k symbolindex").

Mike Buess
Origin WebRing Member

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