functions in copy_plot.i -
copy_win
|
copy_win,window_source,window_target Copy the style and the graphic elements of window WINDOW_SOURCE to window WINDOW_TARGET KEYWORDS: lmt= if set, copy also the limits (the default) clear= if set, erase the window before copying (the default) pal= if set, copy the palette too (the default) | |
SEE ALSO: | ALSO:replot_all, replot_one_sys |
decomp_prop
|
decomp_prop(prop,&p1,&p2,&p3,&p4,&p5) Put in propi the array *prop(i); |
get_color
|
get_color(color) Check if color is a rgb encoded color. If so return the array [red,green,blue], else just return color. |
get_nb_sys
|
get_nb_sys(win) Return the numberof og system in the window 'win'. If win is ommited, return the numberof of system in the current window. This routine does not change the selected window. | |
SEE ALSO: |
get_selected_system
|
bkp=get_selected_system(); Return the current selected system and window | |
SEE ALSO: | set_selected_system |
load_plot
|
load_plot(filename,wout) Load Yorick plot form file 'filename' in window wout The plot have to be saved with save_plot. EXAMPLE: window,0; pli,random(100,100); pltitle,"Random array"; limits,20,60,10,70; plt,"Zoom In",40,40,tosys=1,color="yellow",height=18; save_plot,"rand_array.gdb",0; load_plot,"rand_array.gdb",1; KEYWORDS: lmt= if set (default), restore also the imits clear= if set (default) erase the window before loading pal= use the palette saved in the file if any (the default) | |
SEE ALSO: | save_plot, copy_win |
replot
|
replot(prop) replot(p1,p2,p3,p4,rslt) Replot a graphical element with its plq properties. prop is the array return by plq(i). then replot(plq(i)) will replot the graphical element i. | |
SEE ALSO: | copy_win, replot_all, replot_one_sys |
replot_all
|
replot_all(window_source,window_target) Copy graphical elements of all systems (but not the style) of window window_source to window_target KEYWORDS: lmt : if set, copy also the limits (the default) | |
SEE ALSO: | copy_win, replot_one_sys |
replot_one_sys
|
replot_one_sys(window_source,sys_source,winow_target,system_target) Copy all the graphical elements of the system sys_source of window_source to the system sys_target of window window_target KEYWORDS: lmt : if set, copy also the limits (the default) | |
SEE ALSO: | ALSO:copy_win, replot_all |
replot_plc
|
replot_plc(prop) Same as replot but only for plc graphical elements | |
SEE ALSO: | replot |
replot_pldj
|
replot_pldj(prop) Same as replot but only for pldj graphical elements | |
SEE ALSO: | replot |
replot_plf
|
replot_plf(prop) Same as replot but only for plf graphical elements | |
SEE ALSO: | replot |
replot_plfp
|
replot_plfp(prop) Same as replot but only for plfp graphical elements | |
SEE ALSO: | replot |
replot_plg
|
replot_plg(prop) Same as replot but only for plg graphical elements | |
SEE ALSO: | replot |
replot_pli
|
replot_pli(prop) Same as replot but only for pli graphical elements | |
SEE ALSO: | replot |
replot_plm
|
replot_plm(prop) Same as replot but only for plm graphical elements | |
SEE ALSO: | replot |
replot_plt
|
replot_plt(prop) Same as replot but only for plt graphical elements | |
SEE ALSO: | replot |
replot_plv
|
replot_plv(prop) Same as replot but only for plv graphical elements | |
SEE ALSO: | replot |
reshape_plg
|
reshape_plg(prop) Return [&x,&y], where x and y are the array used for the plot (plg,y,x). | |
SEE ALSO: | reshape_prop |
reshape_prop
|
reshape_prop(prop) Return an array of pointers that point to the data useful for drawing the graphical element. The size of the array depend of the graphical type, and the order of the pointers is the same than the one of the plq() fifth element. |
save_plot
|
save_plot(filename,win,pal) Save Yorick plot of window win in file 'filename'. The plot can be reload with load_plot. KEYWORDS: pal= : save the palette if any in the file (the default) EXAMPLE: window,0; pli,random(100,100); pltitle,"Random array"; limits,20,60,10,70; plt,"Zoom In",40,40,tosys=1,color="yellow",height=18; save_plot,"rand_array.gdb",0; load_plot,"rand_array.gdb",1; | |
SEE ALSO: | load_plot, copy_win |
set_selected_system
|
set_selected_system(saved_sys) Set the window number to SAVED_SYS(1) and the system number to SAVED_SYS(2) and return the window and system number before the modification. Use it with get_selected_system. The usual way of using these two functions is: bck = get_selected_system // you can change window and system with window,# // and plsys,# // And to go back to the window and the system // before all these modifications: set_selected_system,bck | |
SEE ALSO: | get_selected_system |