Effacer les filtres
Effacer les filtres

Axis ticklabels grouping with subgroups for grid plot

5 vues (au cours des 30 derniers jours)
Sabyrzhan Tasbolatov
Sabyrzhan Tasbolatov le 3 Fév 2023
Modifié(e) : Dyuman Joshi le 3 Fév 2023
I have a grid that I want to plot via surface / meshgrid / imagesc etc in 2D plot. Instead of showing
For example:
x=1:0.1:4
y=1:0.1:4
[X,Y]=meshgrid(x,y)
Z=sin(X).^2+cos(Y).^2
surf(X,Y,Z)
view(2)
======================
Instead of showing non-informative tick labels both on X, Y axis, I need to group them in some arbitrary logic and subgroup certain XY elements within a group to get following result:
Is this possible at all via MATLAB plot?
  1 commentaire
Dyuman Joshi
Dyuman Joshi le 3 Fév 2023
Modifié(e) : Dyuman Joshi le 3 Fév 2023
I don't think it's possible to draw boxes as you have indicated (unless you draw them as a part of a plot, which is going to be a hassle), but you can modify the x and y tick labels to get the text accordingly.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by