Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Removing agenda from blt::stripchart

42 views
Skip to first unread message

Cecil Westerhof

unread,
Dec 21, 2017, 10:44:06 PM12/21/17
to
I am using blt::stripchart. I create this with:
grid [blt::stripchart .graph -height 2i -width 5i -bufferelements no] -column 1 -row 1 -sticky w
.graph element create temp -xdata xvec -ydata y1vec -symbol none -color green

But this creates am agenda with a little green line with temp behind
it. This is (in this case) a waste of time. Can I remove this?

Is there decent documentation for BLT? Until now I could not find it.

--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

martyn....@gmail.com

unread,
Dec 22, 2017, 3:55:04 AM12/22/17
to
The HTML help pages included with the BLT extension are very detailed, they are missing some subcommands but nothing important for a basic use.

Your explanation is not clear what is the agenda you are talking about, is it the Legend by default I think it is to the right of the graph.
this is configured using the 'graph legend configure' command

All of the BLT commands report usage messages as well.
. graph element toto
will return a message giving all of the element options.
.graph element configure elementname
will return the standard list of all configuration options for that element
just try the commands if you have trouble with the documentation.

Martyn

Cecil Westerhof

unread,
Dec 22, 2017, 5:59:06 AM12/22/17
to
martyn....@gmail.com writes:

> Le vendredi 22 décembre 2017 04:44:06 UTC+1, Cecil Westerhof a écrit :
>> I am using blt::stripchart. I create this with:
>> grid [blt::stripchart .graph -height 2i -width 5i -bufferelements no] -column 1 -row 1 -sticky w
>> .graph element create temp -xdata xvec -ydata y1vec -symbol none -color green
>>
>> But this creates am agenda with a little green line with temp behind
>> it. This is (in this case) a waste of time. Can I remove this?
>>
>> Is there decent documentation for BLT? Until now I could not find it.
>>
>
> The HTML help pages included with the BLT extension are very detailed,
> they are missing some subcommands but nothing important for a basic
> use.

Where do I find those pages?


> Your explanation is not clear what is the agenda you are talking about,
> is it the Legend by default I think it is to the right of the graph.

That is what I mean yes. I was afraid it was not very clear, but did
not know a better way to describe it.


> this is configured using the 'graph legend configure' command
>
> All of the BLT commands report usage messages as well.
> . graph element toto
> will return a message giving all of the element options.
> .graph element configure elementname
> will return the standard list of all configuration options for that element
> just try the commands if you have trouble with the documentation.

I am going to try.

Cecil Westerhof

unread,
Dec 22, 2017, 6:44:06 AM12/22/17
to
The solution is:
grid [blt::stripchart .graph -height 2i -width 5i -bufferelements no] -column 1 -row 1 -sticky w
.graph element create temp -xdata xvec -ydata y1vec -symbol none -color green -fill green -label {}

That looks a lot better. :-)


Something else I would like to do, is using a solid (or filled) graph
instead of just a line.
I would expect that this could be done with fill, but that has already
a value:
-fill fill Fill defcolor green

So if anyone has a bright idea …

Nicolas Robert

unread,
Dec 22, 2017, 12:04:15 PM12/22/17
to

> Something else I would like to do, is using a solid (or filled) graph
> instead of just a line.
> I would expect that this could be done with fill, but that has already
> a value:
> -fill fill Fill defcolor green
>
> So if anyone has a bright idea …
>


I'm using rbc (http://wiki.tcl.tk/24533) , I believe that you can make the same thing
try this (rbc pckage):
namespace import rbc::*
.graph element create temp \
-xdata xvec \
-ydata y1vec \
-symbol none \
-color green \
-areapattern solid \
-areaforeground green \
-label {}
0 new messages