Changeset 223
- Timestamp:
- 12/20/07 16:06:24 (4 years ago)
- Location:
- trunk/Code
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Code/grab.pro
r222 r223 93 93 LocalDomainLeft = [0.0,0.0,0.0] 94 94 LocalDomainRight = [1.0,1.0,1.0] 95 LocalFinestWidth = [0.1,0.1,0.1] 95 dimsA = size(LocalA,/dimension) 96 LocalFinestWidth = (LocalDomainRight-LocalDomainLeft)/dimsA 96 97 endelse 98 ;stop 97 99 break 98 100 99 101 end 100 102 -
trunk/Code/gsh.pro
r194 r223 305 305 306 306 307 ;print, "Grids shown:", GoodList[0:nGood-1] + 1307 print, "Grids shown:", GoodList[0:nGood-1] + 1 308 308 if ptr_valid(self.GridsInPlot) then ptr_free, self.GridsInPlot 309 309 self.GridsInPlot = ptr_new(GoodList, /no_copy) -
trunk/Code/gui.pro
r222 r223 55 55 ;get new geometry, resize draw window, resize pixmap, replot data. 56 56 case uname of 57 'inq_plot_opts': begin 58 print, "monkey" 59 end 57 'inq_plot_opts': (*top_uvalue).inq_plot_opts = event.value 58 'inquest_overplot': (*top_uvalue).inquest_overplot = event.value 60 59 'inquest_persistent': (*top_uvalue).inquest_persistent = event.value 61 60 'inquest_base': begin … … 195 194 if (*top_uvalue).ValidPlot EQ 1 then begin 196 195 if (*top_uvalue).inquest_persistent EQ 1 then begin 197 198 199 ;get data, plot into inquest196 197 198 ;get data, plot into inquest 200 199 indicies = (*(*top_uvalue).indexLine) 201 200 Xaxis = (*(*top_uvalue).coordline) 202 201 DataLine = (*(*top_uvalue).b)[indicies] 203 202 wset, (*top_uvalue).inquest_pix_number ;use this next 204 plot, Xaxis, DataLine, psym = -5, xstyle=1 203 opts = "" 204 if (*top_uvalue).inq_plot_opts NE "" then opts = ","+(*top_uvalue).inq_plot_opts 205 if (*top_uvalue).inquest_overplot EQ 0 then begin 206 ret = execute('plot, Xaxis, DataLine, xstyle=1' + opts) 207 endif else begin 208 ret = execute('oplot, Xaxis,DataLine' + opts) 209 endelse 205 210 wset, (*top_uvalue).inquest_window_number 206 211 device,copy = [0,0,!d.x_size,!d.y_size,0,0,(*top_uvalue).inquest_pix_number] … … 755 760 event_pro="menu_buttons", uname = "inquest_button",$ 756 761 uvalue = ptr_new({base:inquest_base}) ) 757 inq_plot_opts = cw_field(inq_tools,/row,title="plot opts",/string,value = ' this doesnt work yet', $758 uname="inq_plot_opts", xsize = 40 )762 inq_plot_opts = cw_field(inq_tools,/row,title="plot opts",/string,value = 'psym = -5', $ 763 uname="inq_plot_opts", xsize = 40,/all_events ) 759 764 760 765 inq_pers = cw_bgroup(inq_tools,['no','yes'],/col,/exclusive ,set_value = 0, $ 761 766 uname="inquest_persistent", /return_index, label_left='persistent', frame =1) 767 768 inq_oplot = cw_bgroup(inq_tools,['no','yes'],/col,/exclusive ,set_value = 0, $ 769 uname="inquest_overplot", /return_index, label_left='oplot', frame =1) 762 770 763 771 inquest_button = widget_button(button_column,value = 'Inquest', $; xsize = button_x,ysize = button_y,$ … … 938 946 'LineDrawn',0, 'HoldingEnd',0, 'DataLine',DataLine, $ 939 947 'CoordLine',CoordLine, 'IndexLine',IndexLine,$ 940 'inq_plot_opts','', 'vis','hidden', 'inquest_persistent', 0) 948 'inq_plot_opts','', 'vis','hidden', 'inquest_persistent',0,$ 949 'inquest_overplot', 0,'inquest_plotted', 0) 941 950 ;Things unique to the main window 942 951 main_uvalue = create_struct('object',self, $ -
trunk/Code/main_window_event.pro
r222 r223 124 124 DataLine = (*(*top_uvalue).b)[indicies] 125 125 wset, (*top_uvalue).inquest_pix_number ;use this next 126 plot, Xaxis, DataLine, psym = -5, xstyle=1 126 127 ;Due to a design error, the first plot 128 ;is done here. (as the line is drawn.) 129 ;All persistent and oplots are done in 130 ;the gui. 131 opts = "" 132 if (*top_uvalue).inq_plot_opts NE "" then opts = ","+(*top_uvalue).inq_plot_opts 133 ret = execute("plot, Xaxis, DataLine,/xstyle" + opts) 127 134 wset, (*top_uvalue).inquest_window_number 128 135
Note: See TracChangeset
for help on using the changeset viewer.
