/** * Similar to #toLatexCdf, but for the probability density instead of the cdf. * * @param width Chart’s width in centimeters * @param height Chart’s height in centimeters * @return LaTeX source code */ public String toLatexDensity(int width, int height) { return densityChart.toLatex(width, height); }
/** * Exports a chart of the cdf to a LaTeX source code using PGF/TikZ. This method constructs and * returns a string that can be written to a LaTeX document to render the plot. `width` and * `height` represents the width and the height of the produced chart. These dimensions do not * take into account the axes and labels extra space. The `width` and the `height` of the chart * are measured in centimeters. * * @param width Chart’s width in centimeters * @param height Chart’s height in centimeters * @return LaTeX source code */ public String toLatexCdf(int width, int height) { return cdfChart.toLatex(width, height); }