examples/scatterplot/axes.rb
def style
    Proc.new do |g|
      g.attr("fill", "none")
      g.attr("stroke", "gray")
      g.attr("shape-rendering", "crisEdges")
      g.attr("font-family", "sans-serif")
      g.attr("font-size", "11px")
    end
  end
#--------------------------------------------------------------------------------------
# Set the style of the axes
#--------------------------------------------------------------------------------------
Set the style of the axes
Set the style of the axes
def style
    Proc.new do |g|
      g.attr("fill", "none")
      g.attr("stroke", "gray")
      g.attr("shape-rendering", "crisEdges")
      g.attr("font-family", "sans-serif")
      g.attr("font-size", "11px")
    end
  end
def style Proc . new do | g | g . attr ( "fill" , "none" ) g . attr ( "stroke" , "gray" ) g . attr ( "shape-rendering" , "crisEdges" ) g . attr ( "font-family" , "sans-serif" ) g . attr ( "font-size" , "11px" ) end end
Set the style of the axes
Set the style of the axes