DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

In Report I have a 2D axis system. How do I properly calculate the grid line interval for exactly 10 dots per tick

Having trouble getting the dots to line up correctly with the ticks of a 2D axis.  I would like to have exactly 10 dots per tick.  The programming is no problem.  I set the D2AxisGridInterv variable after opening the 2D axis object.  I can't seem to figure out how to calculate the number that results in exactly 10 dots per tick.  I also have tried manually iterating to get 10 dots and have not been succesful.  What is this number based from?  It says as a percentage of the diagonal of the worksheet.  I can get pretty close to 10 dots per tick, but it is always off just a bit.  Is there really a way to get scientific based dots on a 2D axis so that the data can be analyzed from a printed plot?

 

Thanks-Ryan

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

Hi Ryan,

 

I'm not entirely sure what you mean by "dots", but I'm going to guess you meant grid lines set to dot display.  In that case you can align the grid lines to the axis sub-ticks, then set the sub-ticks to invisible.  The sub-ticks can be set to N of them per axis tick.  Attached you will find an example of 10 dotted vertical grid lines per X axis tick.

 

Let me know if you meant something else,

Brad Turpin
DIAdem Product Support Engineer
National Instruments

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

Pretty close, but I'm still missing something.  I also can't seem to get them to line up like I want.  Attached is a plot that I'm trying to mimick. 

 

No minitick grid, grid style is dots, one dot per minitick and one dot per tick, 9 miniticks, all aligned.

 

OK-Thanks

0 Kudos
Message 3 of 4
(3,995 Views)

Hi Ryan,

 

This new graph is a different scenario from what you were asking for at first.  I am attaching a new TDR file with the old TDM/TDX data files in a new ZIP file for you below.  As far as I can tell, this reproduces what you posted in the PDF file.

 

Let me know if something is missing,

Brad Turpin
DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 4 of 4
(3,957 Views)