Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to display a second y-axe on the right hand side of the plot (CWGraph)?

Hi,

 

I'm using CWGraph in Visual C++ 2003.  I have added a second y-axe in the plot, however, both axes are listed in the left hand side of the plot.  It doesn't look very clear as to which is which.  I would like to display the second y-axe on the right hand side.  Is there any way to do this?  Thanks.

0 Kudos
Message 1 of 2
(6,147 Views)

Bonjour

 

By setting  the left attributs of the ticks & the labels of this second Y axis to false and setting the right attributsto true

 

I'm using VC6++ and I'm doing this

 

        CNiVariant axesNameY2("YAxis-2");
        CCWTicks ticksY2 = m_GraphComponent->GetAxes().Item(axesNameY2).GetTicks();
        ticksY2.SetLeft(false);
        ticksY2.SetRight(true);

        CCWLabels labelsY2 = m_GraphComponent->GetAxes().Item(axesNameY2).GetLabels();
        labelsY2.SetLeft(false);
        labelsY2.SetRight(true);
 

0 Kudos
Message 2 of 2
(6,131 Views)