How can I draw two plots: Tile (2d data) and a line (1d data, with function
Plot)? If I simple do it, the whole line is not visible - it is partially
covered by the Tile plot. I need only 2d plot, I needn't rotating it and so
on.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How can I draw two plots: Tile (2d data) and a line (1d data, with function
Plot)? If I simple do it, the whole line is not visible - it is partially
covered by the Tile plot. I need only 2d plot, I needn't rotating it and so
on.
Generally you need to put yours curve above the tiles. Supposing yours z-range
is , you can use 3 possibilities:
Draw the plot at top of axis by specifying z coordinate, like this
mglData z(x); z.Fill(1,1); gr->Plot(x,y,z);
The same as previous one but done by option:
gr->Plot(x,y,"","zrange 1 1");
Draw tiles under the plot, for example, by changing z-coordinate:
z.Fill(-1,-1); gr->TileS(z,c);