Stem plot so that markers are not in the axis
    7 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Pseudoscientist
 il 25 Dic 2020
  
    
    
    
    
    Modificato: Star Strider
      
      
 il 25 Dic 2020
            How can I edit this plot so that the markers highlighted by red rectangles are not in the axis`?

intrinsic_noise_xy_mat = 1.0*e-06*[0.0830    0.6206    0.8223    0.6101    0.5916    0.0861    0.6192    0.5537];
names = {'AMI'; 'NKL DEC A'; 'NKL DEC B'; 'NKL DEC RESET'; 'NKL DEC EEG';'NKL OLD';'OULU SKYRA';'OULU VIDA'};
figure(1);hold on;clf
stem(intrinsic_noise_xy_mat,'LineStyle','-.','MarkerFaceColor','red','MarkerEdgeColor','green');
title('Intrinsic noise XY')
set(gca,'xtick',[1:length(intrinsic_noise_xy_mat)],'xticklabel',names)
xtickangle(45);
0 Commenti
Risposta accettata
  Star Strider
      
      
 il 25 Dic 2020
        
      Modificato: Star Strider
      
      
 il 25 Dic 2020
  
      Add this line after the stem call: 
xlim([min(xlim-1) max(xlim+1)])
.
EDIT — (25 Dec 2020 at 22:40)
This (or some variant of it) would also work: 
xlim(xlim.*[1 1]*1.05)
Also this vector should be: 
intrinsic_noise_xy_mat = 1e-06*[0.0830    0.6206    0.8223    0.6101    0.5916    0.0861    0.6192    0.5537];
The version posted was appraently from the Symbolic Math Toolbox, and for whatever reason, throws errors.  
.
0 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

