Tk Library Source Code

View Ticket
Login
Ticket UUID: 4c28633e3a10ae0ed109daf0af942ff6b715134d
Title: Missing arg for ::Plotchart::DrawLogYaxis in plotaxis.tcl
Type: Patch Version: 2.3.3
Submitter: anonymous Created on: 2015-03-18 13:35:54
Subsystem: tklib :: plotchart Assigned To: arjenmarkus
Priority: 5 Medium Severity: Important
Status: Open Last Modified: 2026-11-16 17:17:33
Resolution: None Closed By: nobody
    Closed on:
Description:
Method yconfig throws an error for xlogyplot or logxlogyplot type, example :

In plotdemos11.tcl, replacing 

$p title "y = log(x)"

by

$p title "y = log(x)"
$p xconfig -format "%.2f"

and replacing 

$p xticklines grey

by 

$p xticklines grey
$p yconfig -format "%.2f"

throws this error for logy type, ( but not for logx type ) "args should be ..."

Cause : AxisConfig calls ::Plotchart::DrawLogYaxis with more arguments than defined.

Proposed patch : Add "args" as an extra arguments to ::Plotchart::DrawLogYaxis. It is upward compatible. Note : the sister function ::Plotchart::DrawLogXaxis is correctly defined with "args".
User Comments: serhiy.storchaka added on 2026-11-16 17:17:33:

Proposed fix in branch plotchart-logy-yconfig-labels: the change from this ticket, with a test.