diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2014-02-07 09:07:16 +0200 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2014-02-07 09:12:25 +0200 |
commit | b897230c71d26b1bc4ec2436a4292d33415d1b48 (patch) | |
tree | 32205add611c24ba6142d9ed3d4d9fab32f39f63 /examples/surface/surfacegraph.cpp | |
parent | c6ccdc2c94e4da07c43c528dee1e396d29d60bb3 (diff) |
Added axis labels to surface slice
Task-number: QTRD-2854
Change-Id: Icf6e57a39b1d7044b522daadedbe0df5aa73e15c
Change-Id: Icf6e57a39b1d7044b522daadedbe0df5aa73e15c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'examples/surface/surfacegraph.cpp')
-rw-r--r-- | examples/surface/surfacegraph.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/surface/surfacegraph.cpp b/examples/surface/surfacegraph.cpp index 5dd64c1f..d7524fbc 100644 --- a/examples/surface/surfacegraph.cpp +++ b/examples/surface/surfacegraph.cpp @@ -136,6 +136,10 @@ void SurfaceGraph::enableHeightMapModel(bool enable) m_graph->axisY()->setAutoAdjustRange(true); m_graph->axisZ()->setRange(18.0f, 24.0f); + m_graph->axisX()->setTitle(QStringLiteral("Latitude")); + m_graph->axisY()->setTitle(QStringLiteral("Height")); + m_graph->axisZ()->setTitle(QStringLiteral("Longitude")); + m_graph->removeSeries(m_sqrtSinSeries); m_graph->addSeries(m_heightMapSeries); //! [4] |