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
 Heat Map with Origin C
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Mattiasdm

Italy
1 Posts

Posted - 06/16/2015 :  11:31:50 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2015 (64-bit) Sr2
Operating System: win8

Hello,
I'm training to plot a heat map with Origin C from a virtual matrix.
I am not able to find the id "IDM_PLOT_" for the heat map to use in the command "AddPlot()".
May you please tell me such id?

Mattia

Sophy

China
Posts

Posted - 06/16/2015 :  11:33:31 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, Mattica:

You can try the following OC code:

#define	STR_HEATMAP_TEMPLATE	"heatmap.otp"
void	test_CreateHeatMap()
{
	//create graph from template and get first layer to add plot
	GraphPage gp;
	gp.Create(STR_HEATMAP_TEMPLATE);
	GraphLayer gl = gp.Layers(0);
	//prepare data for plot
	MatrixLayer ml("[MBook1]");
	MatrixObject mo(ml, 0);
	//plot data on graph layer.
	gl.AddPlot(mo, IDM_PLOT_CONTOUR);
	return;
}
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