Thread Subject: change the apperance of mesh surface

Subject: change the apperance of mesh surface

From: huhua

Date: 2 Jun, 2008 16:19:55

Message: 1 of 7

Hi all,

I have a 100x100 image which is real-valued in [0, 1].

I currently use "mesh" to plot a 3D picture of it.

Is there a way to change the appearance such that each Z-direction (the
height) is represented by a bar shooting up?

This is like the 3D bars in Excel...

Because most elements in my image are around zeros, and there are only very
few non-zero values. So I think representing them with 3D bars can be very
good...

Please teach me how to do that. Thank you!

Subject: change the apperance of mesh surface

From: Matt Fig

Date: 2 Jun, 2008 16:31:01

Message: 2 of 7

help bar3

Subject: change the apperance of mesh surface

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 2 Jun, 2008 16:34:25

Message: 3 of 7

In article <g216hq$jh$1@news.stanford.edu>,
huhua <lunamoonmoon@gmail.com> wrote:

>I have a 100x100 image which is real-valued in [0, 1].

>I currently use "mesh" to plot a 3D picture of it.

>Is there a way to change the appearance such that each Z-direction (the
>height) is represented by a bar shooting up?

>This is like the 3D bars in Excel...

Ummm, bar3() perhaps ?
--
   "I was very young in those days, but I was also rather dim."
   -- Christopher Priest

Subject: change the apperance of mesh surface

From: huhua

Date: 4 Jun, 2008 22:17:24

Message: 4 of 7


"Matt Fig" <spamanon@yahoo.com> wrote in message
news:g21785$k9q$1@fred.mathworks.com...
> help bar3
>
>

I tired... it doesn't look very nice... anyway of making the plot even more
fancy?

Subject: change the apperance of mesh surface

From: huhua

Date: 4 Jun, 2008 22:17:46

Message: 5 of 7


"Walter Roberson" <roberson@ibd.nrc-cnrc.gc.ca> wrote in message
news:g217eh$9kj$1@canopus.cc.umanitoba.ca...
> In article <g216hq$jh$1@news.stanford.edu>,
> huhua <lunamoonmoon@gmail.com> wrote:
>
>>I have a 100x100 image which is real-valued in [0, 1].
>
>>I currently use "mesh" to plot a 3D picture of it.
>
>>Is there a way to change the appearance such that each Z-direction (the
>>height) is represented by a bar shooting up?
>
>>This is like the 3D bars in Excel...
>
> Ummm, bar3() perhaps ?
> --
How to make the plot even more fancy?

Subject: change the apperance of mesh surface

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 4 Jun, 2008 22:24:27

Message: 6 of 7

In article <g274a4$dh2$1@news.stanford.edu>,
huhua <lunamoonmoon@gmail.com> wrote:

>"Walter Roberson" <roberson@ibd.nrc-cnrc.gc.ca> wrote in message
>news:g217eh$9kj$1@canopus.cc.umanitoba.ca...
>> In article <g216hq$jh$1@news.stanford.edu>,
>> huhua <lunamoonmoon@gmail.com> wrote:

>>>I have a 100x100 image which is real-valued in [0, 1].

>>>I currently use "mesh" to plot a 3D picture of it.

>>>Is there a way to change the appearance such that each Z-direction (the
>>>height) is represented by a bar shooting up?

>>>This is like the 3D bars in Excel...

>> Ummm, bar3() perhaps ?

>How to make the plot even more fancy?

"Fancy" as in those little cocktail appetizers that are pieces of
bacon wrapped around an olive with a coloured toothpick through them?
Or "fancy" as in a wearing a string-tie and top-hat ?
--
  "No sincere artist was ever completely satisfied with his labour."
                                              -- Walter J. Phillips

Subject: change the apperance of mesh surface

From: Erik

Date: 5 Jun, 2008 19:42:01

Message: 7 of 7

roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in
message <g274mr$eus$1@canopus.cc.umanitoba.ca>...
> In article <g274a4$dh2$1@news.stanford.edu>,
> huhua <lunamoonmoon@gmail.com> wrote:
>
> >"Walter Roberson" <roberson@ibd.nrc-cnrc.gc.ca> wrote in
message
> >news:g217eh$9kj$1@canopus.cc.umanitoba.ca...
> >> In article <g216hq$jh$1@news.stanford.edu>,
> >> huhua <lunamoonmoon@gmail.com> wrote:
>
> >>>I have a 100x100 image which is real-valued in [0, 1].
>
> >>>I currently use "mesh" to plot a 3D picture of it.
>
> >>>Is there a way to change the appearance such that each
Z-direction (the
> >>>height) is represented by a bar shooting up?
>
> >>>This is like the 3D bars in Excel...
>
> >> Ummm, bar3() perhaps ?
>
> >How to make the plot even more fancy?
>
> "Fancy" as in those little cocktail appetizers that are
pieces of
> bacon wrapped around an olive with a coloured toothpick
through them?
> Or "fancy" as in a wearing a string-tie and top-hat ?
> --
> "No sincere artist was ever completely satisfied with
his labour."
> -- Walter J.
Phillips

Yaaaay, fancy!

>> hBar = bar3(peaks(10));
>> set(hBar,'EdgeAlpha',0.1);
>> set(hBar,'FaceAlpha',.5);

-E

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com