Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6949039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:54:07+00:00 2026-05-27T13:54:07+00:00

Could I specify different filling colors for within a single plot like the bellow

  • 0

Could I specify different filling colors for within a single plot like the bellow or would I need to “Show” several Plots ? Let`s say I would like the filling style to be the same as the PlotStyle.

priorMean = 50;
priorVar = 100;

llhMean = 30;
llhVar = 40;

postMean=35.71;
postVar=28.57;


Plot[
     Evaluate@MapThread[
     Function[{\[Mu], \[Sigma]},
     PDF[NormalDistribution[\[Mu], Sqrt[\[Sigma]]], x]],
     {{priorMean, llhMean, postMean}, {priorVar, llhVar, postVar}}],
{x, 0, 100}, Filling -> Axis, PlotStyle -> {Red, Green, Blue}]

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:54:08+00:00Added an answer on May 27, 2026 at 1:54 pm

    You’ll need to use FillingStyle to fill in. I think you got stuck in the syntax for FillingStyle, which is not the same as that for PlotStyle, although you’d expect it to be. You’ll have to assign a color for each curve as FillingStyle -> {1 -> color1, 2 -> color2}, etc. Here’s an example:

    colors = {Red, Green, Blue};
    Plot[Evaluate@
      MapThread[
       Function[{\[Mu], \[Sigma]}, 
        PDF[NormalDistribution[\[Mu], Sqrt[\[Sigma]]], x]], {{priorMean, 
         llhMean, postMean}, {priorVar, llhVar, postVar}}], {x, 0, 100}, 
     Filling -> Axis, PlotStyle -> colors, 
     FillingStyle -> 
      MapIndexed[#2 -> Directive[Opacity[0.3], #] &, colors]]
    

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to be able to specify different verbose level, by adding more -v
How could I specify multiple targets with different configurations in Qt? Is there a
In the Nav Services world one could specify kNavDontConfirmReplacement as an option to create
I was wondering if in the width and height <img> attributes, I could specify
Background. I'm working with netlists , and in general, people specify different hierarchies by
So I want to be able to specify multiple different sources for my FullCalendar
This might sound to be a big question, but could you specify what are
I'm generating tables based on some fields from database and I need to specify
Can I specify a different database than ASPNETDB using SqlMembershipProvider ? I am developing
I would like to send an email with an Intent. I would like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.