mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Multiaxis: add support for Qwt multiaxis plot
This commit is contained in:
committed by
Kristian Bendiksen
parent
22d6e3f853
commit
dde0487024
@@ -670,13 +670,13 @@ void RiuGroupedBarChartBuilder::addBarChartToPlot( QwtPlot* plot, Qt::Orientatio
|
||||
|
||||
// Set up the axis to contain group texts and tick marks
|
||||
{
|
||||
QwtPlot::Axis axis = QwtPlot::xBottom;
|
||||
QwtPlot::Axis valueAxis = QwtPlot::yLeft;
|
||||
QwtAxis::Position axis = QwtAxis::XBottom;
|
||||
QwtAxis::Position valueAxis = QwtAxis::YLeft;
|
||||
|
||||
if ( barOrientation == Qt::Horizontal )
|
||||
{
|
||||
axis = QwtPlot::yLeft;
|
||||
valueAxis = QwtPlot::xBottom;
|
||||
axis = QwtAxis::YLeft;
|
||||
valueAxis = QwtAxis::XBottom;
|
||||
}
|
||||
|
||||
QwtScaleDiv groupAxisScaleDiv( 0, currentBarPosition );
|
||||
|
||||
Reference in New Issue
Block a user