LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Y-grids for multi-plot graphs

How do I get the Y-axis gridlines to change for a given Y-axis (I have three)? As it is now, I have different scales for each Y-axis and the gridlines for all of them are displayed at the same time. This makes the graph very messy and it is difficult to discern which plot goes with which gridline.
0 Kudos
Message 1 of 3
(3,037 Views)
You can progammatically fix the Y scale grid setting using a property node Y-scale Marker Vals.
It accepts an array of numeric of the position of markers (grid lines) to be placed on your graph.

I enclose a simple VI that displays on a graph a grid uniformely spaced at selected step.

Regards,

Alberto Locatelli
Message 2 of 3
(3,037 Views)
The way a multiplot graph is displaying scales is a bit curious.
It's true a graph displys all scales at the same time, so if the various Y scales are different the display is confusing as you said.
I suggest you some workarounds.
First of all, arrange all Y axis in order to have the same or multiple scale so that all grid lines are equally spaced.
Second, display the same lines for all Y scales (customizing the tabs as Alberto says).
Third, display grid lines for different Y axes with different colors (maybe choosing pastel colors for grid lines and the same but bright color for plots).
Fourth, hide all grid lines but one. It seems that this built-in option works in a curious way: if you have a black graph background you can see some pixels painted along X grid
lines where Y grid should lie, and if you have another color background you can see the complete but 'hided' grid lines, as if they were painted in black instead of transparent. So I suggest you to use for grid lines the same color as graph background : that way the Y axis grid lines are effectively hided.
Hope this helps
Roberto


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 3 of 3
(3,037 Views)