Changing the plot background

The default background color for plots, e.g., for ROC curves, is black, which might not be convenient for screenshots.

Since the color is stored as a value in a Properties file, you can easily change the color:

  • extract the following file from the weka.jar or weka-src.jar file
     weka/gui/visualize/Visualize.props
    
  • place a copy of that file in your HOME directory (on *nix $HOME, on Windows %USERPROFILE%)
  • edit the Properties file with any text editor
  • replace the value of following key with a color of your liking, e.g., white
     weka.gui.visualize.Plot2D.backgroundColour
    
  • save the file and restart Weka