Line Like a Tube

Hello
is there a way to dray a line looking like a thick gradient tube(gray - black) on matlab gui?
Thank you in advance ...

Answers (1)

Image Analyst
Image Analyst on 10 Jan 2014

0 votes

You mean like streamtube()?

5 Comments

Rayane
Rayane on 10 Jan 2014
Emmm..
Like This one (2D Bar)
Rayane
Rayane on 10 Jan 2014
Let me explain more ...
This is the window i'm working on, on which there is a shaded truss
when the user clicks on a bar, it appears
I don't have a problem with vertical and horizontal bars
I have a problem when the user clicks a sloped bar because a background appears with it, so I tried putting a line instead but i want it to look like a bar ...
Try patch() or fill().
Rayane
Rayane on 10 Jan 2014
Thanks
But I'm actually new to matlab gui I don't know how to use patch and fill
how can I fill a sloped line with gradient color and give it a 3d shape in 2D plane?
Try fill3(). Look at the examples, which have cases where the plane has a color gradient across it.

Sign in to comment.

Categories

Find more on Financial Toolbox in Help Center and File Exchange

Tags

Asked:

on 10 Jan 2014

Commented:

on 10 Jan 2014

Community Treasure Hunt

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

Start Hunting!