26 #ifndef MLN_DRAW_PLOT_HH
27 # define MLN_DRAW_PLOT_HH
34 # include <mln/core/concept/image.hh>
35 # include <mln/core/site_set/p_line2d.hh>
36 # include <mln/data/paste.hh>
37 # include <mln/pw/image.hh>
38 # include <mln/pw/cst.hh>
58 void plot(Image<I>& ima,
59 const mln_point(I)& p,
60 const mln_value(I)& v);
63 # ifndef MLN_INCLUDE_ONLY
67 void plot(Image<I>& ima,
68 const mln_psite(I)& p,
69 const mln_value(I)& v)
71 mln_precondition(exact(ima).is_valid());
72 mln_precondition(exact(ima).
has(p));
74 for (
unsigned i = 0; i < I::point::dim; i++)
76 mln_point(I) beg = p, end = p;
79 data::paste(pw::cst(v) | line2d(beg, end),
84 # endif // ! MLN_INCLUDE_ONLY
91 #endif // ! MLN_DRAW_PLOT_HH