How can I add a diagonal gradient and corresponding colorbar to a plot?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Halle Berger
el 17 de Sept. de 2019
Comentada: Halle Berger
el 29 de Oct. de 2019
This is what I'd like to create with my own data, how can I add that gradient and colorbar to my plot
0 comentarios
Respuesta aceptada
darova
el 23 de Sept. de 2019
An example:
[X,Y] = meshgrid(1:0.1:3);
Z = X+Y;
pcolor(X,Y,Z)
shading interp
colorbar('Location','NorthOutside')
You can also create your own colormap
Más respuestas (1)
Ver también
Categorías
Más información sobre Colormaps 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!