Skip to content

Commit e3893c9

Browse files
committed
csplot: minor renaming
1 parent b8f6423 commit e3893c9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

plotpy/panels/csection/csplot.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class CrossSectionPlot(BasePlot):
3636

3737
CURVE_LABEL = _("Cross section")
3838
LABEL_TEXT = _("Enable a marker")
39-
_height = None
40-
_width = None
39+
_HEIGHT = None
40+
_WIDTH = None
4141
CS_AXIS = None
4242
Z_AXIS = None
4343
Z_MAX_MAJOR = 5
@@ -62,9 +62,9 @@ def __init__(self, parent: QWidget | None = None) -> None:
6262
self.param = CurveParam(_("Curve"), icon="curve.png")
6363
self.set_curve_style("cross_section", "curve")
6464

65-
if self._height is not None:
65+
if self._HEIGHT is not None:
6666
self.setSizePolicy(QW.QSizePolicy.Expanding, QW.QSizePolicy.Minimum)
67-
elif self._width is not None:
67+
elif self._WIDTH is not None:
6868
self.setSizePolicy(QW.QSizePolicy.Minimum, QW.QSizePolicy.Expanding)
6969

7070
# The following import is here to avoid circular imports
@@ -387,14 +387,14 @@ def axis_dir_changed(self, plot, axis_id):
387387
class XCrossSectionPlot(HorizontalCrossSectionPlot):
388388
"""X-axis cross section plot"""
389389

390-
_height = 130
390+
_HEIGHT = 130
391391

392392
def sizeHint(self):
393393
"""
394394
395395
:return:
396396
"""
397-
return QC.QSize(self.width(), self._height)
397+
return QC.QSize(self.width(), self._HEIGHT)
398398

399399
def create_cross_section_item(self):
400400
"""
@@ -407,14 +407,14 @@ def create_cross_section_item(self):
407407
class YCrossSectionPlot(VerticalCrossSectionPlot):
408408
"""Y-axis cross section plot"""
409409

410-
_width = 140
410+
_WIDTH = 140
411411

412412
def sizeHint(self):
413413
"""
414414
415415
:return:
416416
"""
417-
return QC.QSize(self._width, self.height())
417+
return QC.QSize(self._WIDTH, self.height())
418418

419419
def create_cross_section_item(self):
420420
"""

0 commit comments

Comments
 (0)