Menu

3D line plot with overflowing colors

Help
2011-06-08
2012-10-16
  • Nobody/Anonymous

    Hi all,

    I'm drawing a trajectory through 3D space, and would like adjust the color
    with its current velocity. Is this possible with MathGL?

    Thank you in advance!

     
  • Alexey Balakin

    Alexey Balakin - 2011-06-10

    Yes, just use Tens() function in parametric form (i.e. as gr->Tens(x,y,z,v);)
    or see this sample --
    http://mathgl.sourceforge.net/mathgl_en/mathgl_en_90.html#Tens-
    sample
    . Don't forgot to set C-range to the range of yours velocities (for
    example, by gr->CRange(v);).

     
  • Nobody/Anonymous

    Thanks Alexey, great!! (MathGL is an awesome piece of work!)

     

Log in to post a comment.