On Jul 7, 2013 8:01 PM, "Dan Kortschak" <dan.ko...@adelaide.edu.au> wrote:
>
> There was one other thing that I had thought of, but forgot and couldn't
> dredge up when I wrote the OP.
>
> plot.New can return an error. It seems that the code all depends on
> unexported default variable which I would imaging should not fail. This
> would be a prime case for changing the signature to New() *Plot with a
> panic on failure.
I agree. Actually, if I recall correctly, the code that may error is for finding fonts. Instead of panicking when the fonts aren't found, we should do the font initialization lazily. This way if someone makes a plot or image without text, then they don't need the fonts installed at all. There was a request for this behavior on plotinum-discuss recently. I'll open an issue for it tomorrow.
> On a long standing issue - the pie chart suggestion issue. I have code
> that does nearly all of what you might want for pie charts at [1] in the
> labels.go and highlight.go files. The only thing that's missing is an
> aesthetic placement of pie segments; it seems to me that if you want to
> have a pie chart (this is arguable) then the segments should be equally
> gapped along their straight edges - I don't do this. As it stands it can
> do donut charts with a bit of forcing.
I think that I closed the issue with the status "won't fix." I don't like pie charts much, because I think that bar charts are easier to understand. But, they are popular, so if your plotter fits in well with Plotinum then maybe I should reconsider adding them. Certainly, if/when Plotinum is moved over to gonum, and is effectively handed over to the to the community, then maybe the community could decide to add them.
Ethan