04-04-2006 02:26 PM
Hi Roberto,
Sorry to bother you again. I am still having trouble labelling the lower and upper bounds of the graph. I looked at the attachment...did the same but my lower value doesnt seem to b showing. I step through it and found out that the line where i calculate PixelsPerUnit /= (max - min); is zero...i dont knw why....but the max and min values are 18667 and 0 respectively......so when i am labelling the lower value i use...
PlotText (edge_handle, Graph[head_sel_index], hot_1_avg - 0.25 - (double)len / PixelsPerUnit, 1.0, msg, VAL_APP_META_FONT, VAL_BLACK, VAL_TRANSPARENT);
if i get rid of "(double)len / PixelsPerUnit" i get the value bt its inside the inner bar(red bar in ur plot from the left)... i would like it to b outside the red bar jus like its done for the upper bound.
hope to hear from you soon.
Thanks
k1_ke
04-05-2006 01:38 AM
04-05-2006 07:06 AM
Hi Roberto,
Thanks a lot! it worked out great!
k1_ke
04-11-2006 08:28 AM
Hi Roberto,
I yet again hv another question for you. Now i was wondering if u can help with labelling the max n min values in this graph on the left y axis....refer to the jgep file attached....below is what i do...
MaxMin1D (&array[0], (loop+len_index)/2, &cold_thres, &cold_index,&hot_thres, &hot_index);
SetAxisScalingMode (video_handle, VIDEO_GRAPH, VAL_BOTTOM_XAXIS,VAL_MANUAL, 0, (loop+len_index)/2);
PlotXY (video_handle, VIDEO_GRAPH,X , RxData.IVals, (loop+len_index)/2,VAL_UNSIGNED_INTEGER, VAL_UNSIGNED_SHORT_INTEGER,
VAL_THIN_LINE, VAL_EMPTY_SQUARE, VAL_SOLID, 1, VAL_RED);
i jus want to display the range from 0 to 17000 and then the max n min on the left y axis....Also can u let me knw hw i can set the zoom feature on this graph....
thanks alot..
k1_ke
04-11-2006 09:02 AM
04-11-2006 10:21 AM
Thanks yet again Roberto
It worked out great.
k1_ke
04-25-2006 08:35 AM
Hi guys,
I was wondering if someone can help me out with labeling the graph....i use PlotY() to plot a graph....the x axis has a label as i know the max n use autoscale but i want to change the lable say previous if x was from 0-100 i want the label to show 0-1000 but without changin the graph....i tried using SetAxisScalingMode() and InsertAxisItem() they both change the scale thus the change is altered.
Is there a way i can go round this.
thanks
k1_ke
04-25-2006 11:02 AM
04-25-2006 02:01 PM
Hi Luis,
Thanks for the reply. Yeah it worked out great.
thanks
k1_ke
04-28-2006 01:56 PM