04-28-2023 02:42 PM
Hi,
Just wondering if anyone knows how to change/adjust the X & Y axis of a 2D Axis plot in REPORT like below?
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
Solved! Go to Solution.
05-01-2023 09:09 AM
Double click the chart and go to 'Axis Parameters'. Each axis has a scaling tab.
05-01-2023 09:21 AM
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
05-01-2023 09:32 AM
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
05-03-2023 03:23 AM
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