You are here: Symbol Reference > MtxVecTee Namespace > Functions > MtxVecTee.DrawValues Function
MtxVec VCL
ContentsIndex
PreviousUpNext
MtxVecTee.DrawValues Function

Plots a Z=Z(X,Y) using Series.

Pascal
procedure DrawValues(A: TMtx; Series: TMtxGridSeries); overload;

Y,Z are matrix row/column indices and Z=Z(X,Y) are matrix values for specific cell.

Generates a continuous color scale with simple color transition between blue and green and rainbow color transition between green and red. 

 

uses MtxExpr, Math387, MtxVec, MtxVecEdit; procedure TForm1.FormCreate(Sender: TObject); var A: Matrix; GridSeries: TMtxGridSeries; begin GridSeries := TMtxGridSeries.Create(Chart1); GridSeries.ColorPalette.PaletteStyle := palRange; GridSeries.ColorPalette.ColorBalance := 0; GridSeries.ColorPalette.UseMidColor := True; GridSeries.ColorPalette.Rainbow.MidToTop := True; A.Size(20,20); Vector(A).Ramp; DrawValues(A,GridSeries); end;

 

#include "MtxExpr.hpp" #include "MtxVecTee.hpp" __fastcall TForm1::TForm1(TComponent* Owner): TForm(Owner) { sMatrix A; TMtxGridSeries *GridSeries; GridSeries = new TMtxGridSeries(Chart1); GridSeries->ColorPalette->PaletteStyle = palRange; GridSeries->ColorPalette->Clear(); GridSeries->ColorPalette->ColorBalance = 0; GridSeries->ColorPalette->UseMidColor = true; GridSeries->ColorPalette->Rainbow->MidToTop = true; A.Size(20,20); A()->Ramp(); //obtain view of A as a Vector and call Vector method. DrawValues(A,GridSeries); }
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!