------------------------------------------------------------------------------
| 2756 | |
| 2757 | //------------------------------------------------------------------------------ |
| 2758 | void 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 | //------------------------------------------------------------------------------ |
| 2788 | void vtkXYPlotActor::SetNumberOfXMinorTicks(int num) |