2

私はこのようなものを持っています:

(defn plot-simulation [f]
  (let [x (range 1 1000)
        ye0 (->> (run-simulation 5 0.000000000000000000000001) ;; needs to run all 2000 in paralell
               (take 1000)
               (map f))
        ye01 (->> (run-simulation 5 1/10)
                  (take 1000)
                  (map f))
        ye001 (->> (run-simulation 5 1/100)
                  (take 1000)
                  (map f))
        ]
    ;; How to add another chart in the view?
    (-> (c/xy-plot x ye0
                   :x-label "Steps"
                   :y-label "Somethings"
                   :series-label "e=0"
                   :legend true)
        (c/add-lines x ye01
                     :series-label "e=0.01")
        (c/add-lines x ye001
                     :series-label "e=0.001")
        (i/view))))

シミュレーションから 3 本の線を表示します。ここで、1 つのグラフに 3 つの線をプロットする代わりに、ビューへの呼び出しを 1 つだけ使用して、それぞれに 1 つの線を含む 3 つのグラフをプロットしたいと思います。これは Incanter を使用して可能ですか?

4

0 に答える 0