Commits

Aleš Erjavec  committed a19cbfc

Set a fixed minimum width on a distribution plot graph.

  • Participants
  • Parent commits 8d97bce

Comments (0)

Files changed (1)

File Orange/OrangeWidgets/Visualize/OWDistributions.py

         self.GeneralTab = self.SettingsTab = self.controlArea
 
         self.graph = OWDistributionGraph(self, self.mainArea)
+        # Set a fixed minimum width. This disables the dynamic minimumSizeHint
+        # from the layout, which can return a uselessly large width for the
+        # x axis when showing a discrete variable with many values.
+        self.graph.setMinimumWidth(250)
+
         self.mainArea.layout().addWidget(self.graph)
         self.graph.setYRlabels(None)
         self.graph.setAxisScale(QwtPlot.yRight, 0.0, 1.0, 0.1)