Back to draw-Gnuplot

'draw'-Gnuplot interface:
object triangle

Once you have opened a Maxima session, load package draw:

load("draw") $

To read the documentation on object triangle, write the following sentence:

describe(triangle) $

Triangle with border:

draw2d(
  fill_color        = navy,
  color             = yellow,
  line_width        = 6,
  proportional_axes = xy,
  triangle([1,1],[3,0],[4,5]))$
tri1

Triangle without border:

draw2d(
  fill_color        = navy,
  border            = false,
  proportional_axes = xy,
  triangle([1,1],[3,0],[4,5]))$
tri2

Transparent triangle:

draw2d(
  background_color  = "#99aadd",
  color             = yellow,
  line_width        = 4,
  proportional_axes = xy,
  transparent       = true,
  triangle([1,1],[3,0],[4,5]))$
tri3

Translated triangle:

draw2d(
  grid        = true,
  color       = "#e245f0",
  line_width  = 8,
  triangle([3,2],[7,2],[5,5]),
   
  border      = false,
  fill_color  = yellow,
  transform   = [x+10,y+10,x,y],
  polygon([[3,2],[7,2],[5,5]]) )$
tri4

© 2011-2016, TecnoStats.