- Timestamp:
- Dec 4, 2011, 2:41:55 PM (15 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- a64f8ce
- Parents:
- af9a0af
- File:
-
- 1 edited
-
tolbase/lib/toltk/bysgropt.tcl (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tolbase/lib/toltk/bysgropt.tcl
raf9a0af r8d0dffc 3253 3253 } 3254 3254 # marker each 3255 puts "::bayesGraph::GrapOptApplyMarkers: $g, var=$var, pre=$pre" 3256 puts "[ $g axis cget x -majorticks ]" 3255 3257 foreach {axis map} {x mapx y mapy x2 mapx y2 mapy} { 3256 3258 # comprobamos si esta visible el eje … … 3268 3270 # nos quedamos con el valor minimo y maximo del eje 3269 3271 #TODO: igual es interesante quedarnos con el max y min de las lineas 3270 # asiciadas al eje 3272 # asociadas al eje 3273 $g axis configure x -majorticks [ $g axis cger x -majorticks ] 3274 if { 0 } { 3271 3275 set max [$g axis cget $axis -max] 3272 3276 set min [$g axis cget $axis -min] … … 3280 3284 } 3281 3285 set i 0 3286 } 3282 3287 set j 0 3288 puts "lstMarkers = $lstMarkers" 3283 3289 foreach it $lstMarkers { 3284 3290 if {$j==5} { set j 0 } … … 3292 3298 $g marker bind $it <Enter> \ 3293 3299 [list ::bayesGraph::WriteInfo $this "[mc Marker]${axis}: each $it"] 3300 set majorTicks [ $g axis cget $axis -majorticks ] 3294 3301 $g marker bind $it <Leave> \ 3295 3302 [list ::bayesGraph::WriteInfo $this ""] 3303 puts "voy con it = $it" 3304 for { set mt 0 } { $mt < [ llength $majorTicks ] } { incr mt } { 3305 if { [ expr { ( $mt + 1 ) % int( $it ) } ] } continue 3306 set pos [ lindex $majorTicks $mt ] 3307 if { "x" eq [string index $axis 0] } { 3308 set coord [list $pos -Inf $pos Inf] 3309 } else { 3310 set coord [list -Inf $pos Inf $pos] 3311 } 3312 puts "añadiendo marcador $mt en posicion $pos" 3313 catch { 3314 $g marker create line -name ${it}_$pos -coords $coord \ 3315 -outline $color -dashes $dashe -$map $axis \ 3316 -bindtags $it -linewidth $width -under $under 3317 } 3318 } 3319 if { 0 } { 3296 3320 while {$pos < $numTicks} { 3297 3321 set pos [expr $pos + $it] … … 3307 3331 } 3308 3332 incr i 3333 } 3309 3334 } 3310 3335 } … … 3312 3337 } 3313 3338 } 3314 } 3315 3339 puts "[ $g axis cget x -majorticks ]" 3340 } 3316 3341 3317 3342 #///////////////////////////////////////////////////////////////////////////// … … 3341 3366 set lon [llength [$g marker names]] 3342 3367 set j [expr $lon<5 ? $lon : $lon % 5] 3343 3344 3368 foreach it $lstMarkersIn { 3345 3369 if {$j==5} { set j 0 }
Note: See TracChangeset
for help on using the changeset viewer.
