Problems with formatting yticks
Mostra commenti meno recenti
I am trying to plot a set of data that has 20 points on the y axis from 0.03 to 0.38, I want to lessen the yticks on the plot for simplicity reasons but everytime i attempt to do this I get the error "Value must be a vector of increasing categorical values as ordered by the ruler Categories property."
Here is the code for the yticks i am trying to use:
yvec = [0, 0.1, 0.2, 0.3];
set(gca, 'YTick', unique(yvec))
Here is what the plot looks like as of now:

1 Commento
Walter Roberson
il 23 Set 2020
Did you use hold on to create the plot? Did you use yyaxis or plotyy?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Axis Labels in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!