MCPcopy Create free account
hub / github.com/GeoDaCenter/geoda / OnSetAxisDisplayPrecision

Method OnSetAxisDisplayPrecision

Explore/ScatterPlotMatView.cpp:334–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334void ScatterPlotMatFrame::OnSetAxisDisplayPrecision(wxCommandEvent& event)
335{
336 wxLogMessage("Click GdaFrame::OnSetDisplayPrecision");
337 SetDisplayPrecisionDlg dlg(axis_display_precision,
338 axis_display_fixed_point, this);
339 if (dlg.ShowModal () != wxID_OK)
340 return;
341 int def_precision = dlg.precision;
342 bool fixed_point = dlg.fixed_point;
343 for (size_t i=0, sz=vert_labels.size(); i<sz; ++i) {
344 if (vert_labels[i])
345 vert_labels[i]->SetAxisDisplayPrecision(def_precision, fixed_point);
346 }
347 for (size_t i=0, sz=horiz_labels.size(); i<sz; ++i) {
348 if (horiz_labels[i])
349 horiz_labels[i]->SetAxisDisplayPrecision(def_precision, fixed_point);
350 }
351 axis_display_precision = def_precision;
352 axis_display_fixed_point = fixed_point;
353}
354
355void ScatterPlotMatFrame::OnShowVarsChooser(wxCommandEvent& event)
356{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45

Tested by

no test coverage detected