@@ -334,59 +334,20 @@ def reset():
334334
335335PLOTPY_DEFAULTS = {
336336 "plot" : {
337+ #
338+ # XXX: If needed in the future, add here the default settings for PlotPy:
339+ # that will override the PlotPy settings.
340+ # That is the right way to customize the PlotPy settings for shapes and
341+ # annotations when they are added using tools from the DataLab application
342+ # (see `BaseDataPanel.ANNOTATION_TOOLS`).
343+ # For example, for shapes:
344+ # "shape/drag/line/color": "#00ffff",
345+ #
337346 # Overriding default plot settings from PlotPy
338347 "marker/curve/text/textcolor" : "black" ,
339348 "marker/cross/text/textcolor" : "black" ,
340349 "marker/cross/text/background_alpha" : 0.7 ,
341350 },
342- "annotations" : { # Annotated shape style for annotations
343- # Signals:
344- "s/shape/line/style" : "SolidLine" ,
345- "s/shape/line/color" : "#ffff00" ,
346- "s/shape/line/width" : 1 ,
347- "s/shape/fill/style" : "SolidPattern" ,
348- "s/shape/fill/color" : MAIN_BG_COLOR ,
349- "s/shape/fill/alpha" : 0.1 ,
350- "s/shape/symbol/marker" : "Rect" ,
351- "s/shape/symbol/size" : 3 ,
352- "s/shape/symbol/edgecolor" : "#ffff00" ,
353- "s/shape/symbol/facecolor" : "#ffff00" ,
354- "s/shape/symbol/alpha" : 1.0 ,
355- "s/shape/sel_line/style" : "SolidLine" ,
356- "s/shape/sel_line/color" : "#00ff00" ,
357- "s/shape/sel_line/width" : 1 ,
358- "s/shape/sel_fill/style" : "SolidPattern" ,
359- "s/shape/sel_fill/color" : MAIN_BG_COLOR ,
360- "s/shape/sel_fill/alpha" : 0.1 ,
361- "s/shape/sel_symbol/marker" : "Rect" ,
362- "s/shape/sel_symbol/size" : 9 ,
363- "s/shape/sel_symbol/edgecolor" : "#00aa00" ,
364- "s/shape/sel_symbol/facecolor" : "#00ff00" ,
365- "s/shape/sel_symbol/alpha" : 0.7 ,
366- # Images:
367- "i/shape/line/style" : "SolidLine" ,
368- "i/shape/line/color" : "#ffff00" ,
369- "i/shape/line/width" : 1 ,
370- "i/shape/fill/style" : "SolidPattern" ,
371- "i/shape/fill/color" : MAIN_BG_COLOR ,
372- "i/shape/fill/alpha" : 0.1 ,
373- "i/shape/symbol/marker" : "Rect" ,
374- "i/shape/symbol/size" : 3 ,
375- "i/shape/symbol/edgecolor" : "#ffff00" ,
376- "i/shape/symbol/facecolor" : "#ffff00" ,
377- "i/shape/symbol/alpha" : 1.0 ,
378- "i/shape/sel_line/style" : "SolidLine" ,
379- "i/shape/sel_line/color" : "#00ff00" ,
380- "i/shape/sel_line/width" : 1 ,
381- "i/shape/sel_fill/style" : "SolidPattern" ,
382- "i/shape/sel_fill/color" : MAIN_BG_COLOR ,
383- "i/shape/sel_fill/alpha" : 0.1 ,
384- "i/shape/sel_symbol/marker" : "Rect" ,
385- "i/shape/sel_symbol/size" : 9 ,
386- "i/shape/sel_symbol/edgecolor" : "#00aa00" ,
387- "i/shape/sel_symbol/facecolor" : "#00ff00" ,
388- "i/shape/sel_symbol/alpha" : 0.7 ,
389- },
390351 "results" : { # Annotated shape style for result shapes
391352 # Signals:
392353 "s/line/style" : "SolidLine" ,
0 commit comments