Hi Richard,

You might see if plotchart, a pure Tcl package, might work for you:

http://wiki.tcl.tk/18167

Data could be passed from Perl as Tcl lists and Perl arrays auto-convert.  
Barcharts are generally simple enough that the core Tk canvas handles them 
well, it just needs a simple library (e.g. plotchart) to do the drawing.

Jeff

On 2014-01-16, at 12:00 AM, Richard Hainsworth <rnhainswo...@gmail.com> wrote:

> Thanks Vadim for you quick reply.
> 
> I want to plot data I have generated. I can extract the data using perl since 
> I know perl. I dont want to learn Tcl just to extract data so I can then plot 
> it.
> 
> On 01/16/2014 01:41 PM, Konovalov, Vadim wrote:
>> Thank you for your report, Indeed, there are items to fix, I'll do my best 
>> to fix and release by Jan, 19. Despite of this, you already have setup ready 
>> for the usage.
>>> I've tried repeatedly to install TCL::Tk. I want to use BLT.
>> BTW Tcl::Tk is pure-perl, but - indeed - its better to have clean install 
>> rather than 'force' option.
>> Yet, for using BLT Tcl::Tk isn't necessary, you can use  BLT with just 
>> Tcl.pm module or Tkx,
>> 
>> Like this:
>> 
>> $interp->Eval(<<'EOS');
>> # tcl/tk code here
>> package require Blt
>> pack [text .t]
>> # etc etc etc
>> EOS
> I could figure most of this out. But what I dont know is how to populate data 
> structures in Perl that can be used in Tcl.
> 
> What I need BLT is to created stacked barcharts. It seems that the only 
> software to do this is GD, BLT and WXfreechart.
> 
> My solution so far is to generate GD images and then use Tk to display them.
>> However if you're planning to use BLT with perl/Tk syntax - then Tcl::Tk is 
>> indeed needed.
>> 
>> Cool, actually the Tcl CPAN module is the crucial point as a perl-to-tcl/tk 
>> bridge.
>>> CPAN.pm: Building V/VK/VKON/Tcl-Tk-1.04.tar.gz
>> ....
>> 
>>> t/text.t ........ can't find package widget::scrolledwindow at
>>> /home/richard/.local/share/.cpan/build/Tcl-Tk-1.04-
>>> 2tDOWV/blib/lib/Tcl/Tk.pm
>>> line 794.
>> This message means that your tcl/tk installation should also have snit2 or 
>> snit,
>> because $widget->Scrolled(...) is implemented used 'snit'.
>> 
>> I will try to figure out on best way to check this and then give to user 
>> useful message.
>> 
>> For now - just install 'snit2' into your tcl/tk.
>> 
>> Best regards, Vadim. 
> 

Reply via email to