[Chart] Grid + Legend problems

Tim Docker tim at dockerz.net
Wed Jan 22 08:59:23 GMT 2014


Hi.

Sorry for the slow response.

Its hard to understand your exact problem without either some sample code
or at least an image. Can you provide this?

Tim
On 7 Jan 2014 03:18, "Sacha Sokoloski" <sokolo at mis.mpg.de> wrote:

> So I've finally, at least partially, isolated an issue with Chart that has
> bothered me forever.
>
> When using Grids, I've always noticed that even when the space weights are
> the same (i.e. (1,1)), the various sub-renderables would come out to be
> different sizes, proportionally. That is, one plot might take up 2/3 of the
> screen, and the other 1/3.
>
> I noticed that if I set the space weight to 0 for a pair of grids beside
> each other, then the grid with the longer legend (i.e. the one with more
> elements in the legend) would still be drawn larger, even though they
> should both only take one cell. This gets magnified when given full space
> weighting, so that plots with larger legends will take up more space. If I
> set legends to be Nothing in all the relevant layouts, then the grids end
> up equal in size.
>
> So that's great! I still wouldn't have much idea as to how to fix this
> though. Is there anyway this could be moved along?
>
> I also still have an implementation of contour plots kicking around which
> one day I should try to integrate into Chart properly...
>
> Cheers,
>
>  - Sacha
>
> _______________________________________________
> Chart mailing list
> Chart at projects.haskell.org
> http://projects.haskell.org/cgi-bin/mailman/listinfo/chart
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://projects.haskell.org/pipermail/chart/attachments/20140122/65ad3550/attachment.htm>


More information about the Chart mailing list