Re: [NTG-context] ConTeXt, Charts, and transparency

2006-07-19 Thread Johan Sandblom
The R module (and R program) may also be worth a look for any stats
and data visualization tasks.

Johan

2006/7/18, Aditya Mahajan [EMAIL PROTECTED]:
 On Tue, 18 Jul 2006, Aditya Mahajan wrote:

  On Sat, 15 Jul 2006, Adam Lindsay wrote:
 
  Hans Hagen wrote:
  Idris Samawi Hamid wrote:
  Yes, but that seems mainly geared towards flow charts, not graphical
  charts. Can m-chart do things like the example png attached at the start
  of the thread?
 
  i lost that one; actually, willy egger is the most experienced chart user 
  but he's on vacation
 
  It was more like a bar graph (with two sets of y-values), nothing to do
  with m-charts. I thought about mp-graph stuff, but I don't see how it
  can be (trivially) made to do that visual style.
 
  Have a look at http://www-math.univ-poitiers.fr/~phan/statsmac.html to
  see if can modify them to get the visual effect that you want.

 There is also the ultimate reference
 http://zoonek.free.fr/LaTeX/Metapost/metapost.html Check out example
 from 285 onwards.

 Also, gnuplot can draw bargraphs easily. Mojca's gnuplot module is
 functional, so you can also give that a try.

 Aditya
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context



-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
What is wanted is not the will to believe, but the
will to find out, which is the exact opposite
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt, Charts, and transparency

2006-07-19 Thread Mojca Miklavec
On 7/19/06, Idris Samawi Hamid wrote:
 On Wed, 19 Jul 2006 02:07:38 -0600, Johan Sandblom [EMAIL PROTECTED]
 wrote:

  The R module (and R program) may also be worth a look for any stats
  and data visualization tasks.

 What is this exactly? any links? I've heard esoteric references to R on
 this list but have no idea what it's about ;-)

http://www.r-project.org/

Once you manage to install it you should try
texexec --demo m-r.tex
The demo examples in m-r.tex are pretty good to give you an idea of
what is possible.

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt, Charts, and transparency

2006-07-18 Thread Aditya Mahajan
On Sat, 15 Jul 2006, Adam Lindsay wrote:

 Hans Hagen wrote:
 Idris Samawi Hamid wrote:
 Yes, but that seems mainly geared towards flow charts, not graphical
 charts. Can m-chart do things like the example png attached at the start
 of the thread?

 i lost that one; actually, willy egger is the most experienced chart user 
 but he's on vacation

 It was more like a bar graph (with two sets of y-values), nothing to do
 with m-charts. I thought about mp-graph stuff, but I don't see how it
 can be (trivially) made to do that visual style.

Have a look at http://www-math.univ-poitiers.fr/~phan/statsmac.html to 
see if can modify them to get the visual effect that you want.

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt, Charts, and transparency

2006-07-18 Thread Idris Samawi Hamid
On Tue, 18 Jul 2006 11:30:31 -0600, Aditya Mahajan [EMAIL PROTECTED]  
wrote:

 Have a look at http://www-math.univ-poitiers.fr/~phan/statsmac.html to
 see if can modify them to get the visual effect that you want.

Will do: Hans, Aditya, can this be ported to MetaFun or its own m-stats  
module?

Best
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt, Charts, and transparency

2006-07-18 Thread Aditya Mahajan
On Tue, 18 Jul 2006, Idris Samawi Hamid wrote:

 On Tue, 18 Jul 2006 11:30:31 -0600, Aditya Mahajan [EMAIL PROTECTED]
 wrote:

 Have a look at http://www-math.univ-poitiers.fr/~phan/statsmac.html to
 see if can modify them to get the visual effect that you want.

 Will do: Hans, Aditya, can this be ported to MetaFun or its own m-stats
 module?

I do not use this too much. I had once tried porting metaobj to 
context, but found that it is easier to use raw metaobj. However, if 
you can come up with what you want a module to do, it is relatively 
straightforward to add context sugar around it.

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt, Charts, and transparency

2006-07-18 Thread Aditya Mahajan
On Tue, 18 Jul 2006, Aditya Mahajan wrote:

 On Sat, 15 Jul 2006, Adam Lindsay wrote:

 Hans Hagen wrote:
 Idris Samawi Hamid wrote:
 Yes, but that seems mainly geared towards flow charts, not graphical
 charts. Can m-chart do things like the example png attached at the start
 of the thread?

 i lost that one; actually, willy egger is the most experienced chart user 
 but he's on vacation

 It was more like a bar graph (with two sets of y-values), nothing to do
 with m-charts. I thought about mp-graph stuff, but I don't see how it
 can be (trivially) made to do that visual style.

 Have a look at http://www-math.univ-poitiers.fr/~phan/statsmac.html to
 see if can modify them to get the visual effect that you want.

There is also the ultimate reference 
http://zoonek.free.fr/LaTeX/Metapost/metapost.html Check out example 
from 285 onwards.

