Tk Library Source Code

View Ticket
Bounty program for improvements to Tcl and certain Tcl packages.
Ticket UUID: 50309a59361840fffea949411e8b82b7db1cf765
Title: Cumulatively plotting in a histogram does not work properly - overlaid bars
Type: Bug Version: 2.3.1
Submitter: arjenmarkus Created on: 2014-12-11 07:37:55
Subsystem: tklib :: plotchart Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2014-12-11 07:37:55
Resolution: None Closed By: nobody
    Closed on:
Plotting with the plotcumulative does not have the desired effect: stacking the bars, as illustrated by this little program:

# xx.tcl --
#     Check plotcumulative method
package require Plotchart
pack [canvas .c]
set p [::Plotchart::createHistogram .c {0 10 2} {0 10 2}]

$p dataconfig data  -fillcolour green
$p dataconfig data2 -fillcolour red
$p plot           data  0.0 1.0
$p plotcumulative data2 0.0 1.0
$p plot           data  1.0 1.0
$p plotcumulative data2 1.0 2.0

Instead of a red bar on top of a green bar you get a single red bar