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
 PLOTTING BAR GRAPHICS

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
aragues Posted - 12/14/2005 : 05:08:04 AM
Origin Version (Select Help-->About Origin): Origin Pro 7.5
Operating System: Windows XP

Hello everybody

I've got a problem related to plot bar graphics.
I'd like the whole bar was filled in the same color, not showing a contour line in black.

Here is the script I use in plotting function:

void plot_p(double vv)
{
GraphPage grph;
BOOL bOK = grph.Create("Column", CREATE_VISIBLE_SAME);
string percn;
percn.Format ("Power", vv);
grph.Rename(pow);

GraphLayer grlay = grph.Layers(0);

percn.Format ("Power_p", vv);
Curve cd(percn);
int mPlot = grlay.AddPlot(cd, 3);

grlay.DataPlots(nPlot).SetColor(3, TRUE);
}

Which instruction should I add?

I'd be greated if anyone could help me. Thank you.
1   L A T E S T    R E P L I E S    (Newest First)
Leo_Li Posted - 12/21/2005 : 02:47:19 AM
Hi Aragues,

At the end of your function body, add the following codes:
 
DataPlot dp = grlay.DataPlots(nPlot);
Tree tr;
tr = dp.Curve;
tr.Pattern.Border.Color.nVal = 17;
dp.Curve = tr;


Note that 17 = index of White Color if your color palette (see Format -> Color Palette dialog) is default.

Leo
OriginLab Corp.

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