The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: filling plot symbols with a gradient?
Replies: 2   Last Post: Jan 31, 2013 4:06 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 9,850
Registered: 6/7/07
Re: filling plot symbols with a gradient?
Posted: Jan 31, 2013 4:06 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 1/31/2013 1:47 PM, dpb wrote:
> On 1/31/2013 12:33 PM, Peter Mao wrote:
>> is it possible to fill plot symbols with a gradient in the color,
>> instead of a flat color?
>> For a presentation, I'd like to put on my plots a circle representing a
>> 3-sigma error with the color going from black to white with the grey
>> level correlated to the gaussian amplitude as a function of radius.
>> my fallback is to just show the 1 and 3 sigma contours

> You'd have to draw the individual markers unless the error is constant
> as there's only a single marker object for the line. There are the
> 'Marker[Face|Edge]Color' properties; whether it accepts the range of
> options a patch object in general does I've not investigated specifically.
> It's certainly doable as a standalone addition to the plot of course if
> you're willing to work on it some...

Actually, it's come to me that you couldn't do the gaussian-proportional
shading on the markers 'cuz there's no scaling w/ position to use.

You can probably figure out a way to do it but it'll have to be done as
adding the enhancement of plotting circles w/ surfaces methinks to get
the patches to shade...


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.