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 for Programming
 Forum for Origin C
 PLOTTING BAR GRAPHICS
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

aragues

Spain
Posts

Posted - 12/14/2005 :  05:08:04 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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.

Leo_Li

China
Posts

Posted - 12/21/2005 :  02:47:19 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
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