DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

View 2D chart x-axis scaling

Hello

 

I would like to fully control the 2D chart view (CurveChart2D object) using SUD.

While I have sufficiently dealt with Y scaling, X axis scaling seems to be more difficult.

 

I've already known I need to use the XBegin and XEnd properties or call the SetZoom method of the CurveChart2D object.

If I need to time scale the x-axis or set the cursor, I need to calculate these time values appropriately. But how to distinguish what the x-axis of the chart is currently displaying?

 

I haven't found any object property that tells me what time mode the chart is currently displaying if, for example, the user adds a channel to the chart.

There are four time settings. Absolute time, relative time, relative time with offset, and legacy(compatible) mode. But apart from that, sometimes only the index can be displayed if no time channel is set.

In general, there are lots of ways a 2D chart can get into these modes.

You can add a wave channel, an XY-channel, a numeric-only channel, with or without an X-channel specified in the Settings dialog, the chart type can be set to n-System, time channels can have a non-zero offset, etc.


Is there any easier way to solve this problem?

 

There is a related task. How to distinguish what value the XEnd and XBegin properties (and also the x cursor props) currently return - relative time, absolute time or index value? 

 

Thank you in advance.

John Horak

 

 

 

 

 

0 Kudos
Message 1 of 1
(106 Views)