DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Hide x-tick labels (DIAdem script)

Solved!
Go to solution

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

0 Kudos
Message 1 of 4
(4,258 Views)

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

0 Kudos
Message 2 of 4
(4,252 Views)

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

 

 

0 Kudos
Message 3 of 4
(4,250 Views)
Solution
Accepted by topic author MrDan

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

Otmar D. Foehner
0 Kudos
Message 4 of 4
(4,246 Views)