Azzera filtri
Azzera filtri

remove data from fig file after plotting

7 visualizzazioni (ultimi 30 giorni)
Zeynep Ertekin
Zeynep Ertekin il 8 Feb 2024
Modificato: VBBV il 8 Feb 2024
Hello,
I can explain my question in a few ways :)
  1. I'd like to fix all three of the curves x axes by 17.38-33.
  2. I'd like to make the green curve to have same x axis limit with the blue and orange one.
  3. I'd like to remove extra parts of the green curve.
If possible, without coding, I wanna do this from figure properties.
Best,
  1 Commento
Dyuman Joshi
Dyuman Joshi il 8 Feb 2024
"... I wanna do this from figure properties."
What's stopping you? Go to figure properties and adjust accordingly.

Accedi per commentare.

Risposte (2)

DGM
DGM il 8 Feb 2024
Modificato: DGM il 8 Feb 2024
xlim([17.38 33]) % ??
What's that have to do with "removing data after plotting" though?

VBBV
VBBV il 8 Feb 2024
Modificato: VBBV il 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
h =
Figure (1) with properties: Number: 1 Name: '' Color: [1 1 1] Position: [1 49 1536 740.8000] Units: 'pixels' Use GET to show all properties
ax = gca; % get the figure axes properties
ax =
Axes (10% eGR@SPI wr34 3mm complex permittivity & permeability n1=0) with properties: XLim: [16 34] YLim: [-60 120] XScale: 'linear' YScale: 'linear' GridLineStyle: '-' Position: [0.1300 0.1100 0.7750 0.8150] Units: 'normalized' Use GET to show all properties
ax.XLim = [17.38 33] % set the x-limit you want
ax =
Axes (10% eGR@SPI wr34 3mm complex permittivity & permeability n1=0) with properties: XLim: [17.3800 33] YLim: [0 90] XScale: 'linear' YScale: 'linear' GridLineStyle: '-' Position: [0.1300 0.1100 0.7750 0.8150] Units: 'normalized' Use GET to show all properties
  2 Commenti
VBBV
VBBV il 8 Feb 2024
Modificato: VBBV il 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
DGM il 8 Feb 2024
That's exactly what xlim() does. It sets the XLim property of the specified axes object.

Accedi per commentare.

Categorie

Scopri di più su Visual Exploration in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by