02-03-2012 04:04 AM
Hi,
I am looking for a solution in order to hide the tick labels on an axis when creating a report with DIAdem script. Code snippet is:
Call GraphObjOpen(D2AxisXObj(1))
' Hide Ticks
D2AxisXScaleType = "tick manual" ' NO EFFECT IN REPORT
D2AxisXTickType = "no Ticks" ' NO EFFECT IN REPORT
D2AxisXTxt = "Blaa" ' WOULD PLOT "BLAA" in REPORT
Call PicUpdate
CallGraphObjClose(D2AxisXObj(1))
Unfortunately this sample does not work, although I am pretty sure that I am modifying the correct grahics object, i.e. see the comment behind the variable assignments.
Can anybody help?
Thanks,
Daniel
Solved! Go to Solution.
02-03-2012 08:19 AM
Hi MrDan,
You're really close. Try putting the PicUpdate command below both the GraphObjClose commands in your script. That is indeed the right property assignment to avoid tick displays:
Call GraphObjOpen("2DAxis1") Call GraphObjOpen("2DXAxis2_1") D2AxisXTickType = "no Ticks" Call GraphObjClose("2DXAxis2_1") Call GraphObjOpen("2DAxis1") Call PicUpdate
Brad Turpin
DIAdem Product Support Engineer
National Instruments
02-03-2012 09:07 AM
Hi Brad,
thanks for the quick reply!
But the solution does not work.
Please see the attached sample plot: I'd like to have no text on the x-axis, except for the bottom plot.
Any idea?
Thanks,
Daniel
02-03-2012 10:41 AM
Hello Daniel,
I think there is a misconception as to what the "ticks" parameter does.
"Ticks" are only the little lines on the X or Y-axis, they do not include the labels on the ticks, which you can influcence with these parameters (with the Object definition):
D2AxisXSize = 0 D2AxisXColor = ""
You can either set the color to "" (= no color) or the font size to 0, or both.
That should do the trick.
Let us know if you have additional questions,
Otmar