Overview
Comment:Improved handling of new plot windows - multiplot and other options affect the new window instead of always controlling the first.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 1fcf787df74b80f502f7d2f1c0757675350863ca6503fcf8c56a4c5aa938ad2c
User & Date: geraint@users.sourceforge.net on 2002-07-14 19:02:51
Other Links: branch diff | manifest | tags
Context
2002-07-15
12:50:51
The solution vector (_ui) is no longer re-zeroed each step.
Retaining the previous value appears to give dramatically better performance.

Messages to the console are now buffered through clog instead of using cerr. check-in: 9e8edaf7e0 user: geraint@users.sourceforge.net tags: origin/master, trunk

2002-07-14
19:02:51
Improved handling of new plot windows - multiplot and other options affect the new window instead of always controlling the first. check-in: 1fcf787df7 user: geraint@users.sourceforge.net tags: origin/master, trunk
2002-07-12
15:18:55
Added xMTT to menubar. check-in: 1edc1e6509 user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/struc2gnuplot_txt2wish from [81550f7f79] to [0b8b18566d].

16
17
18
19
20
21
22

23
24
25
26
27
28
29
#!/bin/sh
# Next line replaces shell with wish\\
exec wish "\$0" "\$@"

## main window
wm title . "MTT Viewer: ${sys}"
set parameter ""


# menu bar
canvas .menubar

menubutton .menubar.file -text "File" -menu .menubar.file.menu
menu .menubar.file.menu
.menubar.file.menu add command -label "Open  (Gnuplot plot file)"    -command open_plotfile







>







16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
# Next line replaces shell with wish\\
exec wish "\$0" "\$@"

## main window
wm title . "MTT Viewer: ${sys}"
set parameter ""
set windownum 0

# menu bar
canvas .menubar

menubutton .menubar.file -text "File" -menu .menubar.file.menu
menu .menubar.file.menu
.menubar.file.menu add command -label "Open  (Gnuplot plot file)"    -command open_plotfile
167
168
169
170
171
172
173
174
175
176



177
178
179

180
181
182
183
184
185
186

## call gnuplot
proc "plot_var" "title column" {
    set_plot_options
    puts "set term X11"
    global plottype
    if {"\$plottype" == "Multi Plot"} {
	puts "replot '${dat2}' using 1:\$column title '\$title' with lines"
    } elseif {"\$plottype" == "New Window"} {
	puts "! echo \"plot '${dat2}' using 1:\$column title '\$title' with lines\" | gnuplot -geometry 400x300 -persist"



    } else {
	puts "plot '${dat2}' using 1:\$column title '\$title' with lines"
    }

}

proc "set_plot_options" "" {
    global coord;			# "Cartesian", "Polar"
    global grid;			# "Grid On", "Grid Off"
    if {"\$coord" == "Cartesian"} {
	puts "set nopolar"







|

|
>
>
>

|

>







168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191

## call gnuplot
proc "plot_var" "title column" {
    set_plot_options
    puts "set term X11"
    global plottype
    if {"\$plottype" == "Multi Plot"} {
	set plot "replot"
    } elseif {"\$plottype" == "New Window"} {
	global windownum
	set windownum [ expr \$windownum + 1 ]
	puts "set terminal x11 \$windownum"
	set plot "plot"
    } else {
	set plot "plot"
    }
    puts "\$plot '${dat2}' using 1:\$column title '\$title' with lines"
}

proc "set_plot_options" "" {
    global coord;			# "Cartesian", "Polar"
    global grid;			# "Grid On", "Grid Off"
    if {"\$coord" == "Cartesian"} {
	puts "set nopolar"


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]