Go to the source code of this file.
Classes | |
| class | Plframe::Plframe |
| class | Plframe::PlXframe |
Namespaces | |
| namespace | Plframe |
Functions | |
| def | Plframe::_flatten |
| def | Plframe::plenv |
| Now implement the PLplot API. | |
| def | Plframe::pleop |
| def | Plframe::pllab |
| def | Plframe::plline |
| def | Plframe::plpoin |
| def | Plframe::setup_defaults |
| All this stuff is being based heavily on the Pltkwin.tcl thing by Vince, for itcl/itk (which in turn was based heavily on the plwidgets.tcl stuff by Maurice). | |
| def | Plframe::setup_bindings |
| def | Plframe::set_focus |
| def | Plframe::build_menu_bar |
| def | Plframe::create_menu_print |
| def | Plframe::create_menu_save |
| def | Plframe::create_menu_orient |
| def | Plframe::create_menu_zoom |
| def | Plframe::create_menu_page |
| def | Plframe::create_menu_options |
| def | Plframe::create_menu_debug |
| def | Plframe::key_filter |
| Now the commands needed to implement the menus. | |
| def | Plframe::user_mouse |
| def | Plframe::cmd_print |
| flash | |
| def | Plframe::sucky_save |
| def | Plframe::save_as |
| def | Plframe::save_again |
| def | Plframe::save_close |
| def | Plframe::update_zoom |
| def | Plframe::zoom_select |
| def | Plframe::zoom_enter |
| s.def_button_cmd = s.plf.bind( "<ButtonPress>" ) | |
| def | Plframe::zoom_reset |
| ---------------------------------------------------------------------------- zoom_reset | |
| def | Plframe::update_orient |
| global def_button_cmd | |
| def | Plframe::orient |
| def | Plframe::page_enter |
| def | Plframe::page_reset |
| def | Plframe::zoom_start |
| def | Plframe::zoom_coords |
| Restore previous binding, but don't know how to do this in Python/Tk. | |
| def | Plframe::zoom_mouse_draw |
| def | Plframe::zoom_mouse_end |
| def | Plframe::view_zoom |
| def view_select( s, x0, y0, x1, y1 ): """Handles change of view into plot. | |
| def | Plframe::zoom_back |
| def | Plframe::zoom_forward |
| def | Plframe::view_scroll |
| def | Plframe::fixview |
| def | Plframe::status_msg |
| When scrollbars are first created, it may be necessary to unmap then map the plframe widget so that it has a chance to initialize the scrollbars before they are mapped. | |
| def | Plframe::label_reset |
| def | Plframe::label_set |
| def | Plframe::plcmap0_edit |
| def | Plframe::plcmap1_edit |
| def | Plframe::cmd |
| Now do the PLplot API. | |
| def | Plframe::pladv |
| def | Plframe::plaxes |
| def | Plframe::plbin |
| def | Plframe::plbop |
| def | Plframe::plbox |
| def | Plframe::plbox3 |
| def | Plframe::plcol0 |
| def | Plframe::plcol1 |
| def | Plframe::plcont |
| def plcontxxx( s, z, kx, lx, ky, ly, clev, pltr, xg, yg, wrap ): plsstrm( s.strm ) plcont( z, kx, lx, ky, ly, clev, pltr, xg, yg, wrap ) | |
| def | Plframe::plfcont |
| def | Plframe::plcpstream |
| def | Plframe::clearpage |
| def | Plframe::plfill |
| def | Plframe::plfont |
| def | Plframe::plfontld |
| def | Plframe::plhist |
| def | Plframe::plhls |
| def | Plframe::pljoin |
| def | Plframe::plline3 |
| def | Plframe::pllsty |
| def | Plframe::plmesh |
| def | Plframe::plmtex |
| def | Plframe::plot3d |
| def | Plframe::plplot3d |
| def | Plframe::plpoin3 |
| def | Plframe::plpoly3 |
| def | Plframe::plprec |
| def | Plframe::plpsty |
| def | Plframe::plptex |
| def | Plframe::plreplot |
| def | Plframe::plrgb |
| def | Plframe::plrgb1 |
| def | Plframe::plschr |
| def | Plframe::plshade |
| def | Plframe::plssub |
| def plshade2( s, z, xmin, xmax, ymin, ymax, sh_min, sh_max, sh_cmap, sh_color, sh_width, min_col, min_wid, max_col, max_wid, rect, pltr, xg, yg, wrap ): "Was unable to fix plshade, must make new plshade2, grrr." | |
| def | Plframe::plssym |
| def | Plframe::plsvpa |
| def | Plframe::plsxax |
| def | Plframe::plsyax |
| def | Plframe::plsym |
| def | Plframe::plszax |
| def | Plframe::plvasp |
| def | Plframe::plvpas |
| def | Plframe::plvpor |
| def | Plframe::plvsta |
| def | Plframe::plw3d |
| def | Plframe::plwid |
| def | Plframe::plwind |
| def | Plframe::debug |
Variables | |
| string | Plframe::CMD = 'cmd' |
| int | Plframe::variable = 0 |
| for i in range( len(devnamlst) ): devnam = devnamlst[i] devkey = devkeylst[i] | |
| Plframe::dx = x1-x0 | |
| if { $zoomopts($this,1) == 0 } then { | |
| Plframe::dy = y1-y0 | |
| tuple | Plframe::sign_dx = sign(dx) |
| set dx [expr $x1 - $x0] set dy [expr $y1 - $y0] | |
| tuple | Plframe::sign_dy = sign(dy) |
| Plframe::xl = x0 | |
| set sign_dx [expr ($dx > 0) ? 1 : -1] set sign_dy [expr ($dy > 0) ? 1 : -1] | |
| Plframe::yl = y0 | |
| Plframe::xr = xl+dx | |
| set xl $x0 set yl $y0 | |
| Plframe::yr = yl+dy | |
| Plframe::xscale = xmax-xmin | |
| Plframe::yscale = ymax-ymin | |
| Plframe::rx = dx/xscale | |
| Plframe::ry = dy/yscale | |
| Plframe::wxl = xl/Lx | |
| Optional translation to relative device coordinates. | |
| Plframe::wxr = xr/Lx | |
| float | Plframe::wyl = 1.0 |
| float | Plframe::wyr = 1.0 |
| tuple | Plframe::coords = s.zoom_coords( s.wx, s.wy, e.x, e.y, 1 ) |
| bind [plwin] <B1-ButtonRelease> {} bind [plwin] <B1-Motion> {} | |
| int | Plframe::stdzoom = 5 |
| Check for double-click (specified zoom region less than a few pixels wide). | |
| int | Plframe::nxl = 5 |
| int | Plframe::nxr = 5 |
| int | Plframe::nyl = 5 |
| int | Plframe::nyr = 5 |
| tuple | Plframe::bounds = split( s.tk.call( s.plf._w, 'view', 'bounds' ) ) |
| Adjust arguments to be in bounds (in case margins are in effect). | |
| tuple | Plframe::xmin = atof( bounds[0] ) |
| tuple | Plframe::ymin = atof( bounds[1] ) |
| tuple | Plframe::xmax = atof( bounds[2] ) |
| tuple | Plframe::ymax = atof( bounds[3] ) |
| int | Plframe::created_sb = 0 |
| Create scrollbars if they don't already exist. | |
1.7.1