Class Plot


  • public class Plot
    extends Object
    Displays plots in a development setting, by exporting a file containing the HTML and Javascript, and then opening the file in the default browser on the developer's machine.
    • Constructor Detail

      • Plot

        public Plot()
    • Method Detail

      • show

        public static void show​(Figure figure,
                                String divName,
                                File outputFile)
      • show

        public static void show​(String html,
                                File outputFile)
        Opens the default browser on the given HTML page. This is a convenience method for anyone who wants total control over the HTML file containing one or more plots, but still wants to use the mechanism for opening the default browser on it.
        Parameters:
        html - An arbitrary HTML page, it doesn't even need plots
        outputFile - The file where the page will be written
      • show

        public static void show​(Figure figure,
                                String divName)
      • show

        public static void show​(Figure figure)
      • show

        public static void show​(Figure figure,
                                File outputFile)
      • defaultFile

        protected static File defaultFile()
      • randomFile

        protected static File randomFile()
      • randomizedFileName

        protected static String randomizedFileName()