Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

four charts on a waveformGraph to share the same xAxis but differ yAxis

I have about four charts on a wavefromGraph to share the same xAxis but
different yAxis. How can I do that?
0 Kudos
Message 1 of 9
(5,614 Views)
Hi Matt,

Unfortunately, Measurement Studio does not have this feature at this time. However, if all your waveforms have the same time base, you could use 4 separate carefully positioned graphs. Each graph could be placed underneath the graph to the bottom, and the graph to the bottom could be positioned over the graph to the top to cover it's x-axis. In this way, the only visible x-axis would be on the graph at the very bottom. I realize this is not ideal but this is the only option at the moment.

Please feel free to submit a product suggestion for this feature on our website at the Product Suggestion Center.

Regards,
0 Kudos
Message 2 of 9
(5,590 Views)

Hi Matt,

Are you saying that you have a WaveformGraph with 4 plots associated with that graph? If so, then I have to correct James and say that you can have those 4 plots associated with 1 X-Axis but have a different Y-Axis for each plot.

Every plot has the ability to specify which X-Axis and Y-Axis it’s associated with. To do this follow these steps:

1) You first need to create several other Y-Axis objects by right-clicking on the
WaveformGraph and selecting Edit Y-Axes....
2) Choose the Add button and add however many you like. Click OK.
3) Right-click on the WaveformGraph and select Edit Plots....
4) Choose a particular Plot and click the drop-down menu next to the YAxis property under the Axes category. See attached "Associate Y-Axis.jpg" snapshot.

Hope this helps and let me know if I was misunderstanding your question.

Best Regards,

Jonathan N.
National Instruments
0 Kudos
Message 3 of 9
(5,587 Views)
Thank you for your info.

1. attached graph1.jpg shows two yAxis, however, this is not exactly what I need. as two yAxis on the same area.

2. attached graph0.jpg shows something I want : green graph yAxis (min 0, max 5 for example) , yellow graph yAxis (min 0, man10 for example)  ....  each graph should has its own yAxis section and caption (G1, G2, G3..)

Thanks
.
Download All
0 Kudos
Message 4 of 9
(5,587 Views)
Hi Matt,

The snapshots make it more clear of the desired behavior that you want. Unfortunately this behavior isn't possible and the closest you can come is shown through the Stacked Plot User Control with C# example.

There hasn't been much demand for this feature yet but I would encourage you to submit a product suggestion via the link James mentioned earlier.  This way we can consider this feature in future versions of Measurement Studio. 

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 5 of 9
(5,582 Views)
Hi Jonathan;


I downloaded mentioned source code of
Stacked Plot User Control with C# .
But it has problems (bugs) to run and to view designer. Do you have a better version to email me?

Thanks
0 Kudos
Message 6 of 9
(5,578 Views)
Hi Matt,

That example was created in Visual Studio .NET 2003 so if you are using Visual Studio 2005, you might have to run through the upgrade wizard. Visual Studio 2005 should prompt you to run this wizard.

If you are using Visual Studio 2003, you should have any problems. Attached is a screenshof of what the form looks like when running. Now based off what you wanted, you might want to just stick with the original behavior of having side by side axes and just change up the colors to match the plots.

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 7 of 9
(5,560 Views)

hello,i make it use you method,but it can't get it.there is only one plot.and the curve which is plotted is usually the Plot[1] which is the last number of plots.but if i use the same yaxis,it can get two plots.what can i do?

0 Kudos
Message 8 of 9
(4,517 Views)

Can you provide some additional details on the behavior you are seeing? It sounds like you are seeing different behavior with one or more y-axes.

Are you using the Stacked Plot User Control with C# example mentioned earlier?

If not, can you explain what you are trying to accomplish and how you are implementing it?

 

Since this forum is over 5 years old, it might be helpful to create a new thread. This will give your posts more exposure and more users are likely to see it.

 

Regards,

Anjelica W.
National Instruments
Product Marketing Manager
FlexLogger and TestStand
0 Kudos
Message 9 of 9
(4,496 Views)