Skip to content

Commit

Permalink
Regenerate labels when user gives a new format
Browse files Browse the repository at this point in the history
  • Loading branch information
9prady9 committed Apr 30, 2019
1 parent ce7927f commit 938b452
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/backend/opengl/chart_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,12 @@ void AbstractChart::setAxesLabelFormat(const std::string& pXFormat,
mXLabelFormat = std::string(pXFormat);
mYLabelFormat = std::string(pYFormat);
mZLabelFormat = std::string(pZFormat);

/*
* Re-generate tick labels since label format has
* been changed by the user explicitly.
*/
generateTickLabels();
}

void AbstractChart::getAxesLimits(float* pXmin, float* pXmax,
Expand Down

0 comments on commit 938b452

Please sign in to comment.