From: Uwe Klein on
sd wrote:
> I call a while back that Mr. GH was working on a new version of BLT
> that is compatible with newer releases of tcl/tk. Does anyone know if
> that's still the case?
>
> Regards
> sd/
Looked a couple of days ago.
Seems to be still at it.
Last changes on sourceforge were done about a fortnight ago.

uwe

From: oc_forums on
On 12 fév, 17:56, sd <sham...(a)hotmail.com> wrote:
> I call a while back that Mr. GH was working on a new version of BLT
> that is compatible with newer releases of tcl/tk.  Does anyone know if
> that's still the case?
>
> Regards
> sd/

You may find some hints here :
http://groups.google.com/group/comp.lang.tcl/browse_thread/thread/d2aba6d55d7b30c2

But maybe RCB in ActiveState teacup is an option as it is a BLT with
the most used functions :
graph, vector, bargraph; and compatible with the recent Tcl/Tk
release.

Regards, Olivier
From: Roger O on
On Feb 12, 10:48 am, MSEdit <mse...(a)gmail.com> wrote:
> On Feb 11, 4:35 pm, Uwe Klein <uwe_klein_habertw...(a)t-online.de>
> wrote:
>
>
>
> > Roger O wrote:
> > > I use the ::blt::stripchart to plot data, often contained in a vector
> > > managed via the C API. The data in the vector has a valid range of
> > > values on the Y axis. There is a data value that indicates it is out
> > > of range. All the traces on the stripchart do not have the same range
> > > of valid data. What is valid for one may not be valid for another.
>
> > > I want to indicate that some values along the trace are valid, and
> > > some are not. But how? I do not see any way to have a line in the
> > > stripchart be a different color when it is within specified ranges of
> > > values.
>
> > > I have tried setting the value to one that will not be shown in the
> > > plot. Unfortunately, a line is drawn to/from that point to the valid
> > > value, which looks odd. So I do not think this is a way to go.
>
> > > Am I missing an (not so) obvious way to deal with this?
>
> > I only ever used [graph], but:
>
> > the marker stuff?
>
> > uwe
>
> Hi,
>
> You need to look at the weights and pens section. These are covered in
> the demo scripts.
> I think it is graph2.tcl that has examples you can change segment
> styles and symbols I believe.
>
> Martyn

I tried this as follows:

::blt::stripchart .sc -title "Live values"
..sc pen create or1 -color red
lappend styles "or1 -200 -49"
..sc pen create ok -color yellow
lappend styles "ok -50 50"
..sc pen create or2 -color blue
lappend styles "or2 51 200"
..sc element create laser1 -label "Dev 1" -xdata xaxis -ydata yaxis -
styles $styles

The test data is a saw tooth that goes from -100 to +100. It plots in
blue, no matter.

Perhaps this only changes the symbol, which I do not plot as it is too
busy when there are lots of lines.

--
Roger Oberholtzer
From: oc_forums on

> Perhaps this only changes the symbol, which I do not plot as it is too
> busy when there are lots of lines.
>

Maybe you have to declare a vector "X" from -100 to 100 (one abscisse
for one coordonate)
and to add -weights X when creating the element or something like
this...

(-weights not -weight which apply to the pen)

(As Martyn wrote, see graph2.tcl in demos of BLT with the -weights
option)

A good document is to be found on sourceForge at

http://sourceforge.net/projects/blt/files/

choose BLT 2.4z and you will find a pdf file names "slides.pdf"
and an example at page 53 maybe this is another way ?

Hope this will help.

Olivier.
From: Roger O on
I did look at graph2. But I focused on the styles. Which I did
correctly. It was just not obvious that I needed to specify the data
as both the yaxis and the weight:

..sc element create laser1 -label "Dev 1" -xdata xaxis -ydata yaxis -
styles $styles

should be

..sc element create laser1 -label "Dev 1" -xdata xaxis -ydata yaxis -
weight yaxis -styles $styles


Now it works as I want. So, thanks for all the help.

I really hope Mr. Howlett is making progress on this great tool kit in
the current Tcl environment.
First  |  Prev  | 
Pages: 1 2
Prev: tdbc and posgresql
Next: .net & Tcl