TaoLib

Check-in [8fdcc22a9d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Performing another attempt to fix graphs
Timelines: family | ancestors | descendants | both | fsar
Files: files | file ages | folders
SHA1:8fdcc22a9dca09c79eda8d3ebfd175df7ddb6e4f
User & Date: hypnotoad 2018-11-01 19:33:55
Context
2018-11-01
21:55
Yet another fix for graphs check-in: 92aad475d7 user: hypnotoad tags: fsar
19:33
Performing another attempt to fix graphs check-in: 8fdcc22a9d user: hypnotoad tags: fsar
2018-08-06
18:41
Fix for XY graphs to provide default plot dimensions if the widget is given an empty data set check-in: de63dd3ebb user: hypnotoad tags: clay
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to modules/taotk/meta/graph.tcl.

123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
...
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
  #}

  ###
  # topic: 1173906ef32db527172dced7cecac421a90fbc05
  ###
  method initialize {} {
    next
    my variable config
    dict set config nowonly 0
    dict set config data_min_x 0
    dict set config data_max_x 530
    dict set config data_min_y 0
    dict set config data_max_y 330

    dict set config window_min_x 0
................................................................................
    dict with config {}
    dict set config graph_height     [expr {$height-($margin_top+$margin_bottom)}]  ;# Graph height
    dict set config yrange           [expr {$window_max_y-$window_min_y}]  ;# Range of Y values to display
    dict set config graph_width      [expr {$width-($margin_left+$margin_right)}]   ;# Graph width
    dict with config {}
    dict set config mhline           [expr {$margin_top+$graph_height}]          ;# Y-coord of horizontal axis
    dict set config xrange           [expr {$window_max_x-$window_min_x}]  ;# Range of X values to display

  }

  ###
  # topic: 1becbf9efe9d4f15d6621fdaa2f6add1958abebd
  ###
  method margins {{data {}}} {
    my variable config lastview







|







 







|







123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
...
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
  #}

  ###
  # topic: 1173906ef32db527172dced7cecac421a90fbc05
  ###
  method initialize {} {
    next
    my variable config lastview
    dict set config nowonly 0
    dict set config data_min_x 0
    dict set config data_max_x 530
    dict set config data_min_y 0
    dict set config data_max_y 330

    dict set config window_min_x 0
................................................................................
    dict with config {}
    dict set config graph_height     [expr {$height-($margin_top+$margin_bottom)}]  ;# Graph height
    dict set config yrange           [expr {$window_max_y-$window_min_y}]  ;# Range of Y values to display
    dict set config graph_width      [expr {$width-($margin_left+$margin_right)}]   ;# Graph width
    dict with config {}
    dict set config mhline           [expr {$margin_top+$graph_height}]          ;# Y-coord of horizontal axis
    dict set config xrange           [expr {$window_max_x-$window_min_x}]  ;# Range of X values to display
    set lastview $config
  }

  ###
  # topic: 1becbf9efe9d4f15d6621fdaa2f6add1958abebd
  ###
  method margins {{data {}}} {
    my variable config lastview