dflplot 0.01

dsimcha dsimcha at yahoo.com
Sat Jul 10 06:46:02 PDT 2010


== Quote from Philippe Sigaud (philippe.sigaud at gmail.com)'s article
> Out of curiosity, as I don't know DFL, why do you draw everything as text in
> a scatterplot instead of using small rectangles or lines?

This is to give customizability as to what the points look like.

> This made me laugh:
> /**Hack around ddoc issues.)*/
> void dummy() {}
> Do you have a missing ')' parenthesis somewhere?

Probably.  I was getting weird DDoc behavior until I added this, but I can't find
the missing ) so I just hacked around it.

> Philippe
> --0022158c15717b3d1b048b047257
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable
> <div class=3D"gmail_quote">Hmm, my first reply seems lost in limbo...</div>=
> <div class=3D"gmail_quote"><br></div><div class=3D"gmail_quote"><br></div><=
> div class=3D"gmail_quote">On Sat, Jul 10, 2010 at 06:40, dsimcha <span dir=
> =3D"ltr">&lt;<a href=3D"mailto:dsimcha at yahoo.com">dsimcha at yahoo.com</a>&gt;=
> </span> wrote:<br>
> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
> x #ccc solid;padding-left:1ex;">In the spirit of making D2 a first-rate sci=
> entific computing language, I have<br>
> just uploaded the first usable version of my DFL-based dflplot =A0plotting<=
> br>
> library to Scrapple.<br><br><br>
> For those who don&#39;t want to install dflplot, dfl and dstats (dstats is<=
> br>
> necessary only for the demo/test function and is otherwise not a dependency=
> )<br>
> but are curious what dflplot currently looks like, I&#39;ve attached a scre=
> enshot<br>
> of a subplot window produced by the demo/test function.<br>
> </blockquote></div><br><div>Hey, cool!</div><div><br></div><div>I had no tr=
> ouble installing DFL. Man, I tried that 2-3 times in the past 2 years, to n=
> o avail. Now it works, woohoo! Now to get some keyboard shortcut on Code::B=
> locks to compile with DFL instead of DMD...</div>
> <div><br></div><div>Dflplots works quite well for me and is very simple to =
> use. Good work, David!</div><div><br></div><div><div>import std.random;</di=
> v><div>import dflplot;</div><div><br></div><div>void main() {</div><div>
> <br></div><div>=A0=A0 =A0auto rnd =3D uniformDistribution(1000);</div><div>=
> =A0=A0 =A0auto rnd2 =3D uniformDistribution(1000);</div><div><br></div><div=
> >=A0=A0 =A0auto scat =3D ScatterPlot(rnd, rnd2);</div><div>=A0=A0 =A0scat.p=
> ointSymbol =3D &#39;.&#39;;</div>
> <div>=A0=A0 =A0scat.toFigure.showAsMain();</div><div>}</div></div><div><br>=
> </div><div>As you can see, I use a dot for symbol, it give nice graphics. M=
> aybe with slightly excentered points... I attached a jpeg to my first reply=
> , and maybe that&#39;s why it didn&#39;t pass.</div>
> <div><br></div><div>Out of curiosity, as I don&#39;t know DFL, why do you d=
> raw everything as text in a scatterplot instead of using small rectangles o=
> r lines?</div><div><br></div><div>This made me laugh:</div><div><br></div>
> <div><div>/**Hack around ddoc issues.)*/</div><div>void dummy() {}</div></d=
> iv><div><br></div><div>Do you have a missing &#39;)&#39; parenthesis somewh=
> ere?</div><div><br></div><div>Philippe</div><div><br></div><div><br></div>
> --0022158c15717b3d1b048b047257--



More information about the Digitalmars-d-announce mailing list