Commits

Marko Toplak committed 4dcdb28

Hide arrows by default in qt plot objects.

Comments (0)

Files changed (2)

Orange/OrangeWidgets/plot/owaxis.py

     
     Role = OWPalette.Axis
     
-    def __init__(self, id, title = '', title_above = False, title_location = AxisMiddle, line = None, arrows = AxisEnd, plot = None):
+    def __init__(self, id, title = '', title_above = False, title_location = AxisMiddle, line = None, arrows = 0, plot = None):
         QGraphicsItem.__init__(self)
         self.setFlag(QGraphicsItem.ItemHasNoContents)
         self.setZValue(AxisZValue)

Orange/OrangeWidgets/plot/owplot.py

     def plot_data(self, xData, yData, colors, labels, shapes, sizes):
         pass
         
-    def add_axis(self, axis_id, title = '', title_above = False, title_location = AxisMiddle, line = None, arrows = AxisEnd, zoomable = False):
+    def add_axis(self, axis_id, title = '', title_above = False, title_location = AxisMiddle, line = None, arrows = 0, zoomable = False):
         '''
             Creates an :obj:`OrangeWidgets.plot.OWAxis` with the specified ``axis_id`` and ``title``. 
         '''