DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the scaling of 2D Axis in REPORT

Solved!
Go to solution

Hi,

 

Just wondering if anyone knows how to change/adjust the X & Y axis of a 2D Axis plot in REPORT like below?

 

Kane_Lok_0-1682710862017.png

 

In addition, when the 2D axis being transferred to REPORT, all units in plot got lost.  Is there any way to add them back on?  Many thanks.

 

Regards,

 

Kane

0 Kudos
Message 1 of 5
(1,448 Views)

Double click the chart and go to 'Axis Parameters'.  Each axis has a scaling tab.

gsklyr_0-1682950143364.png

 

0 Kudos
Message 2 of 5
(1,400 Views)

Hi gsklyr,

 

How do I do it in script?  Cause I have several tens of files to plot, so I have to do it on script to save time.  Many thanks 🙇

 

Regards, 

 

Kane

0 Kudos
Message 3 of 5
(1,393 Views)
Solution
Accepted by topic author Kane_Lok

Honestly I right click element from REPORT and then 'copy as script' and then paste in SCRIPT and then just figure it out from there along with the very detailed help files.  I can help with something specific but for example this is how I changed the scaling of a Yaxis of a chart named "2DAxis1" to manual mode and changed the beginning of the Yaxis to -120

 

Report.ActiveSheet.Objects.Item("2DAxis1").YAxis.Scaling.AutoScalingType = eAxisAutoScalingManual
Report.ActiveSheet.Objects.Item("2DAxis1").YAxis.Scaling.Begin = -120
0 Kudos
Message 4 of 5
(1,388 Views)

Hi gsklyr,

 

You are just great as you have just taught me a method of copy as script.  Your suggestion works and I add something extra to my codes by using the copy as script.  Many thanks.

 

Regards,

 

Kane

0 Kudos
Message 5 of 5
(1,354 Views)