caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Plot library
@ 2005-08-09 18:06 romildo
  2005-08-09 18:26 ` [Caml-list] " Chris King
  2005-08-11 19:18 ` Jon Harrop
  0 siblings, 2 replies; 8+ messages in thread
From: romildo @ 2005-08-09 18:06 UTC (permalink / raw)
  To: caml-list

Hello.

I am looking for an ocaml plot library that integrates
well with lablgtk. Is there one?

If not, how are graphics plotted in OCaml and lablgtk?

I am accepting sugestions.

Romildo
			


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Caml-list] Plot library
  2005-08-09 18:06 Plot library romildo
@ 2005-08-09 18:26 ` Chris King
  2005-08-09 19:40   ` romildo
  2005-08-11 19:18 ` Jon Harrop
  1 sibling, 1 reply; 8+ messages in thread
From: Chris King @ 2005-08-09 18:26 UTC (permalink / raw)
  To: caml-list

On 8/9/05, romildo@uber.com.br <romildo@uber.com.br> wrote:
> I am looking for an ocaml plot library that integrates
> well with lablgtk. Is there one?

I've used the Gnome Canvas widget in lablgtk2 with much success.  It's
included with lablgtk2 in "lablgnomecanvas.cma".  It's based on Tk's
canvas widget but is much more powerful.  Unfortunately it's not
available for lablgtk, only lablgtk2.  You can find docs for it at
http://compiler.kaist.ac.kr/~shoh/ocaml/lablgtk2/lablgtk-2.4.0/doc/html/GnoCanvas.html.

- Chris King


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Caml-list] Plot library
  2005-08-09 18:26 ` [Caml-list] " Chris King
@ 2005-08-09 19:40   ` romildo
  2005-08-09 20:22     ` Ken Rose
  0 siblings, 1 reply; 8+ messages in thread
From: romildo @ 2005-08-09 19:40 UTC (permalink / raw)
  To: Chris King; +Cc: caml-list

On Tue, Aug 09, 2005 at 02:26:26PM -0400, Chris King wrote:
> On 8/9/05, romildo@uber.com.br <romildo@uber.com.br> wrote:
> > I am looking for an ocaml plot library that integrates
> > well with lablgtk. Is there one?
> 
> I've used the Gnome Canvas widget in lablgtk2 with much success.  It's
> included with lablgtk2 in "lablgnomecanvas.cma".  It's based on Tk's
> canvas widget but is much more powerful.  Unfortunately it's not
> available for lablgtk, only lablgtk2.  You can find docs for it at

Does it work in Windows too?

Romildo


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Caml-list] Plot library
  2005-08-09 19:40   ` romildo
@ 2005-08-09 20:22     ` Ken Rose
  2005-08-09 22:30       ` Chris King
  0 siblings, 1 reply; 8+ messages in thread
From: Ken Rose @ 2005-08-09 20:22 UTC (permalink / raw)
  To: caml-list

romildo@uber.com.br wrote:
> On Tue, Aug 09, 2005 at 02:26:26PM -0400, Chris King wrote:
> 
>>On 8/9/05, romildo@uber.com.br <romildo@uber.com.br> wrote:
>>
>>>I am looking for an ocaml plot library that integrates
>>>well with lablgtk. Is there one?
>>
>>I've used the Gnome Canvas widget in lablgtk2 with much success.  It's
>>included with lablgtk2 in "lablgnomecanvas.cma".  It's based on Tk's
>>canvas widget but is much more powerful.  Unfortunately it's not
>>available for lablgtk, only lablgtk2.  You can find docs for it at
> 
> 
> Does it work in Windows too?

And can you print it?

  - ken


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Caml-list] Plot library
  2005-08-09 20:22     ` Ken Rose
@ 2005-08-09 22:30       ` Chris King
  2005-08-10 11:16         ` Richard Jones
  0 siblings, 1 reply; 8+ messages in thread
From: Chris King @ 2005-08-09 22:30 UTC (permalink / raw)
  To: rose; +Cc: caml-list

romildo@uber.com.br wrote:
> Does it work in Windows too?

It doesn't seem to be included in the Win32 distribution of LablGTK2,
but if you're using Cygwin then I presume it will compile given the
right libraries.

On 8/9/05, Ken Rose <kenrose@tfb.com> wrote:
> 
> And can you print it?

No.  This is one area in which the Gnome Canvas is actually inferior
to the Tk canvas widget.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Caml-list] Plot library
  2005-08-09 22:30       ` Chris King
@ 2005-08-10 11:16         ` Richard Jones
  2005-08-10 20:42           ` Ken Rose
  0 siblings, 1 reply; 8+ messages in thread
From: Richard Jones @ 2005-08-10 11:16 UTC (permalink / raw)
  To: Chris King; +Cc: rose, caml-list

On Tue, Aug 09, 2005 at 06:30:29PM -0400, Chris King wrote:
> On 8/9/05, Ken Rose <kenrose@tfb.com> wrote:
> > 
> > And can you print it?
> 
> No.  This is one area in which the Gnome Canvas is actually inferior
> to the Tk canvas widget.

I have some code which allows you to print the Gtk drawing area under
Windows.  It's very hacky - basically it is possible to get a bitmap
of the drawing area, which is then written out as a PPM file, which is
then piped into a separate "winprint" program which I derived from the
guts of the GIMP printer driver for Windows.  Anyway, let me know if
you want it.

Rich.

-- 
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Caml-list] Plot library
  2005-08-10 11:16         ` Richard Jones
@ 2005-08-10 20:42           ` Ken Rose
  0 siblings, 0 replies; 8+ messages in thread
From: Ken Rose @ 2005-08-10 20:42 UTC (permalink / raw)
  To: caml-list

Richard Jones wrote:
> On Tue, Aug 09, 2005 at 06:30:29PM -0400, Chris King wrote:
> 
>>On 8/9/05, Ken Rose <kenrose@tfb.com> wrote:
>>
>>>And can you print it?
>>
>>No.  This is one area in which the Gnome Canvas is actually inferior
>>to the Tk canvas widget.
> 
> 
> I have some code which allows you to print the Gtk drawing area under
> Windows.  It's very hacky - basically it is possible to get a bitmap
> of the drawing area, which is then written out as a PPM file, which is
> then piped into a separate "winprint" program which I derived from the
> guts of the GIMP printer driver for Windows.  Anyway, let me know if
> you want it.

I'd like to see it.  Perhaps it's something for the humps?

  - ken


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Caml-list] Plot library
  2005-08-09 18:06 Plot library romildo
  2005-08-09 18:26 ` [Caml-list] " Chris King
@ 2005-08-11 19:18 ` Jon Harrop
  1 sibling, 0 replies; 8+ messages in thread
From: Jon Harrop @ 2005-08-11 19:18 UTC (permalink / raw)
  To: caml-list

On Tuesday 09 August 2005 19:06, romildo@uber.com.br wrote:
> If not, how are graphics plotted in OCaml and lablgtk?

We do all of our graphics using OpenGL (via the excellent lablgl).

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
Objective CAML for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-08-11 19:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-09 18:06 Plot library romildo
2005-08-09 18:26 ` [Caml-list] " Chris King
2005-08-09 19:40   ` romildo
2005-08-09 20:22     ` Ken Rose
2005-08-09 22:30       ` Chris King
2005-08-10 11:16         ` Richard Jones
2005-08-10 20:42           ` Ken Rose
2005-08-11 19:18 ` Jon Harrop

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).