From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p81KbR8K022553 for ; Thu, 1 Sep 2011 22:37:27 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjIBABbsX07RVdK2mGdsb2JhbABChE2jewgUAQEBAQEICQ0HFCWBQAEBAQECARICDx0BOAEDDAEFAwILAwoCAiYCAiISAQUBHAYTIodQBJxECot8gxWFL4koAgMGgSaEHoERBJMljGM8gUeCJg X-IronPort-AV: E=Sophos;i="4.68,315,1312149600"; d="scan'208";a="118050534" Received: from mail-iy0-f182.google.com ([209.85.210.182]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 01 Sep 2011 22:37:21 +0200 Received: by iadx2 with SMTP id x2so3833710iad.27 for ; Thu, 01 Sep 2011 13:37:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=/queqwKiUeB07tG6mB4v7f4hugliUaeX3W0A4ZWL2c8=; b=Xfhvah+kInztpeFeei2rLBpiIOqG67sCpb4x2/X+5Q6cvDyCySGjDl0dUy3PLOoURq tGIeVUC8kEZD3TTnJ+3bK+3CofdZjI7z9VNS0bRFeq435NB+yG6X4fWA+yqmHKo+AFjI WnJlFcrMcz5SHpNecmO74FGCWM0QGrRabdOiQ= Received: by 10.231.29.149 with SMTP id q21mr511544ibc.20.1314909440068; Thu, 01 Sep 2011 13:37:20 -0700 (PDT) MIME-Version: 1.0 Sender: antegallya@gmail.com Received: by 10.231.152.11 with HTTP; Thu, 1 Sep 2011 13:37:00 -0700 (PDT) In-Reply-To: <6CB96C5A-2C1F-43D8-A122-1DBC3159B522@wanadoo.fr> References: <98C767DA-3F3F-4927-A07A-5D6CEB7861B7@fb.com> <20110830234658.GZ15100@localhost> <6CB96C5A-2C1F-43D8-A122-1DBC3159B522@wanadoo.fr> From: Pierre Hauweele Date: Thu, 1 Sep 2011 22:37:00 +0200 X-Google-Sender-Auth: aU_MbgEvWnIF_9kTPvgCw4Ukyew Message-ID: To: Yoann Padioleau Cc: Guillaume Yziquel , caml users Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id p81KbR8K022553 X-Validation-by: pierre@hauweele.net Subject: Re: [Caml-list] plot library Hello, On Wed, Aug 31, 2011 at 6:01 AM, Yoann Padioleau wrote: > Also is there a function to display stacked graphs, as in many-eyes: > http://www-958.ibm.com/software/data/cognos/manyeyes/page/Stack_Graph_for_Categories.html > On Aug 30, 2011, at 8:35 PM, Yoann Padioleau wrote: >> >> Just installed it. Works fine. But I could not find a way to draw the legend >> and label manually things. I'm sorry, when I said labels weren't implemented yet, I meant the legend. You may find an example use of labels in the "Text_labels" test. You can place the legend manually using Viewport.text using the `Graph or `Device coordinates (normalized coordinates of resp. the graph window and the viewport) and playing with paths for making your legend box. For example, you can place the text with: Viewport.text vp ~coord:`Graph 1. 1. ~pos:Backend.LB "Banana"; >> For instance on >> Food  2000    2001    2002    2003 >> Banana        4       5       5       2 >> Lemon         1       2       3       4 >> Orange        2       2       1       3 >> >> What would be the call to Archimedes.stack ... >> to get the stacked bars with the right labeling and not too bad color (let's say red/green/blue for banana/lemon/orange). I invite you to check the latest bazaar trunk and take a look at the test "Plot_stack" where you set the style to `Lines with : A.Array.stack vp ~style:`Lines data; If the predefined colors doesn't suit your needs, you can specify your own array of colors via the ?fillcolors optional. If you have further specific questions on the use of Archimedes, I invite you to discuss them offlist. Thank you for your interest in Archimedes, Pierre Hauweele