I am trying to recreate a plot from a literature review. It is a scatter graph but the axis are labels more than specific numbers
    7 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    A Poyser
 am 10 Feb. 2025
  
    
    
    
    
    Kommentiert: A Poyser
 am 12 Feb. 2025
            I want to recreate this graph. I have used web plotter to extract all the data but defining the axes and the number of subcatagories is proving somewhat confusing. Each data point has a shape and a colour that represents the material and the country respectively. 

1 Kommentar
  dpb
      
      
 am 10 Feb. 2025
				The axis ticklabels are written as text although the data are datetime values on time axis,  
Similarly for the y-axis; the data will have to be numeric but the ticks and ticklabels can then be set where desired.
The markerstyle and color are set by the individual data points
Weitere Antworten (1)
  Steven Lord
    
      
 am 10 Feb. 2025
        I'm not certain what the significance of the unlabeled horizontal lines are, but you can create a scatter plot with categorical and/or datetime data on the axes.
sz = ["Small", "Medium", "Large"];
C = categorical(sz, sz, Ordinal=true) % Ordinal because the sizes have an order
scatter([2 1 3], C)
title("Numeric X data, categorical Y data")
figure
dt = datetime([2025 2015 2020], 1, 1);
scatter(dt, C)
title("Datetime X data, categorical Y data")
2 Kommentare
Siehe auch
Kategorien
				Mehr zu Discrete Data Plots finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!





