MCPcopy Create free account
hub / github.com/Kitware/VTK / SetYLabelFormat

Method SetYLabelFormat

Rendering/Annotation/vtkXYPlotActor.cxx:2758–2785  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

2756
2757//------------------------------------------------------------------------------
2758void vtkXYPlotActor::SetYLabelFormat(const char* _arg)
2759{
2760 if (this->YLabelFormat == nullptr && _arg == nullptr)
2761 {
2762 return;
2763 }
2764
2765 if (this->YLabelFormat && _arg && (!strcmp(this->YLabelFormat, _arg)))
2766 {
2767 return;
2768 }
2769
2770 delete[] this->YLabelFormat;
2771
2772 if (_arg)
2773 {
2774 this->YLabelFormat = new char[strlen(_arg) + 1];
2775 strcpy(this->YLabelFormat, _arg);
2776 }
2777 else
2778 {
2779 this->YLabelFormat = nullptr;
2780 }
2781
2782 this->YAxis->SetLabelFormat(this->YLabelFormat);
2783
2784 this->Modified();
2785}
2786
2787//------------------------------------------------------------------------------
2788void vtkXYPlotActor::SetNumberOfXMinorTicks(int num)

Callers 15

~vtkXYPlotActorMethod · 0.95
SetLabelFormatMethod · 0.95
AdjustRangeMethod · 0.45
cubeAxes3.pyFile · 0.45
cubeAxes2.pyFile · 0.45
TestCubeAxesInnerGridAllFunction · 0.45

Calls 2

SetLabelFormatMethod · 0.45
ModifiedMethod · 0.45

Tested by 15

TestCubeAxesInnerGridAllFunction · 0.36
TestCubeAxesWithXLinesFunction · 0.36
TestCubeAxesWithZLinesFunction · 0.36
TestCubeAxesStickyFunction · 0.36