defining linewidth in "rfplot"? Is it possible? (2024)

28 views (last 30 days)

Show older comments

figure;

rfplot(Thru, 1, 1);

When I use this rfplot option to plot directly from .s2p file, I want to specify the linewidth in the code. Is it possible?

I tried several combinations, but none of them worked.

0 Comments

Show -2 older commentsHide -2 older comments

Sign in to comment.

Answers (1)

defining linewidth in "rfplot"? Is it possible? (2)

Walter Roberson on 21 Oct 2022

If you can do

h = rfplot(Thru, 1, 1);

then you can do

set(h, 'LineWidth', VALUE);

If the call to rfplot() is outside of your control, then you can

h = findobj(gca, 'type', line');

set(h, 'LineWidth', VALUE);

See Also

Categories

Find more on Analysis, Benchmarking, and Verification 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!

An Error Occurred

Unable to complete the action because of changes made to the page. Reload the page to see its updated state.


defining linewidth in "rfplot"? Is it possible? (4)

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a web site from the following list

Americas

Europe

Asia Pacific

Contact your local office

defining linewidth in "rfplot"? Is it possible? (2024)

FAQs

How to change the line width in MATLAB? ›

Specify the line width by setting the “LineWidth” property a name-value pair.
  1. plot(x1,y1,'LineWidth',5)
  2. hold on.
  3. plot(x2,y2,'LineWidth',10)
  4. hold off.
Sep 22, 2011

How do you control line thickness in MATLAB? ›

You can modify other aspects of lines by setting properties. For example, Line objects have a LineWidth property for controlling the line's thickness. To create a thicker line, you can specify the LineWidth as a name-value argument when you call the plot function. In this case, set the LineWidth to 3 .

What is the default LineWidth in MATLAB? ›

The plot above uses the default MATLAB line width of 0.5 points. Here's where I have to wave my hands a little. Because of the way the figure above was captured for display in your browser, the lines probably appear a little thicker than 0.5 points.

How to plot a horizontal line in MATLAB? ›

yline( y ) creates a horizontal line at one or more y-coordinates in the current axes. For example, yline(2) creates a line at y=2 . yline( y , LineSpec ) specifies the line style, the line color, or both. For example, yline([12 20 33],'--b') creates three dashed blue lines.

Is there a width function in MATLAB? ›

The width function returns the number of variables of a table or timetable, or the number of columns of an input array having any other data type.

What is the default value of LineWidth? ›

Description. The lineWidth property sets or returns the current line width, in pixels. The default value is 1 pixel.

What is the default value of LineWidth in Matplotlib? ›

The default value for the line width of a plot in Matplotlib is 1 . However, you can change this size to any size of your choice.

What is the unit of LineWidth in MATLAB? ›

Line width, specified as a positive value in point units. One point equals 1/72 inch.

How do you plot a horizontal line? ›

To graph a horizontal line that goes through a given point, first plot that point. Then draw a straight line left and right that goes through the point, and you're done!

How do you make a horizontal line? ›

How is a Horizontal Line Drawn? To draw a horizontal line on paper, use a ruler. Place it parallel to the horizontal edge of the paper and draw a line along the ruler.

How to use xline in Matlab? ›

xline( x ) creates a vertical line at one or more x-coordinates in the current axes. For example, xline(2) creates a line at x=2 . xline( x , LineSpec ) specifies the line style, the line color, or both. For example, xline([12 20 33],'--b') creates three dashed blue lines.

How do I change line spacing in MATLAB? ›

To change the line spacing option, do one of the following: On the Home tab, in the Environment section, click Preferences. Select MATLAB > Command Window, and then choose a Line spacing option.

What is the line width unit in MATLAB? ›

LineWidth — Line width

Line width, specified as a positive value in point units. One point equals 1/72 inch.

How do I change the axis width in MATLAB? ›

Change Axis Limits

Create a line plot. Specify the axis limits using the xlim and ylim functions. For 3-D plots, use the zlim function. Pass the functions a two-element vector of the form [min max] .

How do you change the width of the line plot in Matplotlib? ›

You can use the keyword argument linewidth or the shorter lw to change the width of the line.

Top Articles
Latest Posts
Article information

Author: Fr. Dewey Fisher

Last Updated:

Views: 5868

Rating: 4.1 / 5 (62 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Fr. Dewey Fisher

Birthday: 1993-03-26

Address: 917 Hyun Views, Rogahnmouth, KY 91013-8827

Phone: +5938540192553

Job: Administration Developer

Hobby: Embroidery, Horseback riding, Juggling, Urban exploration, Skiing, Cycling, Handball

Introduction: My name is Fr. Dewey Fisher, I am a powerful, open, faithful, combative, spotless, faithful, fair person who loves writing and wants to share my knowledge and understanding with you.