Module: Tk::Tcllib::Plotchart
- Extended by:
- TkCore
- Defined in:
- lib/tkextlib/tcllib/plotchart.rb,
lib/tkextlib/tcllib/plotchart.rb
Defined Under Namespace
Modules: ChartMethod
Classes: Barchart, Barchart3D, Boxplot, Ganttchart, Histogram, HorizontalBarchart, IsometricPlot, Piechart, Plot3D, PlotSeries, PolarPlot, Radialchart, RibbonChart3D, RightAxis, Stripchart, TXPlot, Timechart, XLogYPlot, XYPlot
Constant Summary
collapse
- PACKAGE_NAME =
'Plotchart'.freeze
- Polarplot =
PolarPlot
- Isometricplot =
IsometricPlot
Constants included
from TkCore
TkCore::EventFlag, TkCore::INTERP, TkCore::INTERP_MUTEX, TkCore::INTERP_ROOT_CHECK, TkCore::INTERP_THREAD, TkCore::INTERP_THREAD_STATUS, TkCore::RUN_EVENTLOOP_ON_MAIN_THREAD, TkCore::WIDGET_DESTROY_HOOK, TkCore::WITH_ENCODING, TkCore::WITH_RUBY_VM
Constants included
from TkComm
TkComm::GET_CONFIGINFO_AS_ARRAY, TkComm::GET_CONFIGINFOwoRES_AS_ARRAY, TkComm::TkExtlibAutoloadModule, TkComm::Tk_CMDTBL, TkComm::Tk_IDs, TkComm::Tk_WINDOWS, TkComm::USE_TCLs_LIST_FUNCTIONS, TkComm::WidgetClassNames
Class Method Summary
collapse
-
.coords_3D_to_pixel(w, x, y, z) ⇒ Object
-
.coords_to_pixel(w, x, y) ⇒ Object
-
.determine_scale(*args) ⇒ Object
(xmin, xmax, inverted=false).
-
.package_name ⇒ Object
-
.package_version ⇒ Object
-
.pixel_to_coords(w, x, y) ⇒ Object
-
.plotconfig(*args) ⇒ Object
-
.plotpack(w, dir, *plots) ⇒ Object
-
.polar_coordinates(w, radmax) ⇒ Object
-
.polar_to_pixel(w, rad, phi) ⇒ Object
-
.set_zoom_pan(w) ⇒ Object
-
.view_port(w, *args) ⇒ Object
args := pxmin, pymin, pxmax, pymax.
-
.world_3D_coordinates(w, *args) ⇒ Object
-
.world_coordinates(w, *args) ⇒ Object
args := xmin, ymin, xmax, ymax.
Methods included from TkCore
_tk_call_to_list_core, after, after_cancel, after_idle, appname, appsend, appsend_deny, appsend_displayof, callback, callback_break, callback_continue, callback_return, chooseColor, chooseDirectory, do_one_event, event_generate, getMultipleOpenFile, getMultipleSaveFile, getOpenFile, getSaveFile, get_eventloop_tick, get_eventloop_weight, get_no_event_wait, inactive, inactive_displayof, info, ip_eval, ip_eval_with_enc, ip_eval_without_enc, ip_invoke, ip_invoke_with_enc, ip_invoke_without_enc, is_mainloop?, load_cmd_on_ip, mainloop, mainloop_exist?, mainloop_thread?, mainloop_watchdog, messageBox, rb_appsend, rb_appsend_displayof, reset_inactive, reset_inactive_displayof, restart, scaling, scaling_displayof, set_eventloop_tick, set_eventloop_weight, set_no_event_wait, tk_call, tk_call_to_list, tk_call_to_list_with_enc, tk_call_to_list_without_enc, tk_call_to_simplelist, tk_call_to_simplelist_with_enc, tk_call_to_simplelist_without_enc, tk_call_with_enc, tk_call_without_enc, windowingsystem
Methods included from TkComm
_at, _callback_entry?, _callback_entry_class?, _curr_cmd_id, _fromUTF8, _genobj_for_tkwidget, _next_cmd_id, _toUTF8, array2tk_list, #bind, #bind_all, #bind_append, #bind_append_all, #bind_remove, #bind_remove_all, #bindinfo, #bindinfo_all, bool, image_obj, #install_cmd, install_cmd, list, num_or_nil, num_or_str, number, procedure, simplelist, slice_ary, string, #subst, tk_tcl2ruby, uninstall_cmd, #uninstall_cmd, window
Methods included from TkEvent
#install_bind, #install_bind_for_event_class
Class Method Details
.coords_3D_to_pixel(w, x, y, z) ⇒ Object
109
110
111
|
# File 'lib/tkextlib/tcllib/plotchart.rb', line 109
def self.coords_3D_to_pixel(w, x, y, z)
list(tk_call_without_enc('::Plotchart::coords3DToPixel', w.path, x, y, z))
end
|
.coords_to_pixel(w, x, y) ⇒ Object
105
106
107
|
# File 'lib/tkextlib/tcllib/plotchart.rb', line 105
def self.coords_to_pixel(w, x, y)
list(tk_call_without_enc('::Plotchart::coordsToPixel', w.path, x, y))
end
|
.determine_scale(*args) ⇒ Object
(xmin, xmax, inverted=false)
148
149
150
|
# File 'lib/tkextlib/tcllib/plotchart.rb', line 148
def self.determine_scale(*args) tk_call_without_enc('::Plotchart::determineScale', *args)
end
|
.package_name ⇒ Object
72
73
74
|
# File 'lib/tkextlib/tcllib/plotchart.rb', line 72
def self.package_name
PACKAGE_NAME
end
|
.package_version ⇒ Object
76
77
78
79
80
81
82
|
# File 'lib/tkextlib/tcllib/plotchart.rb', line 76
def self.package_version
begin
TkPackage.require('Plotchart')
rescue
''
end
end
|
.pixel_to_coords(w, x, y) ⇒ Object
144
145
146
|
# File 'lib/tkextlib/tcllib/plotchart.rb', line 144
def self.pixel_to_coords(w, x, y)
list(tk_call_without_enc('::Plotchart::coordsToPixel', w.path, x, y))
end
|
.plotconfig(*args) ⇒ Object
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
# File 'lib/tkextlib/tcllib/plotchart.rb', line 113
def self.plotconfig(*args)
case args.length
when 0, 1, 2
simplelist(tk_call('::Plotchart::plotconfig', *args))
when 3
tk_call('::Plotchart::plotconfig', *args)
else
tk_call('::Plotchart::plotconfig', *args)
nil
end
end
|
.plotpack(w, dir, *plots) ⇒ Object
131
132
133
134
|
# File 'lib/tkextlib/tcllib/plotchart.rb', line 131
def self.plotpack(w, dir, *plots)
tk_call_without_enc('::Plotchart::plotpack', w.path, dir, *plots)
w
end
|
.polar_coordinates(w, radmax) ⇒ Object
136
137
138
|
# File 'lib/tkextlib/tcllib/plotchart.rb', line 136
def self.polar_coordinates(w, radmax)
tk_call_without_enc('::Plotchart::polarCoordinates', w.path, radmax)
end
|
.polar_to_pixel(w, rad, phi) ⇒ Object
140
141
142
|
# File 'lib/tkextlib/tcllib/plotchart.rb', line 140
def self.polar_to_pixel(w, rad, phi)
list(tk_call_without_enc('::Plotchart::polarToPixel', w.path, rad, phi))
end
|
.set_zoom_pan(w) ⇒ Object
152
153
154
|
# File 'lib/tkextlib/tcllib/plotchart.rb', line 152
def self.set_zoom_pan(w)
tk_call_without_enc('::Plotchart::setZoomPan', w.path)
end
|
.view_port(w, *args) ⇒ Object
args := pxmin, pymin, pxmax, pymax
90
91
92
|
# File 'lib/tkextlib/tcllib/plotchart.rb', line 90
def self.view_port(w, *args) tk_call_without_enc('::Plotchart::viewPort', w.path, *(args.flatten))
end
|
.world_3D_coordinates(w, *args) ⇒ Object
99
100
101
102
103
|
# File 'lib/tkextlib/tcllib/plotchart.rb', line 99
def self.world_3D_coordinates(w, *args)
tk_call_without_enc('::Plotchart::world3DCoordinates',
w.path, *(args.flatten))
end
|
.world_coordinates(w, *args) ⇒ Object
args := xmin, ymin, xmax, ymax
94
95
96
97
|
# File 'lib/tkextlib/tcllib/plotchart.rb', line 94
def self.world_coordinates(w, *args) tk_call_without_enc('::Plotchart::worldCoordinates',
w.path, *(args.flatten))
end
|