~ubuntu-branches/ubuntu/quantal/ruby1.9.1/quantal

« back to all changes in this revision

Viewing changes to ext/tk/lib/tkextlib/tcllib/plotchart.rb

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2011-09-24 19:16:17 UTC
  • mfrom: (1.1.8 upstream) (13.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110924191617-o1qz4rcmqjot8zuy
Tags: 1.9.3~rc1-1
* New upstream release: 1.9.3 RC1.
  + Includes load.c fixes. Closes: #639959.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
221
221
    end
222
222
 
223
223
    def legend(series, text)
224
 
      tk_call_without_enc(@chart, 'legend', 
 
224
      tk_call_without_enc(@chart, 'legend',
225
225
                          _get_eval_enc_str(series), _get_eval_enc_str(text))
226
226
      self
227
227
    end
238
238
 
239
239
      text, dir = args
240
240
 
241
 
      tk_call_without_enc(@chart, 'balloon', x, y, 
 
241
      tk_call_without_enc(@chart, 'balloon', x, y,
242
242
                          _get_eval_enc_str(text), dir)
243
243
      self
244
244
    end
263
263
 
264
264
      text, dir = args
265
265
 
266
 
      tk_call_without_enc(@chart, 'plaintext', x, y, 
 
266
      tk_call_without_enc(@chart, 'plaintext', x, y,
267
267
                          _get_eval_enc_str(text), dir)
268
268
      self
269
269
    end
485
485
    end
486
486
 
487
487
    def dot(series, xcrd, ycrd, value)
488
 
      tk_call_without_enc(@chart, 'dot', _get_eval_enc_str(series), 
 
488
      tk_call_without_enc(@chart, 'dot', _get_eval_enc_str(series),
489
489
                          xcrd, ycrd, value)
490
490
      self
491
491
    end
804
804
    private :_create_chart
805
805
 
806
806
    def plot(label, yvalue, color)
807
 
      tk_call_without_enc(@chart, 'plot', _get_eval_enc_str(label), 
 
807
      tk_call_without_enc(@chart, 'plot', _get_eval_enc_str(label),
808
808
                          _get_eval_enc_str(yvalue), color)
809
809
      self
810
810
    end
1262
1262
      # time_begin := String of time format (e.g. "1 january 2004")
1263
1263
      # time_end   := String of time format (e.g. "1 january 2004")
1264
1264
      # args := Expected/maximum number of items
1265
 
      #          ( This determines the vertical spacing. ), 
1266
 
      #         Expected/maximum width of items, 
 
1265
      #          ( This determines the vertical spacing. ),
 
1266
      #         Expected/maximum width of items,
1267
1267
      #         Option Hash ( { key=>value, ... } )
1268
1268
      if args[0].kind_of?(String)
1269
1269
        @time_begin = args.shift