Deutsch   English   Français   Italiano  
<vv7um5$26n49$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Alan Grunwald <nospam.nurdglaw@gmail.com>
Newsgroups: comp.lang.tcl
Subject: Plotchart - t-axis labels
Date: Sun, 4 May 2025 15:46:06 +0100
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <vv7um5$26n49$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 04 May 2025 16:47:33 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="ee0ecd7025166bc582d3e5e30f828f1e";
	logging-data="2317449"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19/hGCYFj5UPnU6zyRu/GSAr7m4wYFM9ec="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:YPq6ig+9EgVAcrxPuh/OHEvLMdE=
Content-Language: en-US
Bytes: 1903

I'm trying to plot a set of timed values using Plotchart::createTXPlot.

My first vaguely successful attempt leads to unreadable labels on the 
(horizontal) t-axis because the date/times overlap each other. I'd like 
to specify that the labels be displayed vertically, which seems a fairly 
good and obvious solution but I can't see a way to do this easily using 
Plotchart commands.

I have discovered by experiment that the labels are specified by canvas 
items with the tag "taxis", so I can rotate the items with code like this:

foreach item [$canvas find withtag taxis] {
     if {[$canvas type $item] eq "text"} {
         $canvas itemconfigure $item -angle 270 -anchor e
     }
}

but since this isn't documented, I fear it may change in a future 
version of Plotchart.

I'm also having a bit of trouble getting the canvas to scroll properly 
which I haven't yet worked out properly.

Is there a better, preferrably a "supported" way to do this?

Thanks