Also, gnuplot can draw bargraphs easily. Mojca's gnuplot module is 
functional, so you can also give that a try.

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt, Charts, and transparency

2006-07-15 Thread Adam Lindsay
Hans Hagen wrote:
 Idris Samawi Hamid wrote:
 Yes, but that seems mainly geared towards flow charts, not graphical  
 charts. Can m-chart do things like the example png attached at the start  
 of the thread?
   
 i lost that one; actually, willy egger is the most experienced chart user but 
 he's on vacation 

It was more like a bar graph (with two sets of y-values), nothing to do 
with m-charts. I thought about mp-graph stuff, but I don't see how it 
can be (trivially) made to do that visual style.
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
  Lancaster University, InfoLab21+44(0)1524/510.514
  Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt, Charts, and transparency

2006-07-14 Thread Hans Hagen
Idris Samawi Hamid wrote:
 Dear syndicate,

 So it's not a graphical charts module but I'm curious anyway: Could  
 someone explain why the following sample file apparently does not work or  
 what I am missing?
   
did you look into m-chart (flow charts) 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt, Charts, and transparency

2006-07-14 Thread Hans Hagen
Taco Hoekwater wrote:
 Idris Samawi Hamid wrote:
   
 Dear syndicate,

 So it's not a graphical charts module but I'm curious anyway: Could  
 someone explain why the following sample file apparently does not work or  
 what I am missing?
 

 FWIW: Doesn't work here either.
   
can someone send me the test file off-list? 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt, Charts, and transparency

2006-07-14 Thread Idris Samawi Hamid
On Fri, 14 Jul 2006 09:33:13 -0600, Hans Hagen [EMAIL PROTECTED] wrote:

 Idris Samawi Hamid wrote:
 Dear syndicate,

 So it's not a graphical charts module but I'm curious anyway: Could
 someone explain why the following sample file apparently does not work  
 or
 what I am missing?

 did you look into m-chart (flow charts)

Yes, but that seems mainly geared towards flow charts, not graphical  
charts. Can m-chart do things like the example png attached at the start  
of the thread?

Best
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt, Charts, and transparency

2006-07-14 Thread Hans Hagen
The problem is in the arrows ...

\startMPinclusions
def set_ahlength (text t) =
% ahlength := (ahfactor*pen_size(_op_ t)) ; % _op_ added
% problem: _op_ can contain color so a no-go, we could apply the transform
% but i need to figure out the best way (fakepicture and take components).
  ahlength := (ahfactor*pen_size(t)) ;
enddef ;
\stopMPinclusions

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt, Charts, and transparency

2006-07-13 Thread Taco Hoekwater
Idris Samawi Hamid wrote:
 Dear syndicate,
 
 So it's not a graphical charts module but I'm curious anyway: Could  
 someone explain why the following sample file apparently does not work or  
 what I am missing?

FWIW: Doesn't work here either.

Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt, Charts, and transparency

2006-07-12 Thread Idris Samawi Hamid
Dear syndicate,

So it's not a graphical charts module but I'm curious anyway: Could  
someone explain why the following sample file apparently does not work or  
what I am missing?

:-)

Best
Idris

 =
 % output=pdf interface=en

 \usemodule[m-steps]

 % A simple paragraph-flow test:

 \starttext

 \startbuffer
 \startSTEPchart
 \cells {A} {B}
 \cells {one}   {five}  \texts{$+2$}{$-2$}
 \cells {two}   {four}  \texts{$+3$}{$-3$}
 \cells {three} {three} \texts{$+4$}{$-4$}
 \cells {four}  {two}   \texts{$+5$}{$-5$}
 \cells {five}  {one}
 \stopSTEPchart
 \stopbuffer

 \getbuffer

 \startnarrower \getbuffer \stopnarrower

 \placefigure[left]{}{} \getbuffer

 \stoptext
 =

 log file:

 =
 (chart-test-mpgraph.mp
 (c:\ConTeXt\tex\texmf-local/metapost/context/base/mp-step
 .mp)
 (0.5,0.5,0.5)
 2.5
 ! Not implemented: (color)scaled(known numeric).
 to be read again
 ;
 pen_size-...epath(top.origin--bot.origin)(TEXT2);

 (ypart.urcorner.p-ypart.lr...
 set_ahlength-...:=(ahfactor*pen_size(_op_(TEXT0))
);
 arrowheadonpath-...;set_ahlength(scaled.ahfactor)

 ;arrowhead(EXPR2)if(EXPR3)...
 drawline-...R2)=1:draw.arrowheadonpath((EXPR3),1)

 ;elseif(EXPR2)=2:draw.arro...
 image-...ture;currentpicture:=nullpicture;(TEXT2)
;currentpicture.endgroup
 l.145 ...e(2,2), 1.79993pt, (scaledgray(.5,1)) ) )
; lines[b][2][2] :=
 image(...
 ?
 =

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context