~ubuntu-branches/ubuntu/utopic/ctioga2/utopic

« back to all changes in this revision

Viewing changes to lib/ctioga2/graphics/elements/parametric2d.rb

  • Committer: Package Import Robot
  • Author(s): Vincent Fourmond
  • Date: 2013-12-27 21:04:22 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20131227210422-a3f0c7alorq6lwq2
Tags: 0.8-1
* New upstream release
* Updated URLs and debian/watch to follow its new location
* Already conforms to standards 3.9.5
* Finally updated VCS URLS

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
module CTioga2
21
21
 
22
 
  Version::register_svn_info('$Revision: 535 $', '$Date: 2013-10-02 20:31:21 +0200 (Wed, 02 Oct 2013) $')
23
 
 
24
22
  module Graphics
25
23
 
26
24
    module Elements
122
120
 
123
121
        # Draws the markers, if applicable.
124
122
        def draw_markers(t)
125
 
          @parametric_style.prepare
126
123
          if @curve_style.has_marker?
127
124
            # We use a default color map for the markers
128
125
            @curve_style.marker_color_map ||= 
148
145
 
149
146
            # draw_fill(t)
150
147
            # draw_errorbars(t)
 
148
 
 
149
            @parametric_style.prepare
 
150
            if @dataset.z_columns < @parametric_style.z_columns_needed
 
151
              error { "Need #{@parametric_style.z_columns_needed} Z columns, but have only #{@dataset.z_columns} for dataset #{@dataset.name}" }
 
152
              return
 
153
            end
 
154
              
151
155
            draw_path(t)
152
156
            draw_markers(t)
153
157