Borrar filtros
Borrar filtros

Custom Data Tips in Tiled Layout plots.

3 visualizaciones (últimos 30 días)
Jeremy Siedschlag
Jeremy Siedschlag el 23 de Sept. de 2022
Respondida: Dvarkesh Madhu el 28 de Sept. de 2022
Is it possible to setup custom data tips when plotting with tiledlayout similar to figures in this example
load("accidents.mat","hwydata","statelabel","hwyidx")
s = scatter(hwydata(:,5),hwydata(:,4));
dt = datatip(s,11246.7,1493);
s.DataTipTemplate.DataTipRows(1).Label = "Drivers (in thousands)";
s.DataTipTemplate.DataTipRows(2).Label = "Fatalities";

Respuesta aceptada

Dvarkesh Madhu
Dvarkesh Madhu el 28 de Sept. de 2022
Hi Jeremy,
I presume that by tiledLayout you mean the layout as mentioned in this documentation and want to setup the custom data tip for each tile.
If this is the case then yes, we can setup the custom data tips for tiles of one tiledLayout with use of different datatip variable each for a tile.
You can refer to Data Tip and DataTipTemplate Properties for more information.
Regards,
Dvarkesh

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by