1.2.3-SNAPSHOT permalink Arrow_down_16x16

add-latex-subtitle

incanter.latex

  • (add-latex-subtitle chart latex-str & options)
Adds the given LaTeX equation as a subtitle to the chart.


Options:
:color (default java.awt.Color/darkGray) -- the text color


Examples:
(use '(incanter core charts stats latex))

(doto (function-plot pdf-normal -3 3)
(add-latex-subtitle "f(x)=\\frac{1}{\\sqrt{2\\pi \\sigma^2}} e^{\\frac{-(x - \\mu)^2}{2 \\sigma^2}}")
view)

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source incanter/latex.clj:58 top

(defn add-latex-subtitle
" Adds the given LaTeX equation as a subtitle to the chart.


  Options:
    :color (default java.awt.Color/darkGray) -- the text color


  Examples:
    (use '(incanter core charts stats latex))

    (doto (function-plot pdf-normal -3 3)
      (add-latex-subtitle \"f(x)=\\\\frac{1}{\\\\sqrt{2\\\\pi \\\\sigma^2}} e^{\\\\frac{-(x - \\\\mu)^2}{2 \\\\sigma^2}}\")
      view)

"
  ([chart latex-str & options]
     (let [opts (apply hash-map options)
	   color (or (:color opts) java.awt.Color/darkGray)] 
       (.addSubtitle chart (org.jfree.chart.title.ImageTitle. (latex latex-str :color color)))
       chart)))
Vars in incanter.latex/add-latex-subtitle: defn let
Used in 0 other vars

Comments top

No comments for add-latex-subtitle. Log in to add a comment.