- Timestamp:
- Oct 13, 2009, 3:57:07 PM (15 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/xyprint.tcl
r1575 r1580 44 44 45 45 # Kill the title and create a border around the plot 46 $clone configure -title "" -plotborderwidth 1 -plotrelief solid \ 46 $clone configure \ 47 -title "" \ 48 -plotborderwidth 1 -plotrelief solid \ 47 49 -plotbackground white -plotpadx 0 -plotpady 0 48 50 # 49 $clone legend configure -position right -font "*-helvetica-medium-r-normal-*-12-*" \ 51 $clone legend configure \ 52 -position right \ 53 -font "*-helvetica-medium-r-normal-*-12-*" \ 50 54 -hide yes -borderwidth 0 -background white -relief flat \ 51 55 -anchor nw -activeborderwidth 0 52 56 # 53 57 foreach axis [$clone axis names] { 54 $clone axis configure $axis -ticklength 5 -loose always 55 #-min "" -max "" 56 $clone axis configure $axis -tickfont "*-helvetica-medium-r-normal-*-12-*" \ 58 $clone axis configure $axis -ticklength 5 -loose always \ 59 -min "" -max "" 60 $clone axis configure $axis \ 61 -tickfont "*-helvetica-medium-r-normal-*-12-*" \ 57 62 -titlefont "*-helvetica-medium-r-normal-*-12-*" 58 63 } … … 61 66 #$clone y2axis configure -rotate 270 62 67 foreach elem [$clone element names] { 63 $clone element configure $elem -linewidth 1 68 $clone element configure $elem -linewidth 1 \ 69 -symbol splus -pixels 3 -maxsymbols 10 64 70 } 65 71 set output [$clone postscript output \ -
trunk/gui/scripts/xyresult.tcl
r1572 r1580 163 163 itk_component add plot { 164 164 blt::graph $f.plot \ 165 -highlightthickness 0 -plotpadx 0 -plotpady 0\165 -highlightthickness 0 -plotpadx 0 -plotpady 4 \ 166 166 -rightmargin 10 167 167 } { … … 843 843 set logmin [expr {floor(log10(abs($min)))}] 844 844 set logmax [expr {ceil(log10(abs($max)))}] 845 if 0 { 845 846 if {[string match y* $axis]} { 846 847 # add a little padding … … 850 851 set logmax [expr {$logmax+0.05*$delta}] 851 852 } 853 } 852 854 } 853 855 if {$logmin < -300} { … … 870 872 set max $_limits(${axis}lin-max) 871 873 874 if 0 { 872 875 if {[string match y* $axis]} { 873 876 # add a little padding … … 876 879 set max [expr {$max+0.05*$delta}] 877 880 } 881 } 878 882 } 879 883 if {$min < $max} {
Note: See TracChangeset
for help on using the changeset viewer.