From e5bd1f51a81cf93fc8247a885dcb435efde57137 Mon Sep 17 00:00:00 2001 From: Megan Kratz Date: Mon, 15 Feb 2016 17:31:02 -0500 Subject: [PATCH] added note about updating docstring if Gradient list is updated --- pyqtgraph/graphicsItems/GradientEditorItem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyqtgraph/graphicsItems/GradientEditorItem.py b/pyqtgraph/graphicsItems/GradientEditorItem.py index d57576c8..7afe466a 100644 --- a/pyqtgraph/graphicsItems/GradientEditorItem.py +++ b/pyqtgraph/graphicsItems/GradientEditorItem.py @@ -13,7 +13,7 @@ from ..python2_3 import cmp __all__ = ['TickSliderItem', 'GradientEditorItem'] - +##### If Gradients are added or removed, or gradient names are changed, please update the GradientEditorItem.loadPreset docstring. Gradients = OrderedDict([ ('thermal', {'ticks': [(0.3333, (185, 0, 0, 255)), (0.6666, (255, 220, 0, 255)), (1, (255, 255, 255, 255)), (0, (0, 0, 0, 255))], 'mode': 'rgb'}), ('flame', {'ticks': [(0.2, (7, 0, 220, 255)), (0.5, (236, 0, 134, 255)), (0.8, (246, 246, 0, 255)), (1.0, (255, 255, 255, 255)), (0.0, (0, 0, 0, 255))], 'mode': 'rgb'}),