WOLFRAM COMMUNITY
Connect with users of Wolfram technologies to learn, solve problems and share ideas
Join
Sign In
Dashboard
Groups
People
Message Boards
Answer
(
Unmark
)
Mark as an Answer
WOLFRAM COMMUNITY
Dashboard
Groups
People
0
|
6271 Views
|
2 Replies
|
2 Total Likes
View groups...
Follow this post
Share
Share this post:
GROUPS:
Mathematica
Graphics and Visualization
Fill Plot above a horizontal line
Rashmil D
Rashmil D, UNSW
Posted
11 years ago
Hi,
I wanna shade the plot wheh the fx >0
Following is the code I have. But it shades around 0.3 regardless Y>0.3 or Y<0.3
How to customize the code only to have the fill area between the ploy where y>0.3
Plot[Sin[t]^2, {t, 0, 2 Pi}, Filling -> 0.3]
POSTED BY:
Rashmil D
Reply
|
Flag
2 Replies
Sort By:
Replies
Likes
Recent
0
Rashmil D
Rashmil D, UNSW
Posted
11 years ago
Thank you. It works wellÂ
POSTED BY:
Rashmil D
Reply
|
Flag
2
Michael Hale
Michael Hale
Posted
11 years ago
Hi Rashmil,
You can set a separate filling above and below the target value.
Plot[Sin[t]^2, {t, 0, 2 Pi},
Filling -> {1 -> {0.3, {None, Lighter[Blue, .85]}}}]
POSTED BY:
Michael Hale
Reply
|
Flag
Reply to this discussion
in reply to
Add Notebook
Community posts can be styled and formatted using the
Markdown syntax
.
Tag limit exceeded
Note: Only the first five people you tag will receive an email notification; the other tagged names will appear as links to their profiles.
Publish anyway
Cancel
Reply Preview
Attachments
Remove
Add a file to this post
Follow this discussion
or
Discard
Group Abstract
Be respectful. Review our
Community Guidelines
to understand your role and responsibilities.
Community Terms of Use
Feedback