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
 Zoom Plot for IDM_PLOT_CONTOUR
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

dkudlay

USA
22 Posts

Posted - 12/04/2009 :  6:33:42 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
The wiki has code for IDM_PLOT_LINE, when I try to plot a IDM_PLOT_CONTOUR type chart, the Zoom rectangle never appears on the primary graph. Am I missing something?

Iris_Bai

China
Posts

Posted - 12/06/2009 :  10:11:04 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

This because there are many space white area in line plot graph, so can set BehindData.nVal to 1. But for contour plot, there is not white area, so need set BehindData.nVal to 0 to not behind of data plot, and need to set fill color as NONE.

    // set border color to red and increame line width to make border clear more
    tr.Root.Border.Color.nVal = SYSCOLOR_RED;
    tr.Root.Border.Width.dVal = 3;
    
    tr.Root.Fill.Color.nVal = -4; // no fill color
    tr.Root.BehindData.nVal = 0; // set graph object not back of data


Iris
Go to Top of Page

dkudlay

USA
22 Posts

Posted - 12/07/2009 :  12:46:53 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you Iris, the only thing is that once the background is gone it is harder to grab the rectangle. Is there an Opaque switch that will leave the graph area visible but will allow to grab the rectangle as well? That's not a big priority just thought I'd ask.
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