LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remove min and max labels on graph axis markers

Solved!
Go to solution

Hello,

 

Is it possible to remove the min and max labels on graph axis markers? E.g. see the screenshot below. Can I remove the numbers circled in green without changing the range of the axis? In some cases (such as this one), the presence of the min and max numbers causes other marker values to not be displayed (red line). I am aware that the "10" will be displayed if I make the graph bigger, but that is not an option for my application. FYI - the screenshot is of the front panel of the attached VI.

 

Thanks for any help,

 

Regards,

Stu

 

Graph markers example.png

0 Kudos
Message 1 of 9
(4,983 Views)

HI Orbital,

 

Why don't you just change the police size? You can do it dynamically using property node.

I made you a VI.

Orbital.PNG

 

 

 
Sabri JATLAOUI - Certified LabVIEW Architect - Certified LabVIEW Developer
0 Kudos
Message 2 of 9
(4,975 Views)
Solution
Accepted by topic author Orbital

You can't remove them because they are key features to be able to set the max and min scale of the graph from the front panel if you aren't using auto-scaling.

Message 3 of 9
(4,971 Views)

Hi Sabri,

 

Thanks for your reply. Unfortunately changing sizes (of the whole graph, or of the marker text size) is not an option for my application.

 

I am really looking to set to the axis range (e.g. -5 to +15) completely independently of the marker values (e.g. 0 and 10). I cannot do this currently because I'm not sure how I can remove the min and max marker text.

 

Regards,

Stu

0 Kudos
Message 4 of 9
(4,969 Views)

@RavensFan wrote:

You can't remove them because they are key features to be able to set the max and min scale of the graph from the front panel if you aren't using auto-scaling.


Ah. So it's not possible... that's unfortunate.

 

Setting axis range and axis markers independently is possible in graphing software. That's a bit of a limitation if it can't be done in LabVIEW.

0 Kudos
Message 5 of 9
(4,965 Views)

Hi Orbital,

 

If this is a requirement then you can create a custom control from your graph and insert object to hide the min and max.

 

I just did it for the max.

Orbital2.PNG

 

But it could hide other marker if there too close.

 

Regards

Sabri JATLAOUI - Certified LabVIEW Architect - Certified LabVIEW Developer
Message 6 of 9
(4,959 Views)

Hi Sabri,

 

Thanks for the idea. I think that would work to hide the min/max labels. Unfortunately I don't think it works for the graph in my first post, because my desired marker (at "10") won't show up either, which is due to the max marker at "15" being too close. LabVIEW decides that there isn't enough space to draw the 10.

 

Regards,

Stu

0 Kudos
Message 7 of 9
(4,950 Views)

While we are discussing this, please vote for my idea here. Thanks!

Message 8 of 9
(4,942 Views)

@altenbach wrote:

While we are discussing this, please vote for my idea here. Thanks!


 

Done! Hopefully some others who see this will vote too.

 

(Good idea about temporary edge markers for manually entering values too)

0 Kudos
Message 9 of 9
(4,935 Views)