我在任务中 hData0=GRAPH_DATA_YT_Create(GUI_LIGHTBLUE,390,dBData,390);//GUI_DARKGREEN
GRAPH_AttachData(WM_GetDialogItem(menu1Win,GUI_ID_GRAPH0),hData0);
hData1=GRAPH_DATA_YT_Create(GUI_YELLOW,390,DegData,390);//GUI_DARKGREEN
GRAPH_AttachData(WM_GetDialogItem(menu1Win,GUI_ID_GRAPH0),hData1);
hData2=GRAPH_DATA_YT_Create(GUI_GREEN,390,AmpData,390);//GUI_DARKGREEN
GRAPH_AttachData(WM_GetDialogItem(menu1Win,GUI_ID_GRAPH0),hData2);
生成三组数据
在graph中
GRAPHWin=WM_GetDialogItem(hWin,GUI_ID_GRAPH0);
GRAPH_SetGridVis(WM_GetDialogItem(hWin,GUI_ID_GRAPH0),1);//ÏÔê¾íø¸ñ
GRAPH_SetGridDistX(WM_GetDialogItem(hWin,GUI_ID_GRAPH0),50);//oáÖáíø¸ñ¼ä¾à
GRAPH_SetGridDistY(WM_GetDialogItem(hWin,GUI_ID_GRAPH0),50);//×YÖáíø¸ñ¼ä¾à
GRAPH_SetBorder(WM_GetDialogItem(hWin,GUI_ID_GRAPH0),95,15,30,30);//¿Ø¼téÏÏÂ×óóò±ß¾à
GRAPH_SetColor(WM_GetDialogItem(hWin,GUI_ID_GRAPH0),GUI_DARKGRAY,GRAPH_CI_BORDER);
GRAPH_SetLineStyle(WM_GetDialogItem(hWin,GUI_ID_GRAPH0),GUI_LS_DOT);
hScale3=GRAPH_SCALE_Create(25,GUI_TA_RIGHT,GRAPH_SCALE_CF_VER
tiCAL,50);
GRAPH_AttachScale(WM_GetDialogItem(hWin,GUI_ID_GRAPH0),hScale3);
GRAPH_SCALE_SetFactor(hScale3,4);
GRAPH_SCALE_SetTextColor(hScale3,GUI_GREEN);
hScale=GRAPH_SCALE_Create(55,GUI_TA_RIGHT,GRAPH_SCALE_CF_VERTICAL,50);
GRAPH_AttachScale(WM_GetDialogItem(hWin,GUI_ID_GRAPH0),hScale);
GRAPH_SCALE_SetFactor(hScale,0.2);
GRAPH_SCALE_SetOff(hScale,250);
GRAPH_SCALE_SetTextColor(hScale,GUI_LIGHTBLUE);
hScale1=GRAPH_SCALE_Create(85,GUI_TA_RIGHT,GRAPH_SCALE_CF_VERTICAL,50);
GRAPH_AttachScale(WM_GetDialogItem(hWin,GUI_ID_GRAPH0),hScale1);
GRAPH_SCALE_SetFactor(hScale1,1);
GRAPH_SCALE_SetOff(hScale1,150);
GRAPH_SCALE_SetTextColor(hScale1,GUI_YELLOW);
hScale2=GRAPH_SCALE_Create(330,GUI_TA_RIGHT,GRAPH_SCALE_CF_HORIZONTAL,50);
GRAPH_AttachScale(WM_GetDialogItem(hWin,GUI_ID_GRAPH0),hScale2);
GRAPH_SCALE_SetFactor(hScale2,0.02*DispScale);
GRAPH_SCALE_SetTextColor(hScale2,GUI_GREEN);生成三个垂直坐标尺,和一个水平坐标尺
我想hData0,hData1,hData2分别用hScale3,hScale,hScale1的坐标尺度,可是显示的三条曲线都采用的液晶屏本身的坐标,没有和graph中的任何一个垂直坐标尺度相对应,这个应该怎么设置呢?