Skip to content

Commit d4d8774

Browse files
committed
Fix API breakage in colormaps module (continued)
1 parent 61f833f commit d4d8774

File tree

7 files changed

+7
-11
lines changed

7 files changed

+7
-11
lines changed

colormaps/colormap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from qtpy import QtGui as QG
1919
from qwt import QwtInterval
2020

21-
from plotpy.mathutils.colormaps import (
21+
from plotpy.mathutils.colormap import (
2222
DEFAULT_COLORMAPS,
2323
DEFAULT_COLORMAPS_PATH,
2424
save_colormaps,

plotpy/items/image/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
from plotpy.items.shape.rectangle import RectangleShape
4747
from plotpy.lutrange import lut_range_threshold
4848
from plotpy.mathutils.arrayfuncs import get_nan_range
49-
from plotpy.mathutils.colormaps import FULLRANGE, get_cmap
49+
from plotpy.mathutils.colormap import FULLRANGE, get_cmap
5050
from plotpy.styles.image import RawImageParam
5151

5252
if TYPE_CHECKING: # pragma: no cover

plotpy/plot/interactive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from plotpy._scaler import INTERP_AA, INTERP_LINEAR, INTERP_NEAREST
3030
from plotpy.builder import make
3131
from plotpy.config import _
32-
from plotpy.mathutils.colormaps import ALL_COLORMAPS
32+
from plotpy.mathutils.colormap import ALL_COLORMAPS
3333
from plotpy.panels.contrastadjustment import ContrastAdjustment
3434
from plotpy.panels.csection.cswidget import XCrossSection, YCrossSection
3535
from plotpy.panels.itemlist import PlotItemList

plotpy/styles/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from plotpy._scaler import INTERP_AA, INTERP_LINEAR, INTERP_NEAREST
2424
from plotpy.config import _
2525
from plotpy.constants import LUTAlpha
26-
from plotpy.mathutils.colormaps import (
26+
from plotpy.mathutils.colormap import (
2727
ALL_COLORMAPS,
2828
LARGE_ICON_HEIGHT,
2929
LARGE_ICON_ORIENTATION,

plotpy/tests/features/test_colormap_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from guidata.env import execenv
1717
from guidata.qthelpers import exec_dialog, qt_app_context
1818

19-
from plotpy.mathutils.colormaps import ALL_COLORMAPS
19+
from plotpy.mathutils.colormap import ALL_COLORMAPS
2020
from plotpy.widgets.colormap.manager import ColorMapManager
2121
from plotpy.widgets.colormap.widget import EditableColormap
2222

plotpy/tools/image.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,7 @@
3131
TrImageItem,
3232
get_items_in_rectangle,
3333
)
34-
from plotpy.mathutils.colormaps import (
35-
ALL_COLORMAPS,
36-
build_icon_from_cmap_name,
37-
get_cmap,
38-
)
34+
from plotpy.mathutils.colormap import ALL_COLORMAPS, build_icon_from_cmap_name, get_cmap
3935
from plotpy.tools.base import (
4036
CommandTool,
4137
DefaultToolbarID,

plotpy/widgets/colormap/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from guidata.qthelpers import exec_dialog
3232

3333
from plotpy.config import _
34-
from plotpy.mathutils.colormaps import (
34+
from plotpy.mathutils.colormap import (
3535
ALL_COLORMAPS,
3636
CUSTOM_COLORMAPS,
3737
DEFAULT_COLORMAPS,

0 commit comments

Comments
 (0)