align axes in grid plot

4 views
Skip to first unread message

Stefan Kersten

unread,
May 20, 2011, 12:19:14 PM5/20/11
to Haskell Charts
hi,

in a grid plot with three plots displaying different aspects of the same
data (a 2D scatter plot and a histogram for each dimension, see [1]),
i'd like to align the y-axes of the two plots on the right. any ideas
how to do that?

note that currently the axis ranges are not the same, but i think i know
how to fix that ...

many thanks,
<sk>

[1] http://space.k-hornz.de/pub/gridplot.png

Eugene Kirpichov

unread,
May 21, 2011, 2:57:55 AM5/21/11
to haskell...@googlegroups.com
Hi Stefan,

I think now it is not possible.
You'll need do implement something like what's implemented for
renderLayout1sStacked
http://hackage.haskell.org/packages/archive/Chart/0.14/doc/html/src/Graphics-Rendering-Chart-Layout.html#renderLayout1sStacked
.
It isn't hard to do btw :)

2011/5/20 Stefan Kersten <kaosko...@gmail.com>:

> --
> You received this message because you are subscribed to the Google Groups
> "Haskell Charts" group.
> To post to this group, send email to haskell...@googlegroups.com.
> To unsubscribe from this group, send email to
> haskell-chart...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/haskell-charts?hl=en.
>
>

--
Eugene Kirpichov
Principal Engineer, Mirantis Inc. http://www.mirantis.com/
Editor, http://fprog.ru/

Stefan Kersten

unread,
May 24, 2011, 4:31:09 AM5/24/11
to haskell...@googlegroups.com
hi eugene,

On 5/21/11 8:57 AM, Eugene Kirpichov wrote:
> I think now it is not possible.
> You'll need do implement something like what's implemented for
> renderLayout1sStacked
> http://hackage.haskell.org/packages/archive/Chart/0.14/doc/html/src/Graphics-Rendering-Chart-Layout.html#renderLayout1sStacked
> .
> It isn't hard to do btw :)

thanks, that is very useful.

i've been able to define a version of renderLayout1sStacked,
renderLayout1Matrix, that seems to do what i want, along with
concatMapPickFn, that acts like a combination of map and filter (see
attached diff).

i'll prepare a patch after i've played a little more with the code. is
this a feature others could be interested in? any suggestions for the
interface of renderLayout1Matrix?

<sk>

renderLayou1Matrix.diff

Stefan Kersten

unread,
May 23, 2011, 7:53:46 AM5/23/11
to haskell...@googlegroups.com
hi eugene,

On 5/21/11 8:57 AM, Eugene Kirpichov wrote:

> I think now it is not possible.
> You'll need do implement something like what's implemented for
> renderLayout1sStacked
> http://hackage.haskell.org/packages/archive/Chart/0.14/doc/html/src/Graphics-Rendering-Chart-Layout.html#renderLayout1sStacked
> .
> It isn't hard to do btw :)

thanks, that is very useful.

renderLayou1Matrix.diff
Reply all
Reply to author
Forward
0 new messages