remove data from fig file after plotting
    11 views (last 30 days)
  
       Show older comments
    
Hello,
I can explain my question in a few ways :)
- I'd like to fix all three of the curves x axes by 17.38-33.
- I'd like to make the green curve to have same x axis limit with the blue and orange one.
- I'd like to remove extra parts of the green curve.
If possible, without  coding, I wanna do this from figure properties.
Best, 
1 Comment
  Dyuman Joshi
      
      
 on 8 Feb 2024
				"... I wanna do this from figure properties."
What's stopping you? Go to figure properties and adjust accordingly.
Answers (2)
  VBBV
      
      
 on 8 Feb 2024
        
      Edited: VBBV
      
      
 on 8 Feb 2024
  
      |If you want to do it using figure properties alone, this is one way
h = openfig('eps_mu_mu_34.fig') % figure properties 
ax = gca;  % get the figure axes properties 
ax.XLim = [17.38 33]  % set the x-limit you want
2 Comments
  VBBV
      
      
 on 8 Feb 2024
				
      Edited: VBBV
      
      
 on 8 Feb 2024
  
			Otherwise, after plotting the figure, go to   Edit  menu in figure window and select the Figure Properties, highlight the axes border to access the Axes tab.  Then set x-axis limits to  [17.38 33] by entering those numbers in the fields. This way you dont require additional coding except a well functioning Mouse
  DGM
      
      
 on 8 Feb 2024
				That's exactly what xlim() does.  It sets the XLim property of the specified axes object.  
See Also
Categories
				Find more on 2-D and 3-D Plots in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



