LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Labelling graph

You cannot obtain a round axis scale if you use axis auto apdate: you must switch to manual scaling ans use SetAxisScalingMode with the appropriate values to obtain your scale. You coud for example use maxMin1D to obtain the maximum value and format your scale accordingly, or let the graph update its scale, read back min and max value and the manually adjust the scale.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 21 of 25
(1,729 Views)
Actually, you can, Roberto. If the axis is in autoscale mode, you can use the "Loose Fit" option in the Edit Axis Settings dialog, together with the "Loose Fit Units" setting, to control how much "padding" is added to the axes for the purposes of autoscaling. (You can click on the ? icon for a detailed explanation)

The corresponding attributes are ATTR_XLOOSE_FIT_AUTOSCALING and ATTR_XLOOSE_FIT_AUTOSCALING_UNIT.

Luis
0 Kudos
Message 22 of 25
(1,714 Views)
Aha! I never undestood completely that "loose fit" parameter so I ended up erasing it from my memory Smiley Surprised
It's true that you never end up your training here!
 
Ok, one for you, zero for me in this game, Luis! Smiley Very Happy


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 23 of 25
(1,710 Views)

Thanks guys for the help.

Appreciated!

k1_ke

0 Kudos
Message 24 of 25
(1,682 Views)

Hi guys have another quick question for you. I have attached a picture of my problem.....well basically its the labelling on a bar graph....say if the bar gets smaller.....the start & end values dont fit thus one of them is missing....i use insertaxisitem()  to label tha graph...

Is tehre any way round this problem......so if the start n end reading overlap..shift the start more to the left or something...

Looking forward for a positive reponse...

Thanks

k1_ke

 

0 Kudos
Message 25 of 25
(1,644 Views)