LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

hide grid secondary axes export image

Solved!
Go to solution

Hi there,

I'm trying to export some simplified images from graphs, with the grid hidden since it tends to make things look messy. The thing is, when there are multiple y-axes this option seems to be ignored on the second axis. Does anyone have any idea how to get around this?

 

Thanks!

0 Kudos
Message 1 of 6
(4,492 Views)
Solution
Accepted by topic author marc1uk

Hi marc1uk,

 

If you don't require the grid axis on your exported simplified image, then I would suggest disabling the grid lines for the extra axis, which can be done by right clicking on the graph and navigating into the Scales tab. Under grid style and colours you can change the grid style by clicking on the picture of a graph and selecting one of the three options, the leftmost being disabled gridlines. 

 

After trying it out for myself, I cant see any clear reason why it doesn't work. so I will have to look into it further. 

 

If you want all sets of gridlines to be visible in your program you could, for the time being, look into using property nodes to disable and re-enable the gridlines that are causing the problem. 

 

Kind regards,

Matt H
Applications Engineer
National Instruments UK
Message 2 of 6
(4,462 Views)

Hi Matt,

That's a great suggestion - after a while I realised I could turn the grids off with the property nodes on the graph, but I'd prefer to have them visible in the program as they're sufficiently faded as to not render the graph unreadable. It's only when exporting as a simplified image that they cause problems. A few property nodes to turn them off & then back on should do the trick nicely.

 


Thanks!

 

0 Kudos
Message 3 of 6
(4,457 Views)

Hi marc1uk,

 

There might be a problem in using property nodes in that Im struggling to see how you select the axis on the right hand side, which is the one that causes problems when you export a simplified image.

 

Im still looking into this, and will let you know if I find a way around it.

 

Kind regards,

Matt H
Applications Engineer
National Instruments UK
0 Kudos
Message 4 of 6
(4,449 Views)

Hi marc1uk,

 

On trying some more things you should be able to select the scale using the active scale property. The active scale number will probably be 1 for the scale on the right of the graph and 0 for the one on the left, but you may need to try this, 

 

Kind regards,

Matt H
Applications Engineer
National Instruments UK
0 Kudos
Message 5 of 6
(4,447 Views)

Hi Matt,

Yep, using a property node to select the ActiveYScale, then subsequent properties of that scale should be the way to refer to each of them. The order is easy enough to determine from the order they were added or by name in the graph properties. It's the same method I use to programmatically set scale names, plot names, which Y axis to use for each plot and so-on. Takes a little bit more work (and space) than the standard invoke node though!

 

hide grids.PNG

 

Trial Image.PNG


Thanks again,

Regards

0 Kudos
Message 6 of 6
(4,432 Views